123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443 |
- {
- File: IntlResources.p
-
- Contains: International Resource definitions.
-
- Version: Technology: System 7.5+
- Release: Universal Interfaces 3.4.2
-
- Copyright: © 1983-2002 by Apple Computer, Inc., all rights reserved.
-
- Bugs?: For bug reports, consult the following page on
- the World Wide Web:
-
- http://www.freepascal.org/bugs.html
-
- }
- {
- Modified for use with Free Pascal
- Version 200
- Please report any bugs to <[email protected]>
- }
- {$mode macpas}
- {$packenum 1}
- {$macro on}
- {$inline on}
- {$CALLING MWPASCAL}
- unit IntlResources;
- interface
- {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
- {$setc GAP_INTERFACES_VERSION := $0200}
- {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
- {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
- {$endc}
- {$ifc defined CPUPOWERPC and defined CPUI386}
- {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
- {$endc}
- {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
- {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
- {$endc}
- {$ifc not defined __ppc__ and defined CPUPOWERPC}
- {$setc __ppc__ := 1}
- {$elsec}
- {$setc __ppc__ := 0}
- {$endc}
- {$ifc not defined __i386__ and defined CPUI386}
- {$setc __i386__ := 1}
- {$elsec}
- {$setc __i386__ := 0}
- {$endc}
- {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
- {$error Conflicting definitions for __ppc__ and __i386__}
- {$endc}
- {$ifc defined __ppc__ and __ppc__}
- {$setc TARGET_CPU_PPC := TRUE}
- {$setc TARGET_CPU_X86 := FALSE}
- {$elifc defined __i386__ and __i386__}
- {$setc TARGET_CPU_PPC := FALSE}
- {$setc TARGET_CPU_X86 := TRUE}
- {$elsec}
- {$error Neither __ppc__ nor __i386__ is defined.}
- {$endc}
- {$setc TARGET_CPU_PPC_64 := FALSE}
- {$ifc defined FPC_BIG_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := TRUE}
- {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
- {$elifc defined FPC_LITTLE_ENDIAN}
- {$setc TARGET_RT_BIG_ENDIAN := FALSE}
- {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
- {$elsec}
- {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
- {$endc}
- {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
- {$setc CALL_NOT_IN_CARBON := FALSE}
- {$setc OLDROUTINENAMES := FALSE}
- {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
- {$setc OPAQUE_UPP_TYPES := TRUE}
- {$setc OTCARBONAPPLICATION := TRUE}
- {$setc OTKERNEL := FALSE}
- {$setc PM_USE_SESSION_APIS := TRUE}
- {$setc TARGET_API_MAC_CARBON := TRUE}
- {$setc TARGET_API_MAC_OS8 := FALSE}
- {$setc TARGET_API_MAC_OSX := TRUE}
- {$setc TARGET_CARBON := TRUE}
- {$setc TARGET_CPU_68K := FALSE}
- {$setc TARGET_CPU_MIPS := FALSE}
- {$setc TARGET_CPU_SPARC := FALSE}
- {$setc TARGET_OS_MAC := TRUE}
- {$setc TARGET_OS_UNIX := FALSE}
- {$setc TARGET_OS_WIN32 := FALSE}
- {$setc TARGET_RT_MAC_68881 := FALSE}
- {$setc TARGET_RT_MAC_CFM := FALSE}
- {$setc TARGET_RT_MAC_MACHO := TRUE}
- {$setc TYPED_FUNCTION_POINTERS := TRUE}
- {$setc TYPE_BOOL := FALSE}
- {$setc TYPE_EXTENDED := FALSE}
- {$setc TYPE_LONGLONG := TRUE}
- uses MacTypes;
- {$ALIGN MAC68K}
- const
- { Bits in the itlcFlags byte }
- itlcShowIcon = 7; { Show icon even if only one script }
- itlcDualCaret = 6; { Use dual caret for mixed direction text }
- { Bits in the itlcSysFlags word }
- itlcSysDirection = 15; { System direction - left to right/right to left }
- { One more flag in the itlcFlags byte }
- itlcDisableKeyScriptSync = 3; { Disable font and keyboard script synchrinozation }
- { We should define masks, too. }
- itlcDisableKeyScriptSyncMask = $08; { Disable font and keyboard script synchrinozation mask }
- tokLeftQuote = 1; { NumberParts.data[] enumerators }
- tokRightQuote = 2; { In general, these are NOT to be considered indices into the data[] array }
- tokLeadPlacer = 3;
- tokLeader = 4;
- tokNonLeader = 5;
- tokZeroLead = 6;
- tokPercent = 7;
- tokPlusSign = 8;
- tokMinusSign = 9;
- tokThousands = 10;
- tokReserved = 11; { 11 is reserved field }
- tokSeparator = 12;
- tokEscape = 13;
- tokDecPoint = 14;
- tokEPlus = 15;
- tokEMinus = 16;
- tokMaxSymbols = 31;
- curNumberPartsVersion = 1; { current version of NumberParts record }
- currSymLead = 16;
- currNegSym = 32;
- currTrailingZ = 64;
- currLeadingZ = 128;
- mdy = 0;
- dmy = 1;
- ymd = 2;
- myd = 3;
- dym = 4;
- ydm = 5;
- type
- DateOrders = SInt8;
- const
- timeCycle24 = 0; { time sequence 0:00 - 23:59 }
- timeCycleZero = 1; { time sequence 0:00-11:59, 0:00 - 11:59 }
- timeCycle12 = 255; { time sequence 12:00 - 11:59, 12:00 - 11:59 }
- zeroCycle = 1; { old name for timeCycleZero }
- longDay = 0; { day of the month }
- longWeek = 1; { day of the week }
- longMonth = 2; { month of the year }
- longYear = 3; { year }
- supDay = 1; { suppress day of month }
- supWeek = 2; { suppress day of week }
- supMonth = 4; { suppress month }
- supYear = 8; { suppress year }
- dayLdingZ = 32;
- mntLdingZ = 64;
- century = 128;
- secLeadingZ = 32;
- minLeadingZ = 64;
- hrLeadingZ = 128;
- { moved OffsetTable back here from QuickdrawText }
- type
- OffPairPtr = ^OffPair;
- OffPair = record
- offFirst: SInt16;
- offSecond: SInt16;
- end;
- OffsetTable = array [0..2] of OffPair;
- Intl0RecPtr = ^Intl0Rec;
- Intl0Rec = packed record
- decimalPt: char; { decimal point character }
- thousSep: char; { thousands separator character }
- listSep: char; { list separator character }
- currSym1: char; { currency symbol }
- currSym2: char;
- currSym3: char;
- currFmt: UInt8; { currency format flags }
- dateOrder: UInt8; { order of short date elements: mdy, dmy, etc. }
- shrtDateFmt: UInt8; { format flags for each short date element }
- dateSep: char; { date separator character }
- timeCycle: UInt8; { specifies time cycle: 0..23, 1..12, or 0..11 }
- timeFmt: UInt8; { format flags for each time element }
- mornStr: packed array [1..4] of char; { trailing string for AM if 12-hour cycle }
- eveStr: packed array [1..4] of char; { trailing string for PM if 12-hour cycle }
- timeSep: char; { time separator character }
- time1Suff: char; { trailing string for AM if 24-hour cycle }
- time2Suff: char;
- time3Suff: char;
- time4Suff: char;
- time5Suff: char; { trailing string for PM if 24-hour cycle }
- time6Suff: char;
- time7Suff: char;
- time8Suff: char;
- metricSys: UInt8; { 255 if metric, 0 if inches etc. }
- intl0Vers: SInt16; { region code (hi byte) and version (lo byte) }
- end;
- Intl0Ptr = ^Intl0Rec;
- Intl0Hndl = ^Intl0Ptr;
- Intl1RecPtr = ^Intl1Rec;
- Intl1Rec = packed record
- days: array [1..7] of Str15; { day names }
- months: array [1..12] of Str15; { month names }
- suppressDay: UInt8; { 255 for no day, or flags to suppress any element }
- lngDateFmt: UInt8; { order of long date elements }
- dayLeading0: UInt8; { 255 for leading 0 in day number }
- abbrLen: UInt8; { length for abbreviating names }
- st0: packed array [1..4] of char; { separator strings for long date format }
- st1: packed array [1..4] of char;
- st2: packed array [1..4] of char;
- st3: packed array [1..4] of char;
- st4: packed array [1..4] of char;
- intl1Vers: SInt16; { region code (hi byte) and version (lo byte) }
- localRtn: array [0..0] of SInt16; { now a flag for opt extension }
- end;
- Intl1Ptr = ^Intl1Rec;
- Intl1Hndl = ^Intl1Ptr;
- { fields for optional itl1 extension }
- Itl1ExtRecPtr = ^Itl1ExtRec;
- Itl1ExtRec = record
- base: Intl1Rec; { un-extended Intl1Rec }
- version: SInt16;
- format: SInt16;
- calendarCode: SInt16; { calendar code for this itl1 resource }
- extraDaysTableOffset: SInt32; { offset in itl1 to extra days table }
- extraDaysTableLength: SInt32; { length of extra days table }
- extraMonthsTableOffset: SInt32; { offset in itl1 to extra months table }
- extraMonthsTableLength: SInt32; { length of extra months table }
- abbrevDaysTableOffset: SInt32; { offset in itl1 to abbrev days table }
- abbrevDaysTableLength: SInt32; { length of abbrev days table }
- abbrevMonthsTableOffset: SInt32; { offset in itl1 to abbrev months table }
- abbrevMonthsTableLength: SInt32; { length of abbrev months table }
- extraSepsTableOffset: SInt32; { offset in itl1 to extra seps table }
- extraSepsTableLength: SInt32; { length of extra seps table }
- tables: array [0..0] of SInt16; { now a flag for opt extension }
- end;
- UntokenTablePtr = ^UntokenTable;
- UntokenTable = record
- len: SInt16;
- lastToken: SInt16;
- index: array [0..255] of SInt16; { index table; last = lastToken }
- end;
- UntokenTableHandle = ^UntokenTablePtr;
- WideCharPtr = ^WideChar;
- WideChar = packed record
- case SInt16 of
- 0: (
- a: packed array [0..1] of char; { 0 is the high order character [for PPC] }
- );
- 2: (
- {$ifc TARGET_RT_BIG_ENDIAN}
- hi: char;
- lo: char;
- {$elsec}
- lo: char;
- hi: char;
- {$endc}
- );
- 1: (
- b: SInt16;
- );
- end;
- WideCharArrPtr = ^WideCharArr;
- WideCharArr = record
- size: SInt16;
- data: array [0..9] of WideChar;
- end;
- NumberPartsPtr = ^NumberParts;
- NumberParts = record
- version: SInt16;
- data: array [0..30] of WideChar; { index by [tokLeftQuote..tokMaxSymbols] }
- pePlus: WideCharArr;
- peMinus: WideCharArr;
- peMinusPlus: WideCharArr;
- altNumTable: WideCharArr;
- reserved: packed array [0..19] of char;
- end;
- Itl4RecPtr = ^Itl4Rec;
- Itl4Rec = record
- flags: SInt16; { reserved }
- resourceType: SInt32; { contains 'itl4' }
- resourceNum: SInt16; { resource ID }
- version: SInt16; { version number }
- resHeader1: SInt32; { reserved }
- resHeader2: SInt32; { reserved }
- numTables: SInt16; { number of tables, one-based }
- mapOffset: SInt32; { offset to table that maps byte to token }
- strOffset: SInt32; { offset to routine that copies canonical string }
- fetchOffset: SInt32; { offset to routine that gets next byte of character }
- unTokenOffset: SInt32; { offset to table that maps token to canonical string }
- defPartsOffset: SInt32; { offset to default number parts table }
- resOffset6: SInt32; { reserved }
- resOffset7: SInt32; { reserved }
- resOffset8: SInt32; { reserved }
- end;
- Itl4Ptr = ^Itl4Rec;
- Itl4Handle = ^Itl4Ptr;
- { New NItl4Rec for System 7.0: }
- NItl4RecPtr = ^NItl4Rec;
- NItl4Rec = record
- flags: SInt16; { reserved }
- resourceType: SInt32; { contains 'itl4' }
- resourceNum: SInt16; { resource ID }
- version: SInt16; { version number }
- format: SInt16; { format code }
- resHeader: SInt16; { reserved }
- resHeader2: SInt32; { reserved }
- numTables: SInt16; { number of tables, one-based }
- mapOffset: SInt32; { offset to table that maps byte to token }
- strOffset: SInt32; { offset to routine that copies canonical string }
- fetchOffset: SInt32; { offset to routine that gets next byte of character }
- unTokenOffset: SInt32; { offset to table that maps token to canonical string }
- defPartsOffset: SInt32; { offset to default number parts table }
- whtSpListOffset: SInt32; { offset to white space code list }
- resOffset7: SInt32; { reserved }
- resOffset8: SInt32; { reserved }
- resLength1: SInt16; { reserved }
- resLength2: SInt16; { reserved }
- resLength3: SInt16; { reserved }
- unTokenLength: SInt16; { length of untoken table }
- defPartsLength: SInt16; { length of default number parts table }
- whtSpListLength: SInt16; { length of white space code list }
- resLength7: SInt16; { reserved }
- resLength8: SInt16; { reserved }
- end;
- NItl4Ptr = ^NItl4Rec;
- NItl4Handle = ^NItl4Ptr;
- TableDirectoryRecordPtr = ^TableDirectoryRecord;
- TableDirectoryRecord = record
- tableSignature: OSType; { 4 byte long table name }
- reserved: UInt32; { Reserved for internal use }
- tableStartOffset: UInt32; { Table start offset in byte }
- tableSize: UInt32; { Table size in byte }
- end;
- Itl5RecordPtr = ^Itl5Record;
- Itl5Record = record
- versionNumber: Fixed; { itl5 resource version number }
- numberOfTables: UInt16; { Number of tables it contains }
- reserved: array [0..2] of UInt16; { Reserved for internal use }
- tableDirectory: array [0..0] of TableDirectoryRecord; { Table directory records }
- end;
- RuleBasedTrslRecordPtr = ^RuleBasedTrslRecord;
- RuleBasedTrslRecord = record
- sourceType: SInt16; { Transliterate target type for the LHS of the rule }
- targetType: SInt16; { Transliterate target type for the RHS of the rule }
- formatNumber: SInt16; { Transliterate resource format number }
- propertyFlag: SInt16; { Transliterate property flags }
- numberOfRules: SInt16; { Number of rules following this field }
- end;
- ItlcRecordPtr = ^ItlcRecord;
- ItlcRecord = record
- itlcSystem: SInt16; { default system script }
- itlcReserved: SInt16; { reserved }
- itlcFontForce: SInt8; { default font force flag }
- itlcIntlForce: SInt8; { default intl force flag }
- itlcOldKybd: SInt8; { MacPlus intl keybd flag }
- itlcFlags: SInt8; { general flags }
- itlcIconOffset: SInt16; { keyboard icon offset; not used in 7.0 }
- itlcIconSide: SInt8; { keyboard icon side; not used in 7.0 }
- itlcIconRsvd: SInt8; { rsvd for other icon info }
- itlcRegionCode: SInt16; { preferred verXxx code }
- itlcSysFlags: SInt16; { flags for setting system globals }
- itlcReserved4: array [0..31] of SInt8; { for future use }
- end;
- ItlbRecordPtr = ^ItlbRecord;
- ItlbRecord = record
- itlbNumber: SInt16; { itl0 id number }
- itlbDate: SInt16; { itl1 id number }
- itlbSort: SInt16; { itl2 id number }
- itlbFlags: SInt16; { Script flags }
- itlbToken: SInt16; { itl4 id number }
- itlbEncoding: SInt16; { itl5 ID # (optional; char encoding) }
- itlbLang: SInt16; { current language for script }
- itlbNumRep: SInt8; { number representation code }
- itlbDateRep: SInt8; { date representation code }
- itlbKeys: SInt16; { KCHR id number }
- itlbIcon: SInt16; { ID # of SICN or kcs#/kcs4/kcs8 suite. }
- end;
- { New ItlbExtRecord structure for System 7.0 }
- ItlbExtRecordPtr = ^ItlbExtRecord;
- ItlbExtRecord = packed record
- base: ItlbRecord; { un-extended ItlbRecord }
- itlbLocalSize: SInt32; { size of script's local record }
- itlbMonoFond: SInt16; { default monospace FOND ID }
- itlbMonoSize: SInt16; { default monospace font size }
- itlbPrefFond: SInt16; { preferred FOND ID }
- itlbPrefSize: SInt16; { preferred font size }
- itlbSmallFond: SInt16; { default small FOND ID }
- itlbSmallSize: SInt16; { default small font size }
- itlbSysFond: SInt16; { default system FOND ID }
- itlbSysSize: SInt16; { default system font size }
- itlbAppFond: SInt16; { default application FOND ID }
- itlbAppSize: SInt16; { default application font size }
- itlbHelpFond: SInt16; { default Help Mgr FOND ID }
- itlbHelpSize: SInt16; { default Help Mgr font size }
- itlbValidStyles: Style; { set of valid styles for script }
- itlbAliasStyle: Style; { style (set) to mark aliases }
- end;
- {$ALIGN MAC68K}
- end.
|