1# Generated from 'MacTextEditor.h'
2
3
4def FOUR_CHAR_CODE(x): return x
5false = 0
6true = 1
7kTXNClearThisControl = 0xFFFFFFFF
8kTXNClearTheseFontFeatures = 0x80000000
9kTXNDontCareTypeSize = 0xFFFFFFFF
10kTXNDecrementTypeSize = 0x80000000
11kTXNUseCurrentSelection = 0xFFFFFFFF
12kTXNStartOffset = 0
13kTXNEndOffset = 0x7FFFFFFF
14MovieFileType = FOUR_CHAR_CODE('moov')
15kTXNUseEncodingWordRulesMask = 0x80000000
16kTXNFontSizeAttributeSize = 4
17normal = 0
18kTXNWillDefaultToATSUIBit = 0
19kTXNWillDefaultToCarbonEventBit = 1
20kTXNWillDefaultToATSUIMask = 1L << kTXNWillDefaultToATSUIBit
21kTXNWillDefaultToCarbonEventMask = 1L << kTXNWillDefaultToCarbonEventBit
22kTXNWantMoviesBit = 0
23kTXNWantSoundBit = 1
24kTXNWantGraphicsBit = 2
25kTXNAlwaysUseQuickDrawTextBit = 3
26kTXNUseTemporaryMemoryBit = 4
27kTXNWantMoviesMask = 1L << kTXNWantMoviesBit
28kTXNWantSoundMask = 1L << kTXNWantSoundBit
29kTXNWantGraphicsMask = 1L << kTXNWantGraphicsBit
30kTXNAlwaysUseQuickDrawTextMask = 1L << kTXNAlwaysUseQuickDrawTextBit
31kTXNUseTemporaryMemoryMask = 1L << kTXNUseTemporaryMemoryBit
32kTXNDrawGrowIconBit = 0
33kTXNShowWindowBit = 1
34kTXNWantHScrollBarBit = 2
35kTXNWantVScrollBarBit = 3
36kTXNNoTSMEverBit = 4
37kTXNReadOnlyBit = 5
38kTXNNoKeyboardSyncBit = 6
39kTXNNoSelectionBit = 7
40kTXNSaveStylesAsSTYLResourceBit = 8
41kOutputTextInUnicodeEncodingBit = 9
42kTXNDoNotInstallDragProcsBit = 10
43kTXNAlwaysWrapAtViewEdgeBit = 11
44kTXNDontDrawCaretWhenInactiveBit = 12
45kTXNDontDrawSelectionWhenInactiveBit = 13
46kTXNSingleLineOnlyBit = 14
47kTXNDisableDragAndDropBit = 15
48kTXNUseQDforImagingBit = 16
49kTXNDrawGrowIconMask = 1L << kTXNDrawGrowIconBit
50kTXNShowWindowMask = 1L << kTXNShowWindowBit
51kTXNWantHScrollBarMask = 1L << kTXNWantHScrollBarBit
52kTXNWantVScrollBarMask = 1L << kTXNWantVScrollBarBit
53kTXNNoTSMEverMask = 1L << kTXNNoTSMEverBit
54kTXNReadOnlyMask = 1L << kTXNReadOnlyBit
55kTXNNoKeyboardSyncMask = 1L << kTXNNoKeyboardSyncBit
56kTXNNoSelectionMask = 1L << kTXNNoSelectionBit
57kTXNSaveStylesAsSTYLResourceMask = 1L << kTXNSaveStylesAsSTYLResourceBit
58kOutputTextInUnicodeEncodingMask = 1L << kOutputTextInUnicodeEncodingBit
59kTXNDoNotInstallDragProcsMask = 1L << kTXNDoNotInstallDragProcsBit
60kTXNAlwaysWrapAtViewEdgeMask = 1L << kTXNAlwaysWrapAtViewEdgeBit
61kTXNDontDrawCaretWhenInactiveMask = 1L << kTXNDontDrawCaretWhenInactiveBit
62kTXNDontDrawSelectionWhenInactiveMask = 1L << kTXNDontDrawSelectionWhenInactiveBit
63kTXNSingleLineOnlyMask = 1L << kTXNSingleLineOnlyBit
64kTXNDisableDragAndDropMask = 1L << kTXNDisableDragAndDropBit
65kTXNUseQDforImagingMask = 1L << kTXNUseQDforImagingBit
66kTXNSetFlushnessBit = 0
67kTXNSetJustificationBit = 1
68kTXNUseFontFallBackBit = 2
69kTXNRotateTextBit = 3
70kTXNUseVerticalTextBit = 4
71kTXNDontUpdateBoxRectBit = 5
72kTXNDontDrawTextBit = 6
73kTXNUseCGContextRefBit = 7
74kTXNImageWithQDBit = 8
75kTXNDontWrapTextBit = 9
76kTXNSetFlushnessMask = 1L << kTXNSetFlushnessBit
77kTXNSetJustificationMask = 1L << kTXNSetJustificationBit
78kTXNUseFontFallBackMask = 1L << kTXNUseFontFallBackBit
79kTXNRotateTextMask = 1L << kTXNRotateTextBit
80kTXNUseVerticalTextMask = 1L << kTXNUseVerticalTextBit
81kTXNDontUpdateBoxRectMask = 1L << kTXNDontUpdateBoxRectBit
82kTXNDontDrawTextMask = 1L << kTXNDontDrawTextBit
83kTXNUseCGContextRefMask = 1L << kTXNUseCGContextRefBit
84kTXNImageWithQDMask = 1L << kTXNImageWithQDBit
85kTXNDontWrapTextMask = 1L << kTXNDontWrapTextBit
86kTXNFontContinuousBit = 0
87kTXNSizeContinuousBit = 1
88kTXNStyleContinuousBit = 2
89kTXNColorContinuousBit = 3
90kTXNFontContinuousMask = 1L << kTXNFontContinuousBit
91kTXNSizeContinuousMask = 1L << kTXNSizeContinuousBit
92kTXNStyleContinuousMask = 1L << kTXNStyleContinuousBit
93kTXNColorContinuousMask = 1L << kTXNColorContinuousBit
94kTXNIgnoreCaseBit = 0
95kTXNEntireWordBit = 1
96kTXNUseEncodingWordRulesBit = 31
97kTXNIgnoreCaseMask = 1L << kTXNIgnoreCaseBit
98kTXNEntireWordMask = 1L << kTXNEntireWordBit
99# kTXNUseEncodingWordRulesMask = (unsigned long)(1L << kTXNUseEncodingWordRulesBit)
100kTXNTextensionFile = FOUR_CHAR_CODE('txtn')
101kTXNTextFile = FOUR_CHAR_CODE('TEXT')
102kTXNPictureFile = FOUR_CHAR_CODE('PICT')
103kTXNMovieFile = FOUR_CHAR_CODE('MooV')
104kTXNSoundFile = FOUR_CHAR_CODE('sfil')
105kTXNAIFFFile = FOUR_CHAR_CODE('AIFF')
106kTXNUnicodeTextFile = FOUR_CHAR_CODE('utxt')
107kTXNTextEditStyleFrameType = 1
108kTXNPageFrameType = 2
109kTXNMultipleFrameType = 3
110kTXNTextData = FOUR_CHAR_CODE('TEXT')
111kTXNPictureData = FOUR_CHAR_CODE('PICT')
112kTXNMovieData = FOUR_CHAR_CODE('moov')
113kTXNSoundData = FOUR_CHAR_CODE('snd ')
114kTXNUnicodeTextData = FOUR_CHAR_CODE('utxt')
115kTXNLineDirectionTag = FOUR_CHAR_CODE('lndr')
116kTXNJustificationTag = FOUR_CHAR_CODE('just')
117kTXNIOPrivilegesTag = FOUR_CHAR_CODE('iopv')
118kTXNSelectionStateTag = FOUR_CHAR_CODE('slst')
119kTXNInlineStateTag = FOUR_CHAR_CODE('inst')
120kTXNWordWrapStateTag = FOUR_CHAR_CODE('wwrs')
121kTXNKeyboardSyncStateTag = FOUR_CHAR_CODE('kbsy')
122kTXNAutoIndentStateTag = FOUR_CHAR_CODE('auin')
123kTXNTabSettingsTag = FOUR_CHAR_CODE('tabs')
124kTXNRefConTag = FOUR_CHAR_CODE('rfcn')
125kTXNMarginsTag = FOUR_CHAR_CODE('marg')
126kTXNFlattenMoviesTag = FOUR_CHAR_CODE('flat')
127kTXNDoFontSubstitution = FOUR_CHAR_CODE('fSub')
128kTXNNoUserIOTag = FOUR_CHAR_CODE('nuio')
129kTXNUseCarbonEvents = FOUR_CHAR_CODE('cbcb')
130kTXNDrawCaretWhenInactiveTag = FOUR_CHAR_CODE('dcrt')
131kTXNDrawSelectionWhenInactiveTag = FOUR_CHAR_CODE('dsln')
132kTXNDisableDragAndDropTag = FOUR_CHAR_CODE('drag')
133kTXNTypingAction = 0
134kTXNCutAction = 1
135kTXNPasteAction = 2
136kTXNClearAction = 3
137kTXNChangeFontAction = 4
138kTXNChangeFontColorAction = 5
139kTXNChangeFontSizeAction = 6
140kTXNChangeStyleAction = 7
141kTXNAlignLeftAction = 8
142kTXNAlignCenterAction = 9
143kTXNAlignRightAction = 10
144kTXNDropAction = 11
145kTXNMoveAction = 12
146kTXNFontFeatureAction = 13
147kTXNFontVariationAction = 14
148kTXNUndoLastAction = 1024
149# kTXNClearThisControl = (long)0xFFFFFFFF
150# kTXNClearTheseFontFeatures = (long)0x80000000
151kTXNReadWrite = false
152kTXNReadOnly = true
153kTXNSelectionOn = true
154kTXNSelectionOff = false
155kTXNUseInline = false
156kTXNUseBottomline = true
157kTXNAutoWrap = false
158kTXNNoAutoWrap = true
159kTXNSyncKeyboard = false
160kTXNNoSyncKeyboard = true
161kTXNAutoIndentOff = false
162kTXNAutoIndentOn = true
163kTXNDontDrawCaretWhenInactive = false
164kTXNDrawCaretWhenInactive = true
165kTXNDontDrawSelectionWhenInactive = false
166kTXNDrawSelectionWhenInactive = true
167kTXNEnableDragAndDrop = false
168kTXNDisableDragAndDrop = true
169kTXNRightTab = -1
170kTXNLeftTab = 0
171kTXNCenterTab = 1
172kTXNLeftToRight = 0
173kTXNRightToLeft = 1
174kTXNFlushDefault = 0
175kTXNFlushLeft = 1
176kTXNFlushRight = 2
177kTXNCenter = 4
178kTXNFullJust = 8
179kTXNForceFullJust = 16
180kScrollBarsAlwaysActive = true
181kScrollBarsSyncWithFocus = false
182# kTXNDontCareTypeSize = (long)0xFFFFFFFF
183kTXNDontCareTypeStyle = 0xFF
184kTXNIncrementTypeSize = 0x00000001
185# kTXNDecrementTypeSize = (long)0x80000000
186kTXNUseScriptDefaultValue = -1
187kTXNNoFontVariations = 0x7FFF
188# kTXNUseCurrentSelection = (unsigned long)0xFFFFFFFF
189# kTXNStartOffset = 0
190# kTXNEndOffset = 0x7FFFFFFF
191kTXNSingleStylePerTextDocumentResType = FOUR_CHAR_CODE('MPSR')
192kTXNMultipleStylesPerTextDocumentResType = FOUR_CHAR_CODE('styl')
193kTXNShowStart = false
194kTXNShowEnd = true
195kTXNDefaultFontName = 0
196kTXNDefaultFontSize = 0x000C0000
197kTXNDefaultFontStyle = normal
198kTXNQDFontNameAttribute = FOUR_CHAR_CODE('fntn')
199kTXNQDFontFamilyIDAttribute = FOUR_CHAR_CODE('font')
200kTXNQDFontSizeAttribute = FOUR_CHAR_CODE('size')
201kTXNQDFontStyleAttribute = FOUR_CHAR_CODE('face')
202kTXNQDFontColorAttribute = FOUR_CHAR_CODE('klor')
203kTXNTextEncodingAttribute = FOUR_CHAR_CODE('encd')
204kTXNATSUIFontFeaturesAttribute = FOUR_CHAR_CODE('atfe')
205kTXNATSUIFontVariationsAttribute = FOUR_CHAR_CODE('atva')
206# kTXNQDFontNameAttributeSize = sizeof(Str255)
207# kTXNQDFontFamilyIDAttributeSize = sizeof(SInt16)
208# kTXNQDFontSizeAttributeSize = sizeof(SInt16)
209# kTXNQDFontStyleAttributeSize = sizeof(Style)
210# kTXNQDFontColorAttributeSize = sizeof(RGBColor)
211# kTXNTextEncodingAttributeSize = sizeof(TextEncoding)
212# kTXNFontSizeAttributeSize = sizeof(Fixed)
213kTXNSystemDefaultEncoding = 0
214kTXNMacOSEncoding = 1
215kTXNUnicodeEncoding = 2
216kTXNBackgroundTypeRGB = 1
217kTXNTextInputCountBit = 0
218kTXNRunCountBit = 1
219kTXNTextInputCountMask = 1L << kTXNTextInputCountBit
220kTXNRunCountMask = 1L << kTXNRunCountBit
221kTXNAllCountMask = kTXNTextInputCountMask | kTXNRunCountMask
222kTXNNoAppleEventHandlersBit = 0
223kTXNRestartAppleEventHandlersBit = 1
224kTXNNoAppleEventHandlersMask = 1 << kTXNNoAppleEventHandlersBit
225kTXNRestartAppleEventHandlersMask = 1 << kTXNRestartAppleEventHandlersBit
226# status = TXNInitTextension( &defaults
227