home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 4.3 KB | 141 lines | [TEXT/MPS ] |
- /*
- File: Unicode.idl
-
- Contains: Unicode Interfaces.
-
- Version: Technology: System 7.1 through System 8
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
-
- */
- #ifndef __UNICODE_IDL__
- #define __UNICODE_IDL__
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- #ifndef __TYPES_IDL__
- #include <Types.idl>
- #endif
- #ifndef __TEXTCOMMON_IDL__
- #include <TextCommon.idl>
- #endif
- #ifndef __MIXEDMODE_IDL__
- #include <MixedMode.idl>
- #endif
-
- #ifdef __SOMIDL__
-
- #if 0
- /*
- The following 7 typedefs are required for seeds until they get
- moved to a future version of Types.[hp] in a future ETO release.
- Also note that seeds should include a copy of the new TextCommon.[hp].
- */
- typedef OpaquePtr BytePtr; /* Substituted OpaquePtr for “UInt8*” */
-
- typedef UInt32 ByteCount;
-
- typedef UInt32 ItemCount;
-
- typedef UInt32 OptionBits;
-
- typedef short RegionCode;
-
- typedef UInt32 ByteOffset;
-
- typedef OpaquePtr ConstLogicalAddress; /* Substituted OpaquePtr for “void*” */
-
- /*
- The following typedefs are required for seeds until they get
- moved to a future version of Errors.[hp] in a future ETO release.
- Unicode Converter Error Codes
- */
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
- /* Unicode Converter Gestalt Constants: (••••these belong in Gestalt.i••••) */
- /* Basic types for Unicode characters and strings: */
- typedef OpaquePtr UniCharArrayPtr; /* Substituted OpaquePtr for “UniChar*” */
-
- typedef OpaquePtr ConstUniCharArrayPtr; /* Substituted OpaquePtr for “UniChar*” */
-
- /* Unicode conversion contexts: */
- typedef OpaquePtr TextToUnicodeInfo;
-
- typedef OpaquePtr UnicodeToTextInfo;
-
- typedef OpaquePtr UnicodeToTextRunInfo;
-
- typedef TextToUnicodeInfo ConstTextToUnicodeInfo;
-
- typedef UnicodeToTextInfo ConstUnicodeToTextInfo;
-
- /* UnicodeMapVersion type & values */
- typedef SInt32 UnicodeMapVersion;
-
- /* Types used in conversion */
- typedef SOMLargeStruct UnicodeMapping; /* Derived from a struct of 12 bytes in size */
-
- typedef OpaquePtr UnicodeMappingPtr; /* Substituted OpaquePtr for “UnicodeMapping*” */
-
- typedef OpaquePtr ConstUnicodeMappingPtr; /* Substituted OpaquePtr for “UnicodeMapping*” */
-
- typedef SOMLargeStruct TextEncodingRun; /* Derived from a struct of 8 bytes in size */
-
- /* Control flags for ConvertUnicodeToText and ConvertTextToUnicode */
- /* Values for kUnicodeDirectionality field */
- /* Control flags for TruncateForUnicodeToText: */
- /* Filter bits for QueryUnicodeMappings filter field: */
- /* Control flags for SetFallbackUnicodeToText */
- /* values for kUnicodeFallbackSequencing field */
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- /* Caller-supplied entry point to a fallback handler */
- typedef OpaquePtr UnicodeToTextFallbackProcPtr;
- typedef OpaquePtr UnicodeToTextFallbackUPP;
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
- typedef OpaquePtr UnicodeToTextFallbackPreemptiveProcPtr;
- /* Function prototypes */
- /*
- The following are in TextCommon.i:
- CreateTextEncoding, GetTextEncodingBase, GetTextEncodingVariant, GetTextEncodingFormat
- */
- /* Create a new TextToUnicodeInfo structure. */
- /* Create a new UnicodeToTextInfo structure. */
- /* Dispose of a TextToUnicodeInfo structure. */
- /* Dispose of a UnicodeToTextInfo structure. */
- /* Convert a string to Unicode. */
- /* Convert a string from Unicode. */
- /* Truncate a multibyte string at a safe place. */
- /* Truncate a Unicode string at a safe place. */
- /* Convert a Pascal string to Unicode. */
- /* Convert a Unicode string to Pascal. */
- /* Get a list of the available conversion mappings. */
- /* Get the name of a TextEncodingBase table. */
- /* Change the TextToUnicodeInfo to another mapping. */
- /* Change the UnicodeToTextInfo to another mapping. */
- #endif
- #if FOR_SYSTEM8_PREEMPTIVE
- /* Setup the fallback handler for converting Unicode To Text. */
- #endif
- #if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
- /* Setup the fallback handler for converting Unicode To Text. */
- /*
- The following are in TextCommon.i:
- UpgradeScriptInfoToTextEncoding, RevertTextEncodingToScriptInfo
- */
- #endif
-
- #endif /* __SOMIDL__ */
-
- #endif /* __UNICODE_IDL__ */
-
-