macconv.h

Go to the documentation of this file.
00001 
00002 /*  $Id: macconv.h 1292 2006-04-17 17:52:12Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 /* Macintosh Conversion */ 
00029 #undef pascal
00030 #define pascal 
00031 
00032 #define __APPLEEVENTS__
00033 
00034 extern HINSTANCE shellinstance;
00035 extern HINSTANCE hInst;
00036 extern HWND shellframewindow;
00037 extern HWND hwndMDIClient;
00038 extern HWND hwndActive;
00039 extern HANDLE hAccel;
00040 extern LONG styleDefault;
00041 extern CHAR szChild1[];
00042 extern CHAR szChildFTop[];
00043 extern CHAR szChildFTwp[];
00044 extern CHAR szChildFTtb[];
00045 extern CHAR szChildFTmb[];
00046 extern CHAR szChildFTsc[];
00047 extern CHAR szChildRoot[];
00048 
00049 extern CHAR szFrame[];
00050 
00051 #define noErr 0
00052 
00053 #define keyDown         3
00054 #define autoKey         5
00055 #define mouseDown       1
00056 #define mouseUp         2
00057 #define activateEvt     8
00058 #define jugglerEvt      15
00059 #define updateEvt       6
00060 #define menuEvt         31          //Windows Only
00061 #define scrollEvt       32          //Windows Only
00062 #define rmouseDown      33          //Windows Only
00063 #define rmouseUp        34          //Windows Only
00064 #define cmouseDown      35          //Windows Only
00065 #define cmouseUp        36          //Windows Only
00066 #define wmouseDown      37          //Windows Only
00067 #define wmouseUp        38          //Windows Only
00068 #define zoomEvt         39          //Windows Only
00069 
00070 #define suspendResumeMessage    0x0001
00071 #define resumeFlag              0x01
00072 
00073 #define everyEvent      -1
00074 #define activeFlag      256
00075 #define activMask       256
00076 #define updateMask      64
00077 #define mDownMask       2
00078 #define mUpMask         4
00079 #define keyDownMask     8
00080 #define keyUpMask       16
00081 #define autoKeyMask     32
00082 #define diskMask        128
00083 #define highLevelEventMask 1024
00084 #define osMask          0x8000
00085 
00086 #define systemFont 0
00087 
00088 #define LoWord(x) LOWORD(x)
00089 #define HiWord(x) HIWORD(x)
00090 
00091 
00092 enum {
00093 /* Apple event descriptor types */
00094     typeBoolean                 = 'bool',
00095     typeChar                    = 'TEXT',
00096     typeSMInt                   = 'shor',
00097     typeInteger                 = 'long',
00098     typeSMFloat                 = 'sing',
00099     typeFloat                   = 'doub',
00100     typeLongInteger             = 'long',
00101     typeShortInteger            = 'shor',
00102     typeLongFloat               = 'doub',
00103     typeShortFloat              = 'sing',
00104     typeExtended                = 'exte',
00105     typeComp                    = 'comp',
00106     typeMagnitude               = 'magn',
00107     typeAEList                  = 'list',
00108     typeAERecord                = 'reco',
00109     typeAppleEvent              = 'aevt',
00110     typeTrue                    = 'true',
00111     typeFalse                   = 'fals',
00112     typeAlias                   = 'alis',
00113     typeEnumerated              = 'enum',
00114     typeType                    = 'type',
00115     typeAppParameters           = 'appa',
00116     typeProperty                = 'prop',
00117     typeFSS                     = 'fss ',
00118     typeKeyword                 = 'keyw',
00119     typeSectionH                = 'sect',
00120     typeWildCard                = '****',
00121     typeApplSignature           = 'sign',
00122     typeQDRectangle             = 'qdrt',
00123     typeFixed                   = 'fixd',
00124     typeSessionID               = 'ssid',
00125     typeTargetID                = 'targ',
00126     typeProcessSerialNumber     = 'psn ',
00127     typeNull                    = 'null',                       /* null or nonexistent data */
00128 /* Keywords for Apple event parameters */
00129     keyDirectObject             = '----',
00130     keyErrorNumber              = 'errn',
00131     keyErrorString              = 'errs',
00132     keyProcessSerialNumber      = 'psn ',
00133 /* Keywords for Apple event attributes */
00134     keyTransactionIDAttr        = 'tran',
00135     keyReturnIDAttr             = 'rtid',
00136     keyEventClassAttr           = 'evcl',
00137     keyEventIDAttr              = 'evid',
00138     keyAddressAttr              = 'addr',
00139     keyOptionalKeywordAttr      = 'optk',
00140     keyTimeoutAttr              = 'timo',
00141     keyInteractLevelAttr        = 'inte',                       /* this attribute is read only - will be set in AESend */
00142     keyEventSourceAttr          = 'esrc',                       /* this attribute is read only */
00143     keyMissedKeywordAttr        = 'miss',                       /* this attribute is read only */
00144     keyOriginalAddressAttr      = 'from',                       /* new in 1.0.1 */
00145 /* Keywords for special handlers */
00146     keyPreDispatch              = 'phac',                       /* preHandler accessor call */
00147     keySelectProc               = 'selh',                       /* more selector call */
00148 /* Keyword for recording */
00149     keyAERecorderCount          = 'recr',                       /* available only in vers 1.0.1 and greater */
00150 /* Keyword for version information */
00151     keyAEVersion                = 'vers',                       /* available only in vers 1.0.1 and greater */
00152 /* Event Class */
00153     kCoreEventClass             = 'aevt',
00154 /* Event IDŐs */
00155     kAEOpenApplication          = 'oapp',
00156     kAEOpenDocuments            = 'odoc',
00157     kAEPrintDocuments           = 'pdoc',
00158     kAEQuitApplication          = 'quit',
00159     kAEAnswer                   = 'ansr',
00160     kAEApplicationDied          = 'obit'
00161 };
00162 enum {
00163     cAEList                     = 'list',                       /*  0x6c697374  */
00164     cApplication                = 'capp',                       /*  0x63617070  */
00165     cArc                        = 'carc',                       /*  0x63617263  */
00166     cBoolean                    = 'bool',                       /*  0x626f6f6c  */
00167     cCell                       = 'ccel',                       /*  0x6363656c  */
00168     cChar                       = 'cha ',                       /*  0x63686120  */
00169     cColorTable                 = 'clrt',                       /*  0x636c7274  */
00170     cColumn                     = 'ccol',                       /*  0x63636f6c  */
00171     cDocument                   = 'docu',                       /*  0x646f6375  */
00172     cDrawingArea                = 'cdrw',                       /*  0x63647277  */
00173     cEnumeration                = 'enum',                       /*  0x656e756d  */
00174     cFile                       = 'file',                       /*  0x66696c65  */
00175     cFixed                      = 'fixd',                       /*  0x66697864  */
00176     cFixedPoint                 = 'fpnt',                       /*  0x66706e74  */
00177     cFixedRectangle             = 'frct',                       /*  0x66726374  */
00178     cGraphicLine                = 'glin',                       /*  0x676c696e  */
00179     cGraphicObject              = 'cgob',                       /*  0x63676f62  */
00180     cGraphicShape               = 'cgsh',                       /*  0x63677368  */
00181     cGraphicText                = 'cgtx',                       /*  0x63677478  */
00182     cGroupedGraphic             = 'cpic'
00183 };
00184 
00185 enum {
00186     cInsertionLoc               = 'insl',                       /*  0x696e736c  */
00187     cInsertionPoint             = 'cins',                       /*  0x63696e73  */
00188     cIntlText                   = 'itxt',                       /*  0x69747874  */
00189     cIntlWritingCode            = 'intl',                       /*  0x696e746c  */
00190     cItem                       = 'citm',                       /*  0x6369746d  */
00191     cLine                       = 'clin',                       /*  0x636c696e  */
00192     cLongDateTime               = 'ldt ',                       /*  0x6c647420  */
00193     cLongFixed                  = 'lfxd',                       /*  0x6c667864  */
00194     cLongFixedPoint             = 'lfpt',                       /*  0x6c667074  */
00195     cLongFixedRectangle         = 'lfrc',                       /*  0x6c667263  */
00196     cLongInteger                = 'long',                       /*  0x6c6f6e67  */
00197     cLongPoint                  = 'lpnt',                       /*  0x6c706e74  */
00198     cLongRectangle              = 'lrct',                       /*  0x6c726374  */
00199     cMachineLoc                 = 'mLoc',                       /*  0x6d4c6f63  */
00200     cMenu                       = 'cmnu',                       /*  0x636d6e75  */
00201     cMenuItem                   = 'cmen',                       /*  0x636d656e  */
00202     cObject                     = 'cobj',                       /*  0x636f626a  */
00203     cObjectSpecifier            = 'obj ',                       /*  0x6f626a20  */
00204     cOpenableObject             = 'coob',                       /*  0x636f6f62  */
00205     cOval                       = 'covl'
00206 };
00207 
00208 enum {
00209     cParagraph                  = 'cpar',                       /*  0x63706172  */
00210     cPICT                       = 'PICT',                       /*  0x50494354  */
00211     cPixel                      = 'cpxl',                       /*  0x6370786c  */
00212     cPixelMap                   = 'cpix',                       /*  0x63706978  */
00213     cPolygon                    = 'cpgn',                       /*  0x6370676e  */
00214     cProperty                   = 'prop',                       /*  0x70726f70  */
00215     cQDPoint                    = 'QDpt',                       /*  0x51447074  */
00216     cQDRectangle                = 'qdrt',                       /*  0x71647274  */
00217     cRectangle                  = 'crec',                       /*  0x63726563  */
00218     cRGBColor                   = 'cRGB',                       /*  0x63524742  */
00219     cRotation                   = 'trot',                       /*  0x74726f74  */
00220     cRoundedRectangle           = 'crrc',                       /*  0x63727263  */
00221     cRow                        = 'crow',                       /*  0x63726f77  */
00222     cSelection                  = 'csel',                       /*  0x6373656c  */
00223     cShortInteger               = 'shor',                       /*  0x73686f72  */
00224     cTable                      = 'ctbl',                       /*  0x6374626c  */
00225     cText                       = 'ctxt',                       /*  0x63747874  */
00226     cTextFlow                   = 'cflo',                       /*  0x63666c6f  */
00227     cTextStyles                 = 'tsty',                       /*  0x74737479  */
00228     cType                       = 'type'
00229 };
00230 
00231 enum {
00232     cVersion                    = 'vers',                       /*  0x76657273  */
00233     cWindow                     = 'cwin',                       /*  0x6377696e  */
00234     cWord                       = 'cwor',                       /*  0x63776f72  */
00235     enumArrows                  = 'arro',                       /*  0x6172726f  */
00236     enumJustification           = 'just',                       /*  0x6a757374  */
00237     enumKeyForm                 = 'kfrm',                       /*  0x6b66726d  */
00238     enumPosition                = 'posi',                       /*  0x706f7369  */
00239     enumProtection              = 'prtn',                       /*  0x7072746e  */
00240     enumQuality                 = 'qual',                       /*  0x7175616c  */
00241     enumSaveOptions             = 'savo',                       /*  0x7361766f  */
00242     enumStyle                   = 'styl',                       /*  0x7374796c  */
00243     enumTransferMode            = 'tran',                       /*  0x7472616e  */
00244     formUniqueID                = 'ID  ',                       /*  0x49442020  */
00245     kAEAbout                    = 'abou',                       /*  0x61626f75  */
00246     kAEAfter                    = 'afte',                       /*  0x61667465  */
00247     kAEAliasSelection           = 'sali',                       /*  0x73616c69  */
00248     kAEAllCaps                  = 'alcp',                       /*  0x616c6370  */
00249     kAEArrowAtEnd               = 'aren',                       /*  0x6172656e  */
00250     kAEArrowAtStart             = 'arst',                       /*  0x61727374  */
00251     kAEArrowBothEnds            = 'arbo'
00252 };
00253 
00254 enum {
00255     kAEAsk                      = 'ask ',                       /*  0x61736b20  */
00256     kAEBefore                   = 'befo',                       /*  0x6265666f  */
00257     kAEBeginning                = 'bgng',                       /*  0x62676e67  */
00258     kAEBeginsWith               = 'bgwt',                       /*  0x62677774  */
00259     kAEBeginTransaction         = 'begi',                       /*  0x62656769  */
00260     kAEBold                     = 'bold',                       /*  0x626f6c64  */
00261     kAECaseSensEquals           = 'cseq',                       /*  0x63736571  */
00262     kAECentered                 = 'cent',                       /*  0x63656e74  */
00263     kAEChangeView               = 'view',                       /*  0x76696577  */
00264     kAEClone                    = 'clon',                       /*  0x636c6f6e  */
00265     kAEClose                    = 'clos',                       /*  0x636c6f73  */
00266     kAECondensed                = 'cond',                       /*  0x636f6e64  */
00267     kAEContains                 = 'cont',                       /*  0x636f6e74  */
00268     kAECopy                     = 'copy',                       /*  0x636f7079  */
00269     kAECoreSuite                = 'core',                       /*  0x636f7265  */
00270     kAECountElements            = 'cnte',                       /*  0x636e7465  */
00271     kAECreateElement            = 'crel',                       /*  0x6372656c  */
00272     kAECreatePublisher          = 'cpub',                       /*  0x63707562  */
00273     kAECut                      = 'cut ',                       /*  0x63757420  */
00274     kAEDelete                   = 'delo'
00275 };
00276 
00277 enum {
00278     kAEDoObjectsExist           = 'doex',                       /*  0x646f6578  */
00279     kAEDoScript                 = 'dosc',                       /*  0x646f7363  */
00280     kAEDrag                     = 'drag',                       /*  0x64726167  */
00281     kAEDuplicateSelection       = 'sdup',                       /*  0x73647570  */
00282     kAEEditGraphic              = 'edit',                       /*  0x65646974  */
00283     kAEEmptyTrash               = 'empt',                       /*  0x656d7074  */
00284     kAEEnd                      = 'end ',                       /*  0x656e6420  */
00285     kAEEndsWith                 = 'ends',                       /*  0x656e6473  */
00286     kAEEndTransaction           = 'endt',                       /*  0x656e6474  */
00287     kAEEquals                   = '=   ',                       /*  0x3d202020  */
00288     kAEExpanded                 = 'pexp',                       /*  0x70657870  */
00289     kAEFast                     = 'fast',                       /*  0x66617374  */
00290     kAEFinderEvents             = 'FNDR',                       /*  0x464e4452  */
00291     kAEFormulaProtect           = 'fpro',                       /*  0x6670726f  */
00292     kAEFullyJustified           = 'full',                       /*  0x66756c6c  */
00293     kAEGetClassInfo             = 'qobj',                       /*  0x716f626a  */
00294     kAEGetData                  = 'getd',                       /*  0x67657464  */
00295     kAEGetDataSize              = 'dsiz',                       /*  0x6473697a  */
00296     kAEGetEventInfo             = 'gtei',                       /*  0x67746569  */
00297     kAEGetInfoSelection         = 'sinf'
00298 };
00299 
00300 enum {
00301     kAEGetPrivilegeSelection    = 'sprv',                       /*  0x73707276  */
00302     kAEGetSuiteInfo             = 'gtsi',                       /*  0x67747369  */
00303     kAEGreaterThan              = '>   ',                       /*  0x3e202020  */
00304     kAEGreaterThanEquals        = '>=  ',                       /*  0x3e3d2020  */
00305     kAEGrow                     = 'grow',                       /*  0x67726f77  */
00306     kAEHidden                   = 'hidn',                       /*  0x6869646e  */
00307     kAEHiQuality                = 'hiqu',                       /*  0x68697175  */
00308     kAEImageGraphic             = 'imgr',                       /*  0x696d6772  */
00309     kAEIsUniform                = 'isun',                       /*  0x6973756e  */
00310     kAEItalic                   = 'ital',                       /*  0x6974616c  */
00311     kAELeftJustified            = 'left',                       /*  0x6c656674  */
00312     kAELessThan                 = '<   ',                       /*  0x3c202020  */
00313     kAELessThanEquals           = '<=  ',                       /*  0x3c3d2020  */
00314     kAELowercase                = 'lowc',                       /*  0x6c6f7763  */
00315     kAEMakeObjectsVisible       = 'mvis',                       /*  0x6d766973  */
00316     kAEMiscStandards            = 'misc',                       /*  0x6d697363  */
00317     kAEModifiable               = 'modf',                       /*  0x6d6f6466  */
00318     kAEMove                     = 'move',                       /*  0x6d6f7665  */
00319     kAENo                       = 'no  ',                       /*  0x6e6f2020  */
00320     kAENoArrow                  = 'arno'
00321 };
00322 
00323 enum {
00324     kAENonmodifiable            = 'nmod',                       /*  0x6e6d6f64  */
00325     kAEOpen                     = 'odoc',                       /*  0x6f646f63  */
00326     kAEOpenSelection            = 'sope',                       /*  0x736f7065  */
00327     kAEOutline                  = 'outl',                       /*  0x6f75746c  */
00328     kAEPageSetup                = 'pgsu',                       /*  0x70677375  */
00329     kAEPaste                    = 'past',                       /*  0x70617374  */
00330     kAEPlain                    = 'plan',                       /*  0x706c616e  */
00331     kAEPrint                    = 'pdoc',                       /*  0x70646f63  */
00332     kAEPrintSelection           = 'spri',                       /*  0x73707269  */
00333     kAEPrintWindow              = 'pwin',                       /*  0x7077696e  */
00334     kAEPutAwaySelection         = 'sput',                       /*  0x73707574  */
00335     kAEQDAddOver                = 'addo',                       /*  0x6164646f  */
00336     kAEQDAddPin                 = 'addp',                       /*  0x61646470  */
00337     kAEQDAdMax                  = 'admx',                       /*  0x61646d78  */
00338     kAEQDAdMin                  = 'admn',                       /*  0x61646d6e  */
00339     kAEQDBic                    = 'bic ',                       /*  0x62696320  */
00340     kAEQDBlend                  = 'blnd',                       /*  0x626c6e64  */
00341     kAEQDCopy                   = 'cpy ',                       /*  0x63707920  */
00342     kAEQDNotBic                 = 'nbic',                       /*  0x6e626963  */
00343     kAEQDNotCopy                = 'ncpy'
00344 };
00345 
00346 enum {
00347     kAEQDNotOr                  = 'ntor',                       /*  0x6e746f72  */
00348     kAEQDNotXor                 = 'nxor',                       /*  0x6e786f72  */
00349     kAEQDOr                     = 'or  ',                       /*  0x6f722020  */
00350     kAEQDSubOver                = 'subo',                       /*  0x7375626f  */
00351     kAEQDSubPin                 = 'subp',                       /*  0x73756270  */
00352     kAEQDSupplementalSuite      = 'qdsp',                       /*  0x71647370  */
00353     kAEQDXor                    = 'xor ',                       /*  0x786f7220  */
00354     kAEQuickdrawSuite           = 'qdrw',                       /*  0x71647277  */
00355     kAEQuitAll                  = 'quia',                       /*  0x71756961  */
00356     kAERedo                     = 'redo',                       /*  0x7265646f  */
00357     kAERegular                  = 'regl',                       /*  0x7265676c  */
00358     kAEReplace                  = 'rplc',                       /*  0x72706c63  */
00359     kAERequiredSuite            = 'reqd',                       /*  0x72657164  */
00360     kAERestart                  = 'rest',                       /*  0x72657374  */
00361     kAERevealSelection          = 'srev',                       /*  0x73726576  */
00362     kAERevert                   = 'rvrt',                       /*  0x72767274  */
00363     kAERightJustified           = 'rght',                       /*  0x72676874  */
00364     kAESave                     = 'save',                       /*  0x73617665  */
00365     kAESelect                   = 'slct',                       /*  0x736c6374  */
00366     kAESetData                  = 'setd'
00367 };
00368 
00369 enum {
00370     kAESetPosition              = 'posn',                       /*  0x706f736e  */
00371     kAEShadow                   = 'shad',                       /*  0x73686164  */
00372     kAEShowClipboard            = 'shcl',                       /*  0x7368636c  */
00373     kAEShutDown                 = 'shut',                       /*  0x73687574  */
00374     kAESleep                    = 'slep',                       /*  0x736c6570  */
00375     kAESmallCaps                = 'smcp',                       /*  0x736d6370  */
00376     kAESpecialClassProperties   = 'c@#!',                       /*  0x63402321  */
00377     kAEStrikethrough            = 'strk',                       /*  0x7374726b  */
00378     kAESubscript                = 'sbsc',                       /*  0x73627363  */
00379     kAESuperscript              = 'spsc',                       /*  0x73707363  */
00380     kAETableSuite               = 'tbls',                       /*  0x74626c73  */
00381     kAETextSuite                = 'TEXT',                       /*  0x54455854  */
00382     kAETransactionTerminated    = 'ttrm',                       /*  0x7474726d  */
00383     kAEUnderline                = 'undl',                       /*  0x756e646c  */
00384     kAEUndo                     = 'undo',                       /*  0x756e646f  */
00385     kAEWholeWordEquals          = 'wweq',                       /*  0x77776571  */
00386     kAEYes                      = 'yes ',                       /*  0x79657320  */
00387     kAEZoom                     = 'zoom',                       /*  0x7a6f6f6d  */
00388     keyAEAngle                  = 'kang',                       /*  0x6b616e67  */
00389     keyAEArcAngle               = 'parc'
00390 };
00391 
00392 enum {
00393     keyAEBaseAddr               = 'badd',                       /*  0x62616464  */
00394     keyAEBestType               = 'pbst',                       /*  0x70627374  */
00395     keyAEBgndColor              = 'kbcl',                       /*  0x6b62636c  */
00396     keyAEBgndPattern            = 'kbpt',                       /*  0x6b627074  */
00397     keyAEBounds                 = 'pbnd',                       /*  0x70626e64  */
00398     keyAECellList               = 'kclt',                       /*  0x6b636c74  */
00399     keyAEClassID                = 'clID',                       /*  0x636c4944  */
00400     keyAEColor                  = 'colr',                       /*  0x636f6c72  */
00401     keyAEColorTable             = 'cltb',                       /*  0x636c7462  */
00402     keyAECurveHeight            = 'kchd',                       /*  0x6b636864  */
00403     keyAECurveWidth             = 'kcwd',                       /*  0x6b637764  */
00404     keyAEDashStyle              = 'pdst',                       /*  0x70647374  */
00405     keyAEData                   = 'data',                       /*  0x64617461  */
00406     keyAEDefaultType            = 'deft',                       /*  0x64656674  */
00407     keyAEDefinitionRect         = 'pdrt',                       /*  0x70647274  */
00408     keyAEDescType               = 'dstp',                       /*  0x64737470  */
00409     keyAEDestination            = 'dest',                       /*  0x64657374  */
00410     keyAEDoAntiAlias            = 'anta',                       /*  0x616e7461  */
00411     keyAEDoDithered             = 'gdit',                       /*  0x67646974  */
00412     keyAEDoRotate               = 'kdrt'
00413 };
00414 
00415 enum {
00416     keyAEDoScale                = 'ksca',                       /*  0x6b736361  */
00417     keyAEDoTranslate            = 'ktra',                       /*  0x6b747261  */
00418     keyAEEditionFileLoc         = 'eloc',                       /*  0x656c6f63  */
00419     keyAEElements               = 'elms',                       /*  0x656c6d73  */
00420     keyAEEndPoint               = 'pend',                       /*  0x70656e64  */
00421     keyAEEventClass             = 'evcl',                       /*  0x6576636c  */
00422     keyAEEventID                = 'evti',                       /*  0x65767469  */
00423     keyAEFile                   = 'kfil',                       /*  0x6b66696c  */
00424     keyAEFileType               = 'fltp',                       /*  0x666c7470  */
00425     keyAEFillColor              = 'flcl',                       /*  0x666c636c  */
00426     keyAEFillPattern            = 'flpt',                       /*  0x666c7074  */
00427     keyAEFlipHorizontal         = 'kfho',                       /*  0x6b66686f  */
00428     keyAEFlipVertical           = 'kfvt',                       /*  0x6b667674  */
00429     keyAEFont                   = 'font',                       /*  0x666f6e74  */
00430     keyAEFormula                = 'pfor',                       /*  0x70666f72  */
00431     keyAEGraphicObjects         = 'gobs',                       /*  0x676f6273  */
00432     keyAEID                     = 'ID  ',                       /*  0x49442020  */
00433     keyAEImageQuality           = 'gqua',                       /*  0x67717561  */
00434     keyAEInsertHere             = 'insh',                       /*  0x696e7368  */
00435     keyAEKeyForms               = 'keyf'
00436 };
00437 
00438 enum {
00439     keyAEKeyword                = 'kywd',                       /*  0x6b797764  */
00440     keyAELevel                  = 'levl',                       /*  0x6c65766c  */
00441     keyAELineArrow              = 'arro',                       /*  0x6172726f  */
00442     keyAEName                   = 'pnam',                       /*  0x706e616d  */
00443     keyAENewElementLoc          = 'pnel',                       /*  0x706e656c  */
00444     keyAEObject                 = 'kobj',                       /*  0x6b6f626a  */
00445     keyAEObjectClass            = 'kocl',                       /*  0x6b6f636c  */
00446     keyAEOffStyles              = 'ofst',                       /*  0x6f667374  */
00447     keyAEOnStyles               = 'onst',                       /*  0x6f6e7374  */
00448     keyAEParameters             = 'prms',                       /*  0x70726d73  */
00449     keyAEParamFlags             = 'pmfg',                       /*  0x706d6667  */
00450     keyAEPenColor               = 'ppcl',                       /*  0x7070636c  */
00451     keyAEPenPattern             = 'pppa',                       /*  0x70707061  */
00452     keyAEPenWidth               = 'ppwd',                       /*  0x70707764  */
00453     keyAEPixelDepth             = 'pdpt',                       /*  0x70647074  */
00454     keyAEPixMapMinus            = 'kpmm',                       /*  0x6b706d6d  */
00455     keyAEPMTable                = 'kpmt',                       /*  0x6b706d74  */
00456     keyAEPointList              = 'ptlt',                       /*  0x70746c74  */
00457     keyAEPointSize              = 'ptsz',                       /*  0x7074737a  */
00458     keyAEPosition               = 'kpos'
00459 };
00460 
00461 enum {
00462     keyAEPropData               = 'prdt',                       /*  0x70726474  */
00463     keyAEProperties             = 'qpro',                       /*  0x7170726f  */
00464     keyAEProperty               = 'kprp',                       /*  0x6b707270  */
00465     keyAEPropFlags              = 'prfg',                       /*  0x70726667  */
00466     keyAEPropID                 = 'prop',                       /*  0x70726f70  */
00467     keyAEProtection             = 'ppro',                       /*  0x7070726f  */
00468     keyAERenderAs               = 'kren',                       /*  0x6b72656e  */
00469     keyAERequestedType          = 'rtyp',                       /*  0x72747970  */
00470     keyAEResult                 = '----',                       /*  0x2d2d2d2d  */
00471     keyAEResultInfo             = 'rsin',                       /*  0x7273696e  */
00472     keyAERotation               = 'prot',                       /*  0x70726f74  */
00473     keyAERotPoint               = 'krtp',                       /*  0x6b727470  */
00474     keyAERowList                = 'krls',                       /*  0x6b726c73  */
00475     keyAESaveOptions            = 'savo',                       /*  0x7361766f  */
00476     keyAEScale                  = 'pscl',                       /*  0x7073636c  */
00477     keyAEScriptTag              = 'psct',                       /*  0x70736374  */
00478     keyAEShowWhere              = 'show',                       /*  0x73686f77  */
00479     keyAEStartAngle             = 'pang',                       /*  0x70616e67  */
00480     keyAEStartPoint             = 'pstp',                       /*  0x70737470  */
00481     keyAEStyles                 = 'ksty'
00482 };
00483 
00484 enum {
00485     keyAESuiteID                = 'suit',                       /*  0x73756974  */
00486     keyAEText                   = 'ktxt',                       /*  0x6b747874  */
00487     keyAETextColor              = 'ptxc',                       /*  0x70747863  */
00488     keyAETextFont               = 'ptxf',                       /*  0x70747866  */
00489     keyAETextPointSize          = 'ptps',                       /*  0x70747073  */
00490     keyAETextStyles             = 'txst',                       /*  0x74787374  */
00491     keyAETheText                = 'thtx',                       /*  0x74687478  */
00492     keyAETransferMode           = 'pptm',                       /*  0x7070746d  */
00493     keyAETranslation            = 'ptrs',                       /*  0x70747273  */
00494     keyAETryAsStructGraf        = 'toog',                       /*  0x746f6f67  */
00495     keyAEUniformStyles          = 'ustl',                       /*  0x7573746c  */
00496     keyAEUpdateOn               = 'pupd',                       /*  0x70757064  */
00497     keyAEUserTerm               = 'utrm',                       /*  0x7574726d  */
00498     keyAEWindow                 = 'wndw',                       /*  0x776e6477  */
00499     keyAEWritingCode            = 'wrcd',                       /*  0x77726364  */
00500     keyAETSMScriptTag           = 'sclg',
00501     keyAETSMTextFont            = 'ktxf',
00502     keyAETSMTextPointSize       = 'ktps',
00503     keyMiscellaneous            = 'fmsc'
00504 };
00505 
00506 enum {
00507     keySelection                = 'fsel',                       /*  0x6673656c  */
00508     keyWindow                   = 'kwnd'
00509 };
00510 
00511 enum {
00512     pArcAngle                   = 'parc',                       /*  0x70617263  */
00513     pBackgroundColor            = 'pbcl',                       /*  0x7062636c  */
00514     pBackgroundPattern          = 'pbpt',                       /*  0x70627074  */
00515     pBestType                   = 'pbst',                       /*  0x70627374  */
00516     pBounds                     = 'pbnd',                       /*  0x70626e64  */
00517     pClass                      = 'pcls',                       /*  0x70636c73  */
00518     pClipboard                  = 'pcli',                       /*  0x70636c69  */
00519     pColor                      = 'colr',                       /*  0x636f6c72  */
00520     pColorTable                 = 'cltb',                       /*  0x636c7462  */
00521     pContents                   = 'pcnt',                       /*  0x70636e74  */
00522     pCornerCurveHeight          = 'pchd',                       /*  0x70636864  */
00523     pCornerCurveWidth           = 'pcwd',                       /*  0x70637764  */
00524     pDashStyle                  = 'pdst',                       /*  0x70647374  */
00525     pDefaultType                = 'deft',                       /*  0x64656674  */
00526     pDefinitionRect             = 'pdrt',                       /*  0x70647274  */
00527     pEnabled                    = 'enbl',                       /*  0x656e626c  */
00528     pEndPoint                   = 'pend',                       /*  0x70656e64  */
00529     pFillColor                  = 'flcl',                       /*  0x666c636c  */
00530     pFillPattern                = 'flpt',                       /*  0x666c7074  */
00531     pFont                       = 'font'
00532 };
00533 
00534 enum {
00535     pFormula                    = 'pfor',                       /*  0x70666f72  */
00536     pGraphicObjects             = 'gobs',                       /*  0x676f6273  */
00537     pHasCloseBox                = 'hclb',                       /*  0x68636c62  */
00538     pHasTitleBar                = 'ptit',                       /*  0x70746974  */
00539     pID                         = 'ID  ',                       /*  0x49442020  */
00540     pIndex                      = 'pidx',                       /*  0x70696478  */
00541     pInsertionLoc               = 'pins',                       /*  0x70696e73  */
00542     pIsFloating                 = 'isfl',                       /*  0x6973666c  */
00543     pIsFrontProcess             = 'pisf',                       /*  0x70697366  */
00544     pIsModal                    = 'pmod',                       /*  0x706d6f64  */
00545     pIsModified                 = 'imod',                       /*  0x696d6f64  */
00546     pIsResizable                = 'prsz',                       /*  0x7072737a  */
00547     pIsStationeryPad            = 'pspd',                       /*  0x70737064  */
00548     pIsZoomable                 = 'iszm',                       /*  0x69737a6d  */
00549     pIsZoomed                   = 'pzum',                       /*  0x707a756d  */
00550     pItemNumber                 = 'itmn',                       /*  0x69746d6e  */
00551     pJustification              = 'pjst',                       /*  0x706a7374  */
00552     pLineArrow                  = 'arro',                       /*  0x6172726f  */
00553     pMenuID                     = 'mnid',                       /*  0x6d6e6964  */
00554     pName                       = 'pnam'
00555 };
00556 
00557 enum {
00558     pNewElementLoc              = 'pnel',                       /*  0x706e656c  */
00559     pPenColor                   = 'ppcl',                       /*  0x7070636c  */
00560     pPenPattern                 = 'pppa',                       /*  0x70707061  */
00561     pPenWidth                   = 'ppwd',                       /*  0x70707764  */
00562     pPixelDepth                 = 'pdpt',                       /*  0x70647074  */
00563     pPointList                  = 'ptlt',                       /*  0x70746c74  */
00564     pPointSize                  = 'ptsz',                       /*  0x7074737a  */
00565     pProtection                 = 'ppro',                       /*  0x7070726f  */
00566     pRotation                   = 'prot',                       /*  0x70726f74  */
00567     pScale                      = 'pscl',                       /*  0x7073636c  */
00568     pScript                     = 'scpt',                       /*  0x73637074  */
00569     pScriptTag                  = 'psct',                       /*  0x70736374  */
00570     pSelected                   = 'selc',                       /*  0x73656c63  */
00571     pSelection                  = 'sele',                       /*  0x73656c65  */
00572     pStartAngle                 = 'pang',                       /*  0x70616e67  */
00573     pStartPoint                 = 'pstp',                       /*  0x70737470  */
00574     pTextColor                  = 'ptxc',                       /*  0x70747863  */
00575     pTextFont                   = 'ptxf',                       /*  0x70747866  */
00576     pTextItemDelimiters         = 'txdl',                       /*  0x7478646c  */
00577     pTextPointSize              = 'ptps'
00578 };
00579 
00580 enum {
00581     pTextStyles                 = 'txst',                       /*  0x74787374  */
00582     pTransferMode               = 'pptm',                       /*  0x7070746d  */
00583     pTranslation                = 'ptrs',                       /*  0x70747273  */
00584     pUniformStyles              = 'ustl',                       /*  0x7573746c  */
00585     pUpdateOn                   = 'pupd',                       /*  0x70757064  */
00586     pUserSelection              = 'pusl',                       /*  0x7075736c  */
00587     pVersion                    = 'vers',                       /*  0x76657273  */
00588     pVisible                    = 'pvis'
00589 };
00590 
00591 enum {
00592     typeAEText                  = 'tTXT',                       /*  0x74545854  */
00593     typeArc                     = 'carc',                       /*  0x63617263  */
00594     typeBest                    = 'best',                       /*  0x62657374  */
00595     typeCell                    = 'ccel',                       /*  0x6363656c  */
00596     typeClassInfo               = 'gcli',                       /*  0x67636c69  */
00597     typeColorTable              = 'clrt',                       /*  0x636c7274  */
00598     typeColumn                  = 'ccol',                       /*  0x63636f6c  */
00599     typeDashStyle               = 'tdas',                       /*  0x74646173  */
00600     typeData                    = 'tdta',                       /*  0x74647461  */
00601     typeDrawingArea             = 'cdrw',                       /*  0x63647277  */
00602     typeElemInfo                = 'elin',                       /*  0x656c696e  */
00603     typeEnumeration             = 'enum',                       /*  0x656e756d  */
00604     typeEPS                     = 'EPS ',                       /*  0x45505320  */
00605     typeEventInfo               = 'evin'
00606 };
00607 
00608 enum {
00609     typeFinderWindow            = 'fwin',                       /*  0x6677696e  */
00610     typeFixedPoint              = 'fpnt',                       /*  0x66706e74  */
00611     typeFixedRectangle          = 'frct',                       /*  0x66726374  */
00612     typeGraphicLine             = 'glin',                       /*  0x676c696e  */
00613     typeGraphicText             = 'cgtx',                       /*  0x63677478  */
00614     typeGroupedGraphic          = 'cpic',                       /*  0x63706963  */
00615     typeInsertionLoc            = 'insl',                       /*  0x696e736c  */
00616     typeIntlText                = 'itxt',                       /*  0x69747874  */
00617     typeIntlWritingCode         = 'intl',                       /*  0x696e746c  */
00618     typeLongDateTime            = 'ldt ',                       /*  0x6c647420  */
00619     typeLongFixed               = 'lfxd',                       /*  0x6c667864  */
00620     typeLongFixedPoint          = 'lfpt',                       /*  0x6c667074  */
00621     typeLongFixedRectangle      = 'lfrc',                       /*  0x6c667263  */
00622     typeLongPoint               = 'lpnt',                       /*  0x6c706e74  */
00623     typeLongRectangle           = 'lrct',                       /*  0x6c726374  */
00624     typeMachineLoc              = 'mLoc',                       /*  0x6d4c6f63  */
00625     typeOval                    = 'covl',                       /*  0x636f766c  */
00626     typeParamInfo               = 'pmin',                       /*  0x706d696e  */
00627     typePict                    = 'PICT'
00628 };
00629 
00630 enum {
00631     typePixelMap                = 'cpix',                       /*  0x63706978  */
00632     typePixMapMinus             = 'tpmm',                       /*  0x74706d6d  */
00633     typePolygon                 = 'cpgn',                       /*  0x6370676e  */
00634     typePropInfo                = 'pinf',                       /*  0x70696e66  */
00635     typeQDPoint                 = 'QDpt',                       /*  0x51447074  */
00636     typeRectangle               = 'crec',                       /*  0x63726563  */
00637     typeRGB16                   = 'tr16',                       /*  0x74723136  */
00638     typeRGB96                   = 'tr96',                       /*  0x74723936  */
00639     typeRGBColor                = 'cRGB',                       /*  0x63524742  */
00640     typeRotation                = 'trot',                       /*  0x74726f74  */
00641     typeRoundedRectangle        = 'crrc',                       /*  0x63727263  */
00642     typeRow                     = 'crow',                       /*  0x63726f77  */
00643     typeScrapStyles             = 'styl',                       /*  0x7374796c  */
00644     typeScript                  = 'scpt',                       /*  0x73637074  */
00645     typeStyledText              = 'STXT',                       /*  0x53545854  */
00646     typeSuiteInfo               = 'suin',                       /*  0x7375696e  */
00647     typeTable                   = 'ctbl',                       /*  0x6374626c  */
00648     typeTextStyles              = 'tsty'
00649 };
00650 
00651 enum {
00652     typeTIFF                    = 'TIFF',                       /*  0x54494646  */
00653     typeVersion                 = 'vers'
00654 };
00655 
00656 enum {  /* 2006-02-05 aradke: for filedialogverb in fileverbs.c */
00657     kNavGenericSignature        = '****'                        /*  0x2a2a2a2a */
00658 };
00659 
00660 #define iBeamCursor -100
00661 #define watchCursor -101
00662 
00663 typedef char * Ptr;
00664 typedef Ptr * Handle;
00665 
00666 typedef unsigned long FourCharCode;
00667 
00668 typedef FourCharCode OSType;
00669 typedef FourCharCode DescType;
00670 typedef FourCharCode ResType;
00671 
00672 typedef OSType *OSTypePtr;
00673 typedef ResType *ResTypePtr;
00674 
00675 typedef HANDLE CGrafPtr; /*7.0b27 PBS: Now using CGrafPtr for Carbon compatibility.*/
00676 
00677 #ifndef PGTRAPS_H
00678 
00679     typedef HANDLE GrafPtr;
00680 
00681     typedef struct tyPoint
00682         {
00683         short   v;
00684         short h;
00685         } Point, *PointPtr;
00686 
00687 //  typedef struct tyRect
00688 //      {
00689 //      short top;
00690 //      short left;
00691 //      short bottom;
00692 //      short right;
00693 //      } Rect;
00694 
00695     typedef RECT Rect;
00696 
00697     typedef HRGN RgnHandle;
00698     //typedef Handle RgnHandle;
00699 #endif
00700 #ifndef PGMTRAPS_H
00701     extern void Debugger (void);
00702 
00703     extern void DebugStr (char *);
00704 #endif
00705 
00706 enum {
00707     normal          =   0,
00708     bold            =   1,
00709     italic          =   2,
00710     underline       =   4,
00711     outline         =   8,
00712     shadow          =   0x10,
00713     condense        =   0x20,
00714     extend          =   0x40,
00715     hidden          =   0x400,
00716     };
00717 
00718 typedef unsigned char Style;
00719 
00720 
00721 typedef struct tyFontInfo
00722     {
00723     short ascent, descent, leading;
00724     } FontInfo;
00725 
00726 typedef unsigned long AEEventClass;
00727 
00728 typedef unsigned long AEEventID;
00729 
00730 typedef unsigned long AEKeyword;
00731 
00732 typedef struct tyAEDesc
00733     {
00734     DescType descriptorType;
00735     Handle dataHandle;
00736     } AEDesc;
00737 
00738 typedef AEDesc AEAddressDesc;
00739 
00740 typedef AEDesc AEDescList;
00741 
00742 typedef AEDescList AERecord;
00743 
00744 typedef AERecord AppleEvent;
00745 
00746 typedef struct tyTargetID
00747     {
00748     short foo;
00749     } TargetID;
00750 
00751 typedef struct tyZone
00752     {
00753     short foo;
00754     } Zone, *THz;
00755 
00756 typedef long AESendMode;
00757 
00758 typedef short AESendPriority;
00759 
00760 typedef struct tyAEIdleUPP
00761     {
00762     short foo;
00763     } AEIdleUPP;
00764 
00765 typedef struct tyAEFilterUPP
00766     {
00767     short foo;
00768     } AEFilterUPP;
00769 
00770 
00771 typedef struct tyfsfilespec
00772     {
00773     char fullSpecifier [256];
00774     } FSSpec;
00775 
00776 
00777 typedef struct tyPattern
00778     {
00779     short foo;
00780     } Pattern;
00781 
00782 
00783 typedef struct tyRGBColor
00784     {
00785     unsigned short red, blue, green;
00786     } RGBColor;
00787 
00788 typedef struct tyFixed
00789     {
00790     short whole;
00791     short fract;
00792     } Fixed;
00793 
00794 
00795 typedef struct tyEventRecord
00796     {
00797     long    what;
00798     long    message;
00799     long    when;
00800     Point   where;
00801     long    modifiers;
00802     /*The following is for windows only that allow for better handling at lower levels */
00803     WPARAM  wparam;
00804     LPARAM  lparam;
00805     UINT    winmsg;
00806     HWND    hwnd;
00807     INT     part;
00808     } EventRecord;
00809 
00810 typedef struct tyCInfoPBRec
00811     {
00812     short foo;
00813     } CInfoPBRec;
00814 
00815 
00816 typedef struct tySysEnvRec
00817     {
00818     short foo;
00819     } SysEnvRec;
00820 
00821 
00822 #define nil 0
00823 typedef Handle ControlHandle;
00824 typedef Handle MenuHandle;
00825 typedef HANDLE WindowPtr;
00826 typedef Handle AliasHandle;
00827 typedef Ptr DialogPtr;
00828 typedef Ptr ProcPtr;
00829 typedef Handle PicHandle;
00830 
00831 typedef long ProcessSerialNumber;
00832 typedef long OSErr;
00833 typedef short Boolean;
00834 
00835 typedef unsigned char ConstStr255Param[256];
00836 typedef unsigned char Str63[64];
00837 
00838 
00839 extern char * CALLBACK frontierLock (Handle m);
00840 extern void CALLBACK frontierFree (Handle foo);
00841 extern Handle CALLBACK frontierAlloc (long userSize);
00842 extern long CALLBACK frontierSize (Handle foo);
00843 extern Handle CALLBACK frontierReAlloc(Handle fooIn, long userSize);
00844 
00845 //#define HLock(foo) GlobalLock(foo)
00846 //#define HUnlock(foo) GlobalUnlock(foo)
00847 #define HLock(foo) frontierLock(foo)
00848 #define HUnlock(foo) 
00849 
00850 #if (MEMTRACKER == 1)
00851     Handle CALLBACK debugfrontierReAlloc(Handle fooIn, long userSize);
00852     Handle CALLBACK debugfrontierAlloc (char * filename, unsigned long linenumber, unsigned long threadid, long userSize);
00853     void CALLBACK debugfrontierFree (Handle foo);
00854 
00855     #define GetHandleSize(foo) frontierSize(foo)
00856     #define NewHandle(fooSize) debugfrontierAlloc(__FILE__, __LINE__, GetCurrentThreadId(), fooSize)
00857     #define DisposeHandle(foo) debugfrontierFree(foo)
00858     #define SetHandleSize(h,foosize) debugfrontierReAlloc(h,foosize)
00859 #else
00860     #define GetHandleSize(foo) frontierSize(foo)
00861     #define NewHandle(fooSize) frontierAlloc(fooSize)
00862     #define DisposeHandle(foo) frontierFree(foo)
00863     #define SetHandleSize(h,foosize) frontierReAlloc(h,foosize)
00864 #endif
00865 
00866 #define MemError() GetLastError()
00867 
00868 //#define geneva 0
00869 #define normal 0
00870 
00871 extern void recttowinrect (Rect * rIn, RECT * rOut);
00872 extern void winrecttorect (RECT * rIn, Rect * rOut);
00873 
00874 #define DisposeRgn(rgn) DeleteObject(rgn)
00875 #define NewRgn() CreateRectRgn(0,0,1,1)
00876 #define SectRgn(a,b,dest) CombineRgn(dest, a, b, RGN_AND)
00877 
00878 #undef CopyRgn
00879 #define CopyRgn(src,dest) CombineRgn(dest, src, src, RGN_COPY)
00880 
00881 extern Boolean EmptyRgn (RgnHandle);
00882 
00883 typedef struct extended80 {
00884     
00885     unsigned char x80[10];
00886     } extended80;
00887  
00888 void convertToMacExtended (double foo, extended80 * tenbytebuffer);
00889 void convertFromMacExtended (double * foo, extended80 * tenbytebuffer);
00890 
00891 long FreeMem (void);
00892 
00893 void DrawPicture (Handle, const Rect *);

Generated on Wed May 31 18:19:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6