diff --git a/Mac/Lib/Carbon/MacTextEditor.py b/Mac/Lib/Carbon/MacTextEditor.py index 3edd886babb..baa74cfc246 100644 --- a/Mac/Lib/Carbon/MacTextEditor.py +++ b/Mac/Lib/Carbon/MacTextEditor.py @@ -36,6 +36,10 @@ kTXNSaveStylesAsSTYLResourceBit = 8 kOutputTextInUnicodeEncodingBit = 9 kTXNDoNotInstallDragProcsBit = 10 kTXNAlwaysWrapAtViewEdgeBit = 11 +kTXNDontDrawCaretWhenInactiveBit = 12 +kTXNDontDrawSelectionWhenInactiveBit = 13 +kTXNSingleLineOnlyBit = 14 +kTXNDisableDragAndDropBit = 15 kTXNDrawGrowIconMask = 1L << kTXNDrawGrowIconBit kTXNShowWindowMask = 1L << kTXNShowWindowBit kTXNWantHScrollBarMask = 1L << kTXNWantHScrollBarBit @@ -48,6 +52,24 @@ kTXNSaveStylesAsSTYLResourceMask = 1L << kTXNSaveStylesAsSTYLResourceBit kOutputTextInUnicodeEncodingMask = 1L << kOutputTextInUnicodeEncodingBit kTXNDoNotInstallDragProcsMask = 1L << kTXNDoNotInstallDragProcsBit kTXNAlwaysWrapAtViewEdgeMask = 1L << kTXNAlwaysWrapAtViewEdgeBit +kTXNDontDrawCaretWhenInactiveMask = 1L << kTXNDontDrawCaretWhenInactiveBit +kTXNDontDrawSelectionWhenInactiveMask = 1L << kTXNDontDrawSelectionWhenInactiveBit +kTXNSingleLineOnlyMask = 1L << kTXNSingleLineOnlyBit +kTXNDisableDragAndDropMask = 1L << kTXNDisableDragAndDropBit +kTXNSetFlushnessBit = 0 +kTXNSetJustificationBit = 1 +kTXNUseFontFallBackBit = 2 +kTXNRotateTextBit = 3 +kTXNUseVerticalTextBit = 4 +kTXNDontUpdateBoxRectBit = 5 +kTXNDontDrawTextBit = 6 +kTXNSetFlushnessMask = 1L << kTXNSetFlushnessBit +kTXNSetJustificationMask = 1L << kTXNSetJustificationBit +kTXNUseFontFallBackMask = 1L << kTXNUseFontFallBackBit +kTXNRotateTextMask = 1L << kTXNRotateTextBit +kTXNUseVerticalTextMask = 1L << kTXNUseVerticalTextBit +kTXNDontUpdateBoxRectMask = 1L << kTXNDontUpdateBoxRectBit +kTXNDontDrawTextMask = 1L << kTXNDontDrawTextBit kTXNFontContinuousBit = 0 kTXNSizeContinuousBit = 1 kTXNStyleContinuousBit = 2 @@ -61,13 +83,14 @@ kTXNEntireWordBit = 1 kTXNUseEncodingWordRulesBit = 31 kTXNIgnoreCaseMask = 1L << kTXNIgnoreCaseBit kTXNEntireWordMask = 1L << kTXNEntireWordBit -kTXNUseEncodingWordRulesMask = 1L << kTXNUseEncodingWordRulesBit +kTXNUseEncodingWordRulesMask = (unsigned long)(1L << kTXNUseEncodingWordRulesBit) kTXNTextensionFile = FOUR_CHAR_CODE('txtn') kTXNTextFile = FOUR_CHAR_CODE('TEXT') kTXNPictureFile = FOUR_CHAR_CODE('PICT') -kTXNMovieFile = MovieFileType +kTXNMovieFile = FOUR_CHAR_CODE('MooV') kTXNSoundFile = FOUR_CHAR_CODE('sfil') kTXNAIFFFile = FOUR_CHAR_CODE('AIFF') +kTXNUnicodeTextFile = FOUR_CHAR_CODE('utxt') kTXNTextEditStyleFrameType = 1 kTXNPageFrameType = 2 kTXNMultipleFrameType = 3 @@ -87,7 +110,13 @@ kTXNAutoIndentStateTag = FOUR_CHAR_CODE('auin') kTXNTabSettingsTag = FOUR_CHAR_CODE('tabs') kTXNRefConTag = FOUR_CHAR_CODE('rfcn') kTXNMarginsTag = FOUR_CHAR_CODE('marg') +kTXNFlattenMoviesTag = FOUR_CHAR_CODE('flat') +kTXNDoFontSubstitution = FOUR_CHAR_CODE('fSub') kTXNNoUserIOTag = FOUR_CHAR_CODE('nuio') +kTXNUseCarbonEvents = FOUR_CHAR_CODE('cbcb') +kTXNDrawCaretWhenInactiveTag = FOUR_CHAR_CODE('dcrt') +kTXNDrawSelectionWhenInactiveTag = FOUR_CHAR_CODE('dsln') +kTXNDisableDragAndDropTag = FOUR_CHAR_CODE('drag') kTXNTypingAction = 0 kTXNCutAction = 1 kTXNPasteAction = 2 @@ -103,7 +132,7 @@ kTXNDropAction = 11 kTXNMoveAction = 12 kTXNFontFeatureAction = 13 kTXNFontVariationAction = 14 -kTXNUndoLastAction = 1024 +kTXNUndoLastAction = 1024 # kTXNClearThisControl = (long)0xFFFFFFFF # kTXNClearTheseFontFeatures = (long)0x80000000 kTXNReadWrite = false @@ -118,6 +147,12 @@ kTXNSyncKeyboard = false kTXNNoSyncKeyboard = true kTXNAutoIndentOff = false kTXNAutoIndentOn = true +kTXNDontDrawCaretWhenInactive = false +kTXNDrawCaretWhenInactive = true +kTXNDontDrawSelectionWhenInactive = false +kTXNDrawSelectionWhenInactive = true +kTXNEnableDragAndDrop = false +kTXNDisableDragAndDrop = true kTXNRightTab = -1 kTXNLeftTab = 0 kTXNCenterTab = 1 @@ -128,13 +163,15 @@ kTXNFlushLeft = 1 kTXNFlushRight = 2 kTXNCenter = 4 kTXNFullJust = 8 -kTXNForceFullJust = 16 +kTXNForceFullJust = 16 kScrollBarsAlwaysActive = true kScrollBarsSyncWithFocus = false # kTXNDontCareTypeSize = (long)0xFFFFFFFF kTXNDontCareTypeStyle = 0xFF kTXNIncrementTypeSize = 0x00000001 # kTXNDecrementTypeSize = (long)0x80000000 +kTXNUseScriptDefaultValue = -1 +kTXNNoFontVariations = 0x7FFF # kTXNUseCurrentSelection = 0xFFFFFFFFUL # kTXNStartOffset = 0UL # kTXNEndOffset = 0x7FFFFFFFUL @@ -156,9 +193,19 @@ kTXNATSUIFontVariationsAttribute = FOUR_CHAR_CODE('atva') # kTXNQDFontStyleAttributeSize = sizeof(Style) # kTXNQDFontColorAttributeSize = sizeof(RGBColor) # kTXNTextEncodingAttributeSize = sizeof(TextEncoding) +kTXNFontSizeAttributeSize = sizeof(Fixed) kTXNSystemDefaultEncoding = 0 kTXNMacOSEncoding = 1 kTXNUnicodeEncoding = 2 kTXNBackgroundTypeRGB = 1 +kTXNTextInputCountBit = 0 +kTXNRunCountBit = 1 +kTXNTextInputCountMask = 1L << kTXNTextInputCountBit +kTXNRunCountMask = 1L << kTXNRunCountBit +kTXNAllCountMask = kTXNTextInputCountMask | kTXNRunCountMask +kTXNNoAppleEventHandlersBit = 0 +kTXNRestartAppleEventHandlersBit = 1 +kTXNNoAppleEventHandlersMask = 1 << kTXNNoAppleEventHandlersBit +kTXNRestartAppleEventHandlersMask = 1 << kTXNRestartAppleEventHandlersBit # status = TXNInitTextension( &defaults # justification = LMTESysJust