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