19 #ifndef __TRANSLATIONEXTENSIONS__
20 #define __TRANSLATIONEXTENSIONS__
34 #ifndef __COMPONENTS__
51 #if PRAGMA_STRUCT_ALIGN
52 #pragma options align = mac68k
53 #elif PRAGMA_STRUCT_PACKPUSH
55 #elif PRAGMA_STRUCT_PACK
61 kSupportsFileTranslation = 1,
62 kSupportsScrapTranslation = 2,
63 kTranslatorCanGenerateFilename = 4
69 typedef ResType ScrapType;
71 typedef UInt32 TranslationAttributes;
74 taDstDocNeedsResourceFork = 1,
75 taDstIsAppTranslation = 2
86 OSType catInfoCreator;
91 unsigned long modDate;
92 unsigned long groupCount;
115 unsigned long modDate;
116 unsigned long groupCount;
135 typedef long TranslationRefNum;
196 kTranslateGetFileTranslationList = 0,
197 kTranslateIdentifyFile = 1,
198 kTranslateTranslateFile = 2,
199 kTranslateGetTranslatedFilename = 3,
200 kTranslateGetScrapTranslationList = 10,
201 kTranslateIdentifyScrap = 11,
202 kTranslateTranslateScrap = 12,
203 kTranslateGetScrapTranslationListConsideringData = 13
211 typedef CALLBACK_API(ComponentResult, DoGetFileTranslationListProcPtr)(
213 typedef CALLBACK_API(ComponentResult,
215 const FSSpec *theDocument,
217 typedef CALLBACK_API(ComponentResult, DoTranslateFileProcPtr)(
219 const FSSpec *sourceDocument,
FileType srcType,
long srcTypeHint,
220 const FSSpec *dstDoc,
FileType dstType,
long dstTypeHint);
221 typedef CALLBACK_API(ComponentResult,
225 FSSpec *theDocument);
226 typedef CALLBACK_API(ComponentResult, DoGetScrapTranslationListProcPtr)(
228 typedef CALLBACK_API(ComponentResult,
232 ScrapType *dataFormat);
233 typedef CALLBACK_API(ComponentResult, DoTranslateScrapProcPtr)(
235 Size srcDataLength, ScrapType srcType,
long srcTypeHint, Handle dstData,
236 ScrapType dstType,
long dstTypeHint);
238 #if PRAGMA_STRUCT_ALIGN
239 #pragma options align = reset
240 #elif PRAGMA_STRUCT_PACKPUSH
242 #elif PRAGMA_STRUCT_PACK
246 #ifdef PRAGMA_IMPORT_OFF
Component Manager Interfaces.
File Manager (MFS, HFS, and HFS+) Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
Interface to Quickdraw Graphics.
OSType FileType
Definition: TranslationExtensions.h:68
OSErr UpdateTranslationProgress(TranslationRefNum refNum, short percentDone, Boolean *canceled)
OSErr SetTranslationAdvertisement(TranslationRefNum refNum, PicHandle advertisement)
Definition: Components.h:220
Definition: TranslationExtensions.h:90
Definition: TranslationExtensions.h:80
OSType catInfoType
Definition: TranslationExtensions.h:85
Definition: Quickdraw.h:326
Definition: TranslationExtensions.h:114
Definition: TranslationExtensions.h:108