FileTypesAndCreators.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:39k
- /*
- File: FileTypesAndCreators.h
-
- Contains: Symbolic constants for FileTypes and signatures of popular documents.
-
- Version: Technology: Macintosh Easy Open 1.1
- Release: QuickTime 6.0.2
-
- Copyright: (c) 1992-2001 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://developer.apple.com/bugreporter/
-
- */
- #ifndef __FILETYPESANDCREATORS__
- #define __FILETYPESANDCREATORS__
- #ifndef __CONDITIONALMACROS__
- #include "ConditionalMacros.h"
- #endif
- #if PRAGMA_ONCE
- #pragma once
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if PRAGMA_IMPORT
- #pragma import on
- #endif
- #if PRAGMA_STRUCT_ALIGN
- #pragma options align=mac68k
- #elif PRAGMA_STRUCT_PACKPUSH
- #pragma pack(push, 2)
- #elif PRAGMA_STRUCT_PACK
- #pragma pack(2)
- #endif
- /*
- Motivation for FileTypesAndCreators.h
- The TranslationMgr (Macintosh Easy Open) uses "FileTypes" to express and manage
- translation capabilities. This works well for most Macintosh applications. It
- simply uses the file type stored in the catalog info by HFS. But, the TranslationMgr
- needs to work with non-Macintosh files. These do not have file types (or creators).
- Another problem is some Macintosh applications keep the same file type for a file
- after changing the file format from one version to the next. Thus, the HFS file type
- cannot be used to distinguish between formats.
- This file is an effort to define FileTypes and creator codes for non-Macintosh file
- formats and define FileTypes that distinguish between formats.
- There are two main categories of constants defined in FileTypesAndCreators.h. One is
- creator signatures of applications the other is file types. To make this easier to use,
- some style guidelines are provided.
- Creators:
- The symbolic constant for all creator codes begin with "sig". Following "sig" is the
- application name. Example:
- sigSurfWriter = 'SURF'
- If the application name is localized for different markets, the name of the U.S.
- version is always used. It is optional to make symbolic constants for localized names.
- If a U.S. is not available, another Roman name is used (this is for ease of editing
- in MPW.) Example:
- sigSurfWriter = 'SURF',
- sigSkiWriter = 'SURF' // optional definition of Canadian name of app
- If multiple versions of an application exist, and the creator codes are different,
- then the version number is added to the end of the symbolic name, for the first version
- in which the signature changed. Example:
- sigDirtWriter = 'DIRT', // version 1 and 2 used same signature
- sigDirtWriter3 = 'DRT3'
- If a developer has the same application on another platform as is on the Mac, then the
- creator for a file from the other platform should be the same as the creator of the
- Macintosh application. Example:
- sigMicrosoftWord = 'MSWD' // used for Mac and Windows documents
- If there is no similar Macintosh product, then the signature of the platform is used.
- Example:
- sigPCDOS = 'mdos', // for DOS and Windows
- sigAppleProDos = 'pdos'
- FileTypes:
- The symbolic constant for all file types begin with "ft". Following "ft" is the ideal
- kind for that document. Example:
- ftSurfWriterDocument = 'SRFD'
- If the application name is localized for different markets, the kind string of the U.S.
- version is always used. It is optional to make symbolic constants for localized kind
- strings. If a U.S. is not available, another Roman kind string is used (this is for
- ease of editing in MPW.) Example:
- ftSurfWriterDocument = 'SRFD,
- ftSkiWriterDocument = 'SRFD' // optional Canadian name
- If multiple versions of an application exist, and the document for files created by each
- are different (meaning one version of the app can not read the documents of a newer
- version), then the version number is added to the end of the symbolic name, for the
- first version in which the format changed. Example:
- // version 1 and 2 docs have same format, version 3 has a different format
- ftDirtWriterDocument = 'DDRT',
- ftDirtWriter3Document = '3DRT'
- If multiple versions of an application exist, and the document for files created by each
- are different, but the catInfo file type has always been the same, then constants are
- made for each unique format and one is made for the catInfo type actually used.
- ftWordDocument = 'WDBN',
- ftWord3Document = 'WDB3',
- ftWord4Document = 'WDB4',
- ftWord5Document = 'WDB5'
- If a developer has the same application on another platform as is on the Mac and the file
- formats are the same (binary interchangeable), then the file type for a file from the other
- platform should be the same as the file type of the Macintosh document. Example:
- ftPageMakerPublication = 'ALB4' // used for Mac and PC documents
- If there is no similar Macintosh document format, then a file type is made up. If the
- program is used on two different non-Mac platforms and their file formats are not the
- same, the platform name is added to the name. Typically after the program name and before
- document. Example:
- ftXyWriteIIIDocument = 'XyWr' // XyWriteIII only has a PC format
- ftSurfWindowsDocument = 'SRFW' // Surf Windows file format
- ftSurfPCDocument = 'SRFP' // Surf PC file format
- */
- /************** Macintosh applications and FileTypes **************/
- enum {
- /* Mac word processors */
- sigWord = FOUR_CHAR_CODE('MSWD'),
- ftWord3Document = FOUR_CHAR_CODE('MSW3'),
- ftWord4Document = FOUR_CHAR_CODE('MSW4'),
- ftWord5Document = FOUR_CHAR_CODE('MSW5'),
- ftWordDocument = FOUR_CHAR_CODE('WDBN'),
- ftWordDocumentPC = FOUR_CHAR_CODE('MWPC'), /* not registered */
- ftWord1DocumentWindows = FOUR_CHAR_CODE('WW1 '), /* not registered */
- ftWord2DocumentWindows = FOUR_CHAR_CODE('WW2 '), /* not registered */
- ftRTFDocument = FOUR_CHAR_CODE('RTF '), /* not registered */
- sigWordPerfect = FOUR_CHAR_CODE('SSIW'),
- ftWordPerfectDocument = FOUR_CHAR_CODE('WPD0'),
- sigWordPerfect2 = FOUR_CHAR_CODE('WPC2'),
- ftWordPerfect2Document = FOUR_CHAR_CODE('WPD1'),
- ftWordPerfect21Document = FOUR_CHAR_CODE('WPD2'),
- ftWordPerfect42DocumentPC = FOUR_CHAR_CODE('.WP4'), /* not registered */
- ftWordPerfect50DocumentPC = FOUR_CHAR_CODE('.WP5'), /* not registered */
- ftWordPerfect51DocumentPC = FOUR_CHAR_CODE('WP51'), /* not registered */
- ftWordPerfectGraphicsPC = FOUR_CHAR_CODE('WPGf'), /* not registered */
- sigMacWriteII = FOUR_CHAR_CODE('MWII'),
- ftMacWriteIIDocument = FOUR_CHAR_CODE('MW2D'),
- sigWriteNow = FOUR_CHAR_CODE('nX^n'),
- ftWriteNow2Document = FOUR_CHAR_CODE('nX^d'),
- ftWriteNow3Document = FOUR_CHAR_CODE('nX^2'),
- sigMacWrite = FOUR_CHAR_CODE('MACA'),
- ftMacWrite5Document = FOUR_CHAR_CODE('WORD'),
- sigFrameMaker = FOUR_CHAR_CODE('Fram'),
- ftFrameMakerDocument = FOUR_CHAR_CODE('FASL'),
- ftFrameMakerMIFDocument = FOUR_CHAR_CODE('MIF '),
- ftFrameMakerMIF2Document = FOUR_CHAR_CODE('MIF2'),
- ftFrameMakerMIF3Document = FOUR_CHAR_CODE('MIF3'),
- sigMSWrite = FOUR_CHAR_CODE('MSWT'),
- sigActa = FOUR_CHAR_CODE('ACTA'),
- sigTHINKPascal = FOUR_CHAR_CODE('PJMM'),
- sigTHINKC = FOUR_CHAR_CODE('KAHL'),
- sigFullWrite = FOUR_CHAR_CODE('FWRT'),
- sigTeachText = FOUR_CHAR_CODE('ttxt'),
- ftTeachTextDocument = FOUR_CHAR_CODE('ttro'),
- sigSimpleText = FOUR_CHAR_CODE('ttxt'),
- ftSimpleTextDocument = FOUR_CHAR_CODE('ttro'),
- sigMPWShell = FOUR_CHAR_CODE('MPS '),
- sigQuarkXPress = FOUR_CHAR_CODE('XPR3'),
- sigNisus = FOUR_CHAR_CODE('NISI'),
- sigOmniPage = FOUR_CHAR_CODE('PRTC'),
- sigPersonalPress = FOUR_CHAR_CODE('SCPG'),
- sigPublishItEZ = FOUR_CHAR_CODE('2CTY'),
- sigReadySetGo = FOUR_CHAR_CODE('MEMR'),
- sigRagTime = FOUR_CHAR_CODE('R#+A'),
- sigLetraStudio = FOUR_CHAR_CODE('LSTP'),
- sigLetterPerfect = FOUR_CHAR_CODE('WPCI'),
- sigTheWritingCenter = 0x0A1A5750, /* this 'unprintable unprintable WP' One of the unprintables is a line feed. */
- sigInstantUpdate = FOUR_CHAR_CODE('IUA0')
- };
- enum {
- /* databases */
- sig4thDimension = FOUR_CHAR_CODE('4D03'),
- ft4thDimensionDB = FOUR_CHAR_CODE('BAS3'),
- sigFileMakerPro = FOUR_CHAR_CODE('FMPR'),
- ftFileMakerProDatabase = FOUR_CHAR_CODE('FMPR'),
- sigHyperCard = FOUR_CHAR_CODE('WILD'),
- ftHyperCard = FOUR_CHAR_CODE('STAK'),
- sigSmartFormAsst = FOUR_CHAR_CODE('KCFM'),
- ftSmartFormAsst = FOUR_CHAR_CODE('STCK'),
- sigSmartFormDesign = FOUR_CHAR_CODE('KCFD'),
- ftSmartFormDesign = FOUR_CHAR_CODE('CFRM'),
- sigFileForce = FOUR_CHAR_CODE('4D93'),
- ftFileForceDatabase = FOUR_CHAR_CODE('FIL3'),
- sigFileMaker2 = FOUR_CHAR_CODE('FMK4'),
- ftFileMaker2Database = FOUR_CHAR_CODE('FMK$'),
- sigSuperCard = FOUR_CHAR_CODE('RUNT'),
- sigDoubleHelix = FOUR_CHAR_CODE('HELX'),
- sigGeoQuery = FOUR_CHAR_CODE('RGgq'),
- sigFoxBASE = FOUR_CHAR_CODE('FOX+'),
- sigINSPIRATION = FOUR_CHAR_CODE('CER3'),
- sigPanorama = FOUR_CHAR_CODE('KAS1'),
- sigSilverrunLDM = FOUR_CHAR_CODE('CDML'),
- sigSilverrunDFD = FOUR_CHAR_CODE('CDDF'), /* finance */
- sigQuicken = FOUR_CHAR_CODE('INTU'),
- sigMacInTax91 = FOUR_CHAR_CODE('MIT1'),
- ftMacInTax91 = FOUR_CHAR_CODE('MITF'),
- sigAccountantInc = FOUR_CHAR_CODE('APRO'),
- sigAtOnce = FOUR_CHAR_CODE('KISS'),
- sigCAT3 = FOUR_CHAR_CODE('tCat'),
- sigDollarsNSense = FOUR_CHAR_CODE('EAGP'),
- sigInsightExpert = FOUR_CHAR_CODE('LSGL'),
- sigMYOB = FOUR_CHAR_CODE('MYOB'),
- sigMacMoney = FOUR_CHAR_CODE('SSLA'),
- sigManagingYourMoney = FOUR_CHAR_CODE('MYMC'),
- sigPlainsAndSimple = FOUR_CHAR_CODE('PEGG'), /* scheduling */
- sigMacProject2 = FOUR_CHAR_CODE('MPRX'),
- ftMacProject = FOUR_CHAR_CODE('MPRD'),
- sigMSProject = FOUR_CHAR_CODE('MSPJ'),
- sigMacProjectPro = FOUR_CHAR_CODE('MPRP'), /* utilities */
- sigStuffIt = FOUR_CHAR_CODE('SIT!'),
- ftStuffItArchive = FOUR_CHAR_CODE('SIT!'),
- sigCompactPro = FOUR_CHAR_CODE('CPCT'),
- ftCompactProArchive = FOUR_CHAR_CODE('PACT'),
- sigFontographer = FOUR_CHAR_CODE('aCa2'),
- sigMetamorphosis = FOUR_CHAR_CODE('MEtP'),
- sigCorrectGrammar = FOUR_CHAR_CODE('LsCG'),
- sigDynodex = FOUR_CHAR_CODE('DYNO'),
- sigMariah = FOUR_CHAR_CODE('MarH'),
- sigAddressBook = FOUR_CHAR_CODE('AdBk'),
- sigThePrintShop = FOUR_CHAR_CODE('PSHP'),
- sigQuicKeys2 = FOUR_CHAR_CODE('Qky2'),
- sigReadStar2Plus = FOUR_CHAR_CODE('INOV'),
- sigSoftPC = FOUR_CHAR_CODE('PCXT'),
- sigMacMenlo = FOUR_CHAR_CODE('MNLO'),
- sigDisinfectant = FOUR_CHAR_CODE('D2CT'), /* communications */
- sigSmartcom2 = FOUR_CHAR_CODE('SCOM'),
- sigVersaTermPRO = FOUR_CHAR_CODE('VPRO'),
- sigVersaTerm = FOUR_CHAR_CODE('VATM'),
- sigWhiteKnight = FOUR_CHAR_CODE('WK11'),
- sigNCSATelnet = FOUR_CHAR_CODE('NCSA'),
- sigDynaComm = FOUR_CHAR_CODE('PAR2'),
- sigQMForms = FOUR_CHAR_CODE('MLTM'), /* math and statistics */
- sigMathematica = FOUR_CHAR_CODE('OMEG'),
- sigMathCAD = FOUR_CHAR_CODE('MCAD'),
- sigStatView2 = FOUR_CHAR_CODE('STAT'),
- sigDataDesk = FOUR_CHAR_CODE('DDSK'),
- sigPowerMath2 = FOUR_CHAR_CODE('MATH'),
- sigSuperANOVA = FOUR_CHAR_CODE('SupA'),
- sigSystat = FOUR_CHAR_CODE('SYT1'),
- sigTheorist = FOUR_CHAR_CODE('Theo')
- };
- enum {
- /* spreadsheets */
- sigExcel = FOUR_CHAR_CODE('XCEL'),
- ftExcel2Spreadsheet = FOUR_CHAR_CODE('XLS '),
- ftExcel2Macro = FOUR_CHAR_CODE('XLM '),
- ftExcel2Chart = FOUR_CHAR_CODE('XLC '),
- ftExcel3Spreadsheet = FOUR_CHAR_CODE('XLS3'),
- ftExcel3Macro = FOUR_CHAR_CODE('XLM3'),
- ftExcel3Chart = FOUR_CHAR_CODE('XLC3'),
- ftExcel4Spreadsheet = FOUR_CHAR_CODE('XLS4'),
- ftExcel4Macro = FOUR_CHAR_CODE('XLM4'),
- ftSYLKSpreadsheet = FOUR_CHAR_CODE('SYLK'),
- sigLotus123 = FOUR_CHAR_CODE('L123'),
- ft123Spreadsheet = FOUR_CHAR_CODE('LWKS'),
- sigWingz = FOUR_CHAR_CODE('WNGZ'),
- ftWingzSpreadsheet = FOUR_CHAR_CODE('WZSS'),
- ftWingzScript = FOUR_CHAR_CODE('WZSC'),
- sigResolve = FOUR_CHAR_CODE('Rslv'),
- ftResolve = FOUR_CHAR_CODE('RsWs'),
- ftResolveScript = FOUR_CHAR_CODE('RsWc'),
- sigFullImpact2 = FOUR_CHAR_CODE('Flv2')
- };
- enum {
- /* graphics */
- sigIllustrator = FOUR_CHAR_CODE('ART3'),
- ftPostScriptMac = FOUR_CHAR_CODE('EPSF'),
- sigMacPaint = FOUR_CHAR_CODE('MPNT'),
- ftMacPaintGraphic = FOUR_CHAR_CODE('PNTG'),
- sigSuperPaint = FOUR_CHAR_CODE('SPNT'),
- ftSuperPaintGraphic = FOUR_CHAR_CODE('SPTG'),
- sigCanvas = FOUR_CHAR_CODE('DAD2'),
- ftCanvasGraphic = FOUR_CHAR_CODE('drw2'),
- sigUltraPaint = FOUR_CHAR_CODE('ULTR'),
- ftUltraPaint = FOUR_CHAR_CODE('UPNT'),
- sigPhotoshop = FOUR_CHAR_CODE('8BIM'),
- ftPhotoshopGraphic = FOUR_CHAR_CODE('8BIM'),
- sigMacDrawPro = FOUR_CHAR_CODE('dPro'),
- ftMacDrawProDrawing = FOUR_CHAR_CODE('dDoc'),
- sigPageMaker = FOUR_CHAR_CODE('ALD4'),
- ftPageMakerPublication = FOUR_CHAR_CODE('ALB4'),
- sigFreeHand = FOUR_CHAR_CODE('FHA3'),
- ftFreeHandDrawing = FOUR_CHAR_CODE('FHD3'),
- sigClarisCAD = FOUR_CHAR_CODE('CCAD'),
- ftClarisCAD = FOUR_CHAR_CODE('CAD2'),
- sigMacDrawII = FOUR_CHAR_CODE('MDPL'),
- ftMacDrawIIDrawing = FOUR_CHAR_CODE('DRWG'),
- sigMacroMindDirector = FOUR_CHAR_CODE('MMDR'),
- ftMMDirectorMovie = FOUR_CHAR_CODE('VWMD'),
- ftMMDirectorSound = FOUR_CHAR_CODE('MMSD'),
- sigOptix = FOUR_CHAR_CODE('PIXL'), /* was previously PixelPerfect */
- sigPixelPaint = FOUR_CHAR_CODE('PIXR'),
- ftPixelPaint = FOUR_CHAR_CODE('PX01'),
- sigAldusSuper3D = FOUR_CHAR_CODE('SP3D'),
- ftSuper3DDrawing = FOUR_CHAR_CODE('3DBX'),
- sigSwivel3D = FOUR_CHAR_CODE('SWVL'),
- ftSwivel3DDrawing = FOUR_CHAR_CODE('SMDL'),
- sigCricketDraw = FOUR_CHAR_CODE('CRDW'),
- ftCricketDrawing = FOUR_CHAR_CODE('CKDT'),
- sigCricketGraph = FOUR_CHAR_CODE('CGRF'),
- ftCricketChart = FOUR_CHAR_CODE('CGPC'),
- sigDesignCAD = FOUR_CHAR_CODE('ASBC'),
- ftDesignCADDrawing = FOUR_CHAR_CODE('DCAD'),
- sigImageStudio = FOUR_CHAR_CODE('FSPE'),
- ftImageStudioGraphic = FOUR_CHAR_CODE('RIFF'),
- sigVersaCad = FOUR_CHAR_CODE('VCAD'),
- ftVersaCADDrawing = FOUR_CHAR_CODE('2D '),
- sigAdobePremier = FOUR_CHAR_CODE('PrMr'),
- ftAdobePremierMovie = FOUR_CHAR_CODE('MooV'),
- sigAfterDark = FOUR_CHAR_CODE('ADrk'),
- ftAfterDarkModule = FOUR_CHAR_CODE('ADgm'),
- sigClip3D = FOUR_CHAR_CODE('EZ3E'),
- ftClip3Dgraphic = FOUR_CHAR_CODE('EZ3D'),
- sigKaleidaGraph = FOUR_CHAR_CODE('QKPT'),
- ftKaleidaGraphGraphic = FOUR_CHAR_CODE('QPCT'),
- sigMacFlow = FOUR_CHAR_CODE('MCFL'),
- ftMacFlowChart = FOUR_CHAR_CODE('FLCH'),
- sigMoviePlayer = FOUR_CHAR_CODE('TVOD'),
- ftMoviePlayerMovie = FOUR_CHAR_CODE('MooV'),
- sigMacSpin = FOUR_CHAR_CODE('D2SP'),
- ftMacSpinDataSet = FOUR_CHAR_CODE('D2BN'),
- sigAutoCAD = FOUR_CHAR_CODE('ACAD'),
- sigLabVIEW = FOUR_CHAR_CODE('LBVW'),
- sigColorMacCheese = FOUR_CHAR_CODE('CMC