19 #ifndef __TEXTSERVICES__
20 #define __TEXTSERVICES__
22 #ifndef __CONDITIONALMACROS__
38 #ifndef __AEDATAMODEL__
42 #ifndef __AEREGISTRY__
46 #ifndef __AEINTERACTION__
50 #ifndef __COMPONENTS__
54 #ifndef __CARBONEVENTS__
71 #if PRAGMA_STRUCT_ALIGN
72 #pragma options align = mac68k
73 #elif PRAGMA_STRUCT_PACKPUSH
75 #elif PRAGMA_STRUCT_PACK
81 kTextService = FOUR_CHAR_CODE(
90 kUnicodeDocument = FOUR_CHAR_CODE(
93 FOUR_CHAR_CODE(
'utsv')
99 kUnknownLanguage = 0xFFFF,
100 kUnknownScript = 0xFFFF,
101 kNeutralScript = 0xFFFF
151 #define mGetScriptCode(cdRec) \
152 ((ScriptCode)((cdRec.componentFlags & bScriptMask) >> 8))
153 #define mGetLanguageCode(cdRec) ((LangCode)cdRec.componentFlags & bLanguageMask)
157 typedef OSType InterfaceTypeList[1];
169 short fTextServiceCount;
184 short fScriptLanguageCount;
295 AESendMode sendMode, AESendPriority sendPriority,
296 long timeOutInTicks, AEIdleUPP idleProc,
297 AEFilterUPP filterProc);
414 #if CALL_NOT_IN_CARBON
505 ConstStr255Param title,
Boolean visible,
short theProc,
617 #if CALL_NOT_IN_CARBON
639 UniChar unicodeString[], UniCharCount unicodeStrLength);
725 #if PRAGMA_STRUCT_ALIGN
726 #pragma options align = reset
727 #elif PRAGMA_STRUCT_PACKPUSH
729 #elif PRAGMA_STRUCT_PACK
733 #ifdef PRAGMA_IMPORT_OFF
AppleEvent Data Model Interfaces.
AppleEvent functions that deal with Events and interacting with user.
AppleEvents Registry Interface.
Component Manager Interfaces.
Set up for compiler independent conditionals.
Event Manager Interfaces.
struct OpaqueEventRef * EventRef
Definition: Events.h:1081
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
ComponentResult TextServiceMenuSelect(ComponentInstance ts, MenuRef serviceMenu, short item)
@ kCMTextServiceEvent
Definition: TextServices.h:133
@ kCMTerminateTextService
Definition: TextServices.h:130
@ kCMTextServiceMenuSelect
Definition: TextServices.h:135
@ kCMGetTextServiceProperty
Definition: TextServices.h:139
@ kCMHidePaletteWindows
Definition: TextServices.h:138
@ kCMSetTextServiceProperty
Definition: TextServices.h:140
@ kCMActivateTextService
Definition: TextServices.h:131
@ kCMGetTextServiceMenu
Definition: TextServices.h:134
@ kCMDeactivateTextService
Definition: TextServices.h:132
@ kCMFixTextService
Definition: TextServices.h:136
@ kCMSetTextServiceCursor
Definition: TextServices.h:137
@ kCMInitiateTextService
Definition: TextServices.h:129
@ kCMGetScriptLangSupport
Definition: TextServices.h:128
ComponentResult GetTextServiceMenu(ComponentInstance ts, MenuRef *serviceMenu)
OSErr CloseTextService(TSMDocumentID idocID, ComponentInstance aComponentInstance)
ComponentResult UCTextServiceEvent(ComponentInstance ts, short numOfEvents, EventRecord *event, UniChar unicodeString[], UniCharCount unicodeStrLength)
OSErr NewCServiceWindow(void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short theProc, WindowRef behind, Boolean goAwayFlag, ComponentInstance ts, WindowRef *window)
OSErr ActivateTSMDocument(TSMDocumentID idocID)
@ kTSMVersion
Definition: TextServices.h:85
@ kInputMethodService
Definition: TextServices.h:83
ComponentResult DeactivateTextService(ComponentInstance ts)
ComponentResult HidePaletteWindows(ComponentInstance ts)
OSErr FixTSMDocument(TSMDocumentID idocID)
OSErr GetFrontServiceWindow(WindowRef *window)
Boolean SetTSMCursor(Point mousePos)
@ bScriptMask
Definition: TextServices.h:110
@ bTakeActiveEvent
Definition: TextServices.h:107
@ bScriptLanguageMask
Definition: TextServices.h:112
@ bLanguageMask
Definition: TextServices.h:111
@ bHandleAERecording
Definition: TextServices.h:108
@ kIMJaTypingMethodKana
Definition: TextServices.h:121
@ kIMJaTypingMethodProperty
Definition: TextServices.h:118
@ kIMJaTypingMethodRoman
Definition: TextServices.h:120
OSErr CloseServiceWindow(WindowRef window)
OSErr DeleteTSMDocument(TSMDocumentID idocID)
ComponentResult GetTextServiceProperty(ComponentInstance ts, OSType propertySelector, SInt32 *result)
OSErr InitTSMAwareApplication(void)
ComponentResult FixTextService(ComponentInstance ts)
Boolean TSMMenuSelect(long menuResult)
OSErr OpenTextService(TSMDocumentID idocID, Component aComponent, ComponentInstance *aComponentInstance)
OSErr SetDefaultInputMethod(Component ts, ScriptLanguageRecord *slRecordPtr)
ComponentResult TextServiceEvent(ComponentInstance ts, short numOfEvents, EventRecord *event)
ComponentResult TerminateTextService(ComponentInstance ts)
OSStatus TSMSetInlineInputRegion(TSMDocumentID inTSMDocument, WindowRef inWindow, RgnHandle inRegion)
ComponentResult InitiateTextService(ComponentInstance ts)
short FindServiceWindow(Point thePoint, WindowRef *theWindow)
OSErr CloseTSMAwareApplication(void)
TSMDocumentID TSMGetActiveDocument(void)
OSErr GetServiceList(short numOfInterface, OSType *supportedInterfaceTypes, TextServiceListHandle *serviceInfo, long *seedValue)
struct OpaqueTSMDocumentID * TSMDocumentID
Definition: TextServices.h:156
OSErr UseInputWindow(TSMDocumentID idocID, Boolean useWindow)
ComponentResult GetScriptLanguageSupport(ComponentInstance ts, ScriptLanguageSupportHandle *scriptHdl)
ComponentResult SetTextServiceCursor(ComponentInstance ts, Point mousePos)
ComponentResult SetTextServiceProperty(ComponentInstance ts, OSType propertySelector, SInt32 value)
OSErr NewServiceWindow(void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short theProc, WindowRef behind, Boolean goAwayFlag, ComponentInstance ts, WindowRef *window)
OSErr GetTextServiceLanguage(ScriptLanguageRecord *slRecordPtr)
OSErr SetTextServiceLanguage(ScriptLanguageRecord *slRecordPtr)
Boolean TSMEvent(EventRecord *event)
ComponentResult TextServiceEventRef(ComponentInstance ts, EventRef event)
@ kUnicodeTextService
Definition: TextServices.h:92
OSErr GetDefaultInputMethod(Component *ts, ScriptLanguageRecord *slRecordPtr)
OSErr DeactivateTSMDocument(TSMDocumentID idocID)
OSErr SendAEFromTSMComponent(const AppleEvent *theAppleEvent, AppleEvent *reply, AESendMode sendMode, AESendPriority sendPriority, long timeOutInTicks, AEIdleUPP idleProc, AEFilterUPP filterProc)
OSStatus SendTextInputEvent(EventRef inEvent)
ComponentResult ActivateTextService(ComponentInstance ts)
OSErr NewTSMDocument(short numOfInterface, InterfaceTypeList supportedInterfaceTypes, TSMDocumentID *idocID, long refcon)
@ kCMUCTextServiceEvent
Definition: TextServices.h:147
Definition: AEDataModel.h:175
Definition: Components.h:220
Definition: Components.h:214
Definition: Quickdraw.h:1648
Definition: Quickdraw.h:306
Definition: MacTypes.h:520
Definition: MacTypes.h:527
Definition: TextServices.h:177
Definition: TextServices.h:183
ScriptLanguageRecord fScriptLanguageArray[1]
Definition: TextServices.h:187
Definition: TextServices.h:161
Definition: TextServices.h:168
TextServiceInfo fServices[1]
Definition: TextServices.h:171