Adobe.com
Contents Suites Classes Class Index Member Index

ATETypes.h

Go to the documentation of this file.
00001 /* -------------------------------------------------------------------------------
00002 
00003     Copyright 2000-2006 Adobe Systems Incorporated. All Rights Reserved.
00004 
00005     NOTICE:  Adobe permits you to use, modify, and distribute this file 
00006     in accordance with the terms of the Adobe license agreement accompanying 
00007     it. If you have received this file from a source other than Adobe, then 
00008     your use, modification, or distribution of it requires the prior written 
00009     permission of Adobe.
00010 
00011  ----------------------------------------------------------------------------------
00012  
00013         $File: ATETypes.h $
00014 
00015         Author: 
00016 
00017         $Author: micheleg $
00018 
00019         $DateTime: 2006/01/02 16:27:31 $
00020 
00021         $Revision: #2 $
00022 
00023         $Change: 379550 $
00024         
00025         Notes:  
00026         
00027  ---------------------------------------------------------------------------------- */
00028 #ifndef __ATETypes__
00029 #define __ATETypes__
00030 
00031 #ifdef __MWERKS__
00032         #if defined(__MC68K__) || defined(__POWERPC__)
00033                 #pragma enumsalwaysint on
00034         #endif
00035 #endif // __MWERKS__
00036 
00037 // ----------------------------------------------------------------------------------
00038 
00039 typedef unsigned short ASUTF16;
00040 
00041 #ifdef __cplusplus
00042 
00054 #define ATE_ENUM_BIT_OPERATORS(E)       \
00055     inline E operator| (E a, E b)       \
00056     {                                   \
00057         return E((int)a | (int)b);      \
00058     }                                   \
00059     inline E operator& (E a, E b)       \
00060     {                                   \
00061         return E((int)a & (int)b);      \
00062     }                                   \
00063     inline E operator^ (E a, E b)       \
00064     {                                   \
00065         return E((int)a ^ (int)b);      \
00066     }                                   \
00067     inline E operator~ (E a)            \
00068     {                                   \
00069         return E(~((int)a));            \
00070     }                                   \
00071     inline E& operator|= (E& a, E b)    \
00072     {                                   \
00073         return a = a | b;               \
00074     }                                   \
00075     inline E& operator&= (E& a, E b)    \
00076     {                                   \
00077         return a = a & b;               \
00078     }                                   \
00079     inline E& operator^= (E& a, E b)    \
00080     {                                   \
00081         return a = a ^ b;               \
00082     }
00083 
00084 // ----------------------------------------------------------------------------------
00085 
00086 namespace ATE
00087 {
00088 #endif
00089 
00090 typedef int     ATEGlyphID;
00091 
00092 typedef unsigned char ATEBool8;
00093 
00094 // Some compilers complain of performance issues when converting
00095 // between ATEBool8 (an integral value) and bool. These macros
00096 // dodge these warnings but leave the code using them readable.
00097 #define ATEBOOL8_IS_TRUE(value) (value) != 0
00098 #define ATEBOOL8PTR_IS_TRUE(value) (value) ? *(value) != 0 : false
00099 
00101 enum ATEErr {
00102         kNoError = 0,
00103         kBadParameter,
00104         kOutOfMemory,
00105         kOutOfRange,
00106         kNullPointer,
00107         kInternalError,
00108         kMissingSpellingDictionary,
00109         kMissingHyphenationDictionary
00110 };
00111 #ifndef __cplusplus
00112 typedef enum ATEErr ATEErr;
00113 #endif
00114 
00115 // ----------------------------------------------------------------------------------
00116 
00118 enum StreamVersion
00119 {
00120         kStreamVersion1 = 1,                                                                                                    // pre CS1 (ATE 1.0 )
00121         kStreamVersion2,                                                                                                                // CS1 - (ATE 2.0)
00122         kStreamVersion3,        kStreamLastNonPersistedVersion  = kStreamVersion3,      // CS2 redux (shorter tag names) - (ATE V2.5)
00123                                                 kStreamCS2Redux                                 = kStreamVersion3,
00124         kStreamVersion4,        kVerticalTextScaleChange                = kStreamVersion4,      // CS3 vertical text scale change (ATE 2.51)
00125         kStreamVersion5,        kComplexScriptSupport                   = kStreamVersion5,      // CS4 complex script support (ATE 3.0)
00126         kStreamVersion6,                                                                                                                // CS5 (ATE 4.0)
00127         kStreamVersion7,                                                                                                                // CS6 hyperlink support (ATE 5.0)
00128         kStreamVersion8,                                                                                                                // CS7 (ATE 6.0)
00129         // ^^^^^^^^^^^^ Add new versions above this comment ^^^^^^^^^^^^ 
00130         // This allows us to have the current version always equal the last.
00131         kDontUseLastPlusOne,
00132         kStreamCurrentVersion = kDontUseLastPlusOne - 1
00133 };
00134 #ifndef __cplusplus
00135 typedef enum StreamVersion StreamVersion;
00136 #endif
00137 
00138 // ----------------------------------------------------------------------------------
00139 
00141 enum StreamFormatting
00142 {
00143         kEfficientPDFOutput,
00144         kPrettyPDFOutput,
00145         kBinaryPDFOutput
00146 #if SLO_XML
00147         ,kXMLUTF8Output
00148 #endif
00149 };
00150 #ifndef __cplusplus
00151 typedef enum StreamFormatting StreamFormatting;
00152 #endif
00153 
00154 // ----------------------------------------------------------------------------------
00155 
00156 enum FeatureSet 
00157 {
00158         kLatinCJKFeatureSet, 
00159         kMEFeatureSet,
00160         kIndicFeatureSet
00161 };
00162 
00163 #ifndef __cplusplus
00164 typedef enum FeatureSet FeatureSet;
00165 #endif
00166 
00167 // ----------------------------------------------------------------------------------
00168 
00169 enum FontLockingAllowance 
00170 {
00171         kAllowFontLocking, 
00172         kDontAllowFontLocking,
00173         kUseFontLockDocumentSetting
00174 };
00175 
00176 #ifndef __cplusplus
00177 typedef enum FontLockingAllowance FontLockingAllowance;
00178 #endif
00179 
00180 // ----------------------------------------------------------------------------------
00181 
00183 enum LineCapType {
00184         kButtCap = 0,
00185         kRoundCap = 1,
00186         kSquareCap = 2,
00187         kNumLineCapTypes
00188 };
00189 #ifndef __cplusplus
00190 typedef enum LineCapType LineCapType;
00191 #endif
00192 
00193 // ----------------------------------------------------------------------------------
00194 
00196 enum ASCharType {
00198         kASSpaceChar = 0,
00200         kPunctuationChar,
00202         kParagraphEndChar,
00204         kNormalChar
00205 };
00206 #ifndef __cplusplus
00207 typedef enum ASCharType ASCharType;
00208 #endif
00209 
00210 // ----------------------------------------------------------------------------------
00211 
00213 enum LineJoinType {
00215         kMiterJoin = 0,
00217         kRoundJoin = 1,
00219         kBevelJoin = 2,
00220         kNumLineJoinTypes
00221 };
00222 #ifndef __cplusplus
00223 typedef enum LineJoinType LineJoinType;
00224 #endif
00225 
00226 // ----------------------------------------------------------------------------------
00227 
00229 enum ParagraphJustification
00230 {
00231         kLeftJustify = 0,
00232         kRightJustify,
00233         kCenterJustify,
00234 
00235         kFullJustifyLastLineLeft,
00236         kFullJustifyLastLineRight,
00237         kFullJustifyLastLineCenter,
00238 
00239         kFullJustifyLastLineFull
00240 };
00241 #ifndef __cplusplus
00242 typedef enum ParagraphJustification ParagraphJustification;
00243 #endif
00244 
00245 // ----------------------------------------------------------------------------------
00246 
00254 enum ComposerEngine 
00255 { 
00256         kLatinCJKComposer = 0, 
00257         kOptycaComposer,
00258         kAdornment
00259 };
00260 #ifndef __cplusplus
00261 typedef enum ComposerEngine ComposerEngine;
00262 #endif
00263 
00264 // ----------------------------------------------------------------------------------
00265 
00267 enum ParagraphDirection
00268 {
00269         kLeftToRight = 0,
00270         kRightToLeft
00271 };
00272 #ifndef __cplusplus
00273 typedef enum ParagraphDirection ParagraphDirection;
00274 #endif
00275 
00276 // ----------------------------------------------------------------------------------
00277 
00279 enum JustificationMethod
00280 {
00281         kJustifMethodDefault = 0,               //corresponds to kLatinLike in WR
00282         kJustifMethodArabic,                    //corresponds to kEvenKashidasStretched in WR
00283         kJustifMethodNaskh,                             //corresponds to kTraditionalNaskh in WR
00284         kJustifMethodNaskhTatweel,              //corresponds to kTraditionalNaskhTatweel in WR
00285         kJustifMethodNaskhKashida,              //corresponds to kTraditionalNaskhKashida in WR
00286         kJustifMethodNaskhTatweelFrac,  //corresponds to kTraditionalNaskhTatweelFrac in WR
00287         kJustifMethodNaskhKashidaFrac,  //corresponds to kTraditionalNaskhKashidaFrac in WR
00288         kJustifMethodAuto                               //ATE shall decide justification method on the basis of 
00289                                                                         //Kashida Width. Following Logic would be used:
00290                                                                         //None          : kLatinLike,
00291                                                                         //Short         : kTraditionalNaskhKashidaFrac, 
00292                                                                         //Medium        : kTraditionalNaskhKashidaFrac,
00293                                                                         //Long          : kTraditionalNaskhKashidaFrac,
00294                                                                         //Stylistic     : kTraditionalNaskhKashida,
00295 };
00296 #ifndef __cplusplus
00297 typedef enum JustificationMethod JustificationMethod;
00298 #endif
00299 
00300 // ----------------------------------------------------------------------------------
00301 
00303 enum DigitSet
00304 {
00305         kDefaultDigits = 0,
00306         kArabicDigits,
00307         kHindiDigits,
00308         kFarsiDigits
00309 };
00310 #ifndef __cplusplus
00311 typedef enum DigitSet DigitSet;
00312 #endif
00313 
00314 // ----------------------------------------------------------------------------------
00315 
00317 enum DirOverride
00318 { 
00319         kDirOverrideDefault = 0,
00320         kDirOverrideLTR,
00321         kDirOverrideRTL 
00322 };
00323 #ifndef __cplusplus
00324 typedef enum DirOverride DirOverride;
00325 #endif
00326 
00327 // ----------------------------------------------------------------------------------
00328 
00330 enum DiacVPos
00331 {
00332         kDiacVPosOff = 0,
00333         kDiacVPosLoose,
00334         kDiacVPosMedium,
00335         kDiacVPosTight,
00336         kDiacVPosOpenType 
00337 };
00338 #ifndef __cplusplus
00339 typedef enum DiacPosition DiacPosition;
00340 #endif
00341 
00342 // ----------------------------------------------------------------------------------
00343 
00345 enum Kashidas
00346 { 
00347         kKashidaDefault = 0,
00348         kKashidaOn = kKashidaDefault,
00349         kKashidaOff 
00350 };
00351 
00352 enum KashidaWidth
00353 { 
00354         kKashidaNone = 0,
00355         kKashidaSmall,
00356         kKashidaMedium,
00357         kKashidaLong,
00358         kKashidaStylistic
00359 };
00360 
00361 #ifndef __cplusplus
00362 typedef enum Kashidas Kashidas;
00363 #endif
00364 
00365 // ----------------------------------------------------------------------------------
00366 
00368 enum WariChuJustification
00369 {
00370         kWariChuLeftJustify = 0,
00371         kWariChuRightJustify,
00372         kWariChuCenterJustify,
00373 
00374         kWariChuFullJustifyLastLineLeft,
00375         kWariChuFullJustifyLastLineRight,
00376         kWariChuFullJustifyLastLineCenter,
00377 
00378         kWariChuFullJustifyLastLineFull,
00379 
00380         kWariChuAutoJustify
00381 };
00382 #ifndef __cplusplus
00383 typedef enum WariChuJustification WariChuJustification;
00384 #endif
00385 
00386 // ----------------------------------------------------------------------------------
00387 
00389 enum PreferredKinsokuOrder
00390 {
00391         kPushIn = 0,
00392         kPushOutFirst,
00393         kPushOutOnly
00394 };
00395 #ifndef __cplusplus
00396 typedef enum PreferredKinsokuOrder PreferredKinsokuOrder;
00397 #endif
00398 
00399 // ----------------------------------------------------------------------------------
00400 
00402 enum BurasagariType
00403 {
00404         kBurasagariNone = 0,
00405         kBurasagariStandard,
00406         kBurasagariStrong
00407 };
00408 #ifndef __cplusplus
00409 typedef enum BurasagariType BurasagariType;
00410 #endif
00411 
00412 // ----------------------------------------------------------------------------------
00413 
00415 enum LeadingType
00416 {
00417         kRomanLeadingType = 0,
00418         kJapaneseLeadingType = 1
00419 };
00420 #ifndef __cplusplus
00421 typedef enum LeadingType LeadingType;
00422 #endif
00423 
00424 // ----------------------------------------------------------------------------------
00425 
00427 enum TabType
00428 {
00429         kLeftTabType = 0,
00430         kCenterTabType,
00431         kRightTabType,
00432         kDecimalTabType
00433 };
00434 #ifndef __cplusplus
00435 typedef enum TabType TabType;
00436 #endif
00437 
00438 // ----------------------------------------------------------------------------------
00439 
00441 enum AutoKernType { kNoAutoKern, kMetricKern, kOpticalKern, kMetricRomanOnlyKern };
00442 #ifndef __cplusplus
00443 typedef enum AutoKernType AutoKernType;
00444 #endif
00445 
00446 // ----------------------------------------------------------------------------------
00447 
00449 enum JapaneseAlternateFeature
00450 {
00451         kDefaultForm,
00452         kTraditionalForm,
00453         kExpertForm,
00454         kJIS78Form,
00455         kJIS83Form,
00456         kHalfWidthForm,
00457         kThirdWidthForm,
00458         kQuarterWidthForm,
00459         kFullWidthForm,
00460         kProportionalWidthForm,
00461         kJIS90Form,
00462         kJIS04Form
00463 };
00464 #ifndef __cplusplus
00465 typedef enum JapaneseAlternateFeature JapaneseAlternateFeature;
00466 #endif
00467 
00468 // ----------------------------------------------------------------------------------
00469 
00471 enum BaselineDirection
00472 {
00473         kNeverUseMustBeKnown = 0,                               // we don't allow "unknown" like we used to
00474         kBaselineWithStream = 1,        // rotate roman glyphs to vertical orientation in vertical
00475         kBaselineVerticalRotated = 2,                                   // default baseline -- roman glyphs on side in vertical
00476         kBaselineVerticalCrossStream = 3                                // Tate-Chu-Yoko in vertical
00477 };
00478 #ifndef __cplusplus
00479 typedef enum BaselineDirection BaselineDirection;
00480 #endif
00481 
00482 // ----------------------------------------------------------------------------------
00483 
00485 enum UnderlinePosition
00486 {
00487         kUnderlineOff,
00488         kUnderlineOn_RightInVertical,
00489         kUnderlineOn_LeftInVertical
00490 };
00491 
00492 #ifndef __cplusplus
00493 typedef enum UnderlinePosition UnderlinePosition;
00494 #endif
00495 
00496 // ----------------------------------------------------------------------------------
00497 
00499 enum UnderlineStyle
00500 {
00501         kUnderlineSolid,
00502         kUnderlineDashed
00503 };
00504 
00505 #ifndef __cplusplus
00506 typedef enum UnderlineStyle UnderlineStyle;
00507 #endif
00508 
00509 // ----------------------------------------------------------------------------------
00510 
00512 enum StrikethroughPosition
00513 {
00514         kStrikethroughOff,
00515         kStrikethroughOn_XHeight,
00516         kStrikethroughOn_EMBox
00517 };
00518 
00519 #ifndef __cplusplus
00520 typedef enum StrikethroughPosition StrikethroughPosition;
00521 #endif
00522 
00523 // ----------------------------------------------------------------------------------
00524 
00526 enum StyleRunAlignment
00527 {
00528         kAlignStylesByBottom = 0,
00529         kAlignStylesByICFBottom = 1,
00530         
00531         kAlignStylesByRomanHorizontalCenterVertical = 2,
00532         
00533         kAlignStylesByCenterHorizontalRomanVertical = 3,
00534         
00535         kAlignStylesByICFTop = 4,
00536         kAlignStylesByTop = 5
00537 };
00538 #ifndef __cplusplus
00539 typedef enum StyleRunAlignment StyleRunAlignment;
00540 #endif
00541 
00542 // ----------------------------------------------------------------------------------
00543 
00545 enum CaseChangeType
00546 {
00547         kUppercase = 0,
00548         kLowercase,
00549         kTitleCase,
00550         kSentenceCase
00551 };
00552 #ifndef __cplusplus
00553 typedef enum CaseChangeType CaseChangeType;
00554 #endif
00555 
00556 // ----------------------------------------------------------------------------------
00557 
00558 struct SLOToOTLanguage
00559 {
00560         const char* fScript;
00561         const char* fLanguage;
00562 };
00563 
00565 // NEW LANGUAGES MUST BE ADDED AT THE END OF THE LIST
00566 // otherwise make appropriate corrections to LinguisticSettings::GetIndex()
00567 enum Language
00568 {
00569         kEnglishLanguage,
00570         kFinnishLanguage,
00571         kStandardFrenchLanguage,
00572         kCanadianFrenchLanguage,
00573         kGerman1996ReformLanguage,                      // [1996-2006] Previously kStandardGermanLanguage.  See below for latest German.
00574         kOldGermanLanguage,                                     // As we moved from Proximity Hunspell the Old German language mapping changed to 1901 language.
00575         kOldSwissGermanLanguage,                        // Pre 2006 Reform.  Previously kSwissGermanLanguage.  See below for latest Swiss German.
00576         kItalianLanguage,
00577         kBokmalNorwegianLanguage,
00578         kNynorskNorwegianLanguage,
00579         kStandardPortugueseLanguage,
00580         kBrazillianPortugueseLanguage,
00581         kSpanishLanguage,
00582         kSwedishLanguage,
00583         kUKEnglishLanguage,
00584         kOldDutchLanguage,                                      // Pre 2006 Reform. Previously kDutchLanguage. See below for latest Dutch.
00585         kDanish,
00586         kCatalan,
00587         kRussian,
00588         kUkranian,
00589         kBulgarian,
00590         kSerbian,
00591         kCzech,
00592         kPolish,
00593         kRumanian,
00594         kGreek,
00595         kTurkish,
00596         kIcelandic,
00597         kHungarian,
00598         kChineseLanguage,
00599         kJapaneseLanguage,
00600         kCroatian,
00601         kHebrew,
00602         kSlovenian,
00603         kBelarussian,
00604         kAlbanian,
00605         kLithuanian,
00606         kLatvian,
00607         kSlovakian,
00608         kArabic,
00609         kEstonian,
00610         kFarsi,
00611         kGerman2006ReformLanguage,                      // Latest German.  Should be the default as of 2006
00612         kDutch2005ReformLanguage,                       // Latest Dutch.   Should be the default as of 2006
00613         kSwissGerman2006ReformLanguage,         // Latest Swiss German.   Should be the default as of 2006
00614         kCanadianEnglish,
00615         kThai,
00616         kVietnamese,
00617         kLao,
00618         kHindi,
00619         kMarathi,
00620         kBengaliIndia,
00621         kPunjabi,
00622         kGujarati,
00623         kOriya,
00624         kTamil,
00625         kTelugu,
00626         kKannada,
00627         kMalayalam,
00628         // Add all scripts supported by WRServices
00629         kNumberOfLanguages,
00630         kInvalidLanguage = 1000         // LILO need us to have an invalid language
00631 };
00632 
00633 //list of dictionary providers
00634 enum DictionaryProvider
00635 {
00636         kHunspellProvider,
00637         kWinSoftProvider,
00638         kWinSoftExtendedProvider,
00639         kUserDictionaryOnlyProvider,
00640         kProximityProvider,
00641         kMaxNumProviders,
00642         kInvalidProvider = 1000
00643 };
00644 
00645 //
00646 // DictionaryServiceType defines the types of services that are available from the dictionary provider
00647 //
00648 typedef ASUTF16 DictionaryServiceType;
00649 enum 
00650 {
00651         kSpellingService,
00652         kHyphenationService,
00653         kInvalidService
00654 };
00655 
00656 #ifndef __cplusplus
00657 typedef enum Language Language;
00658 #endif
00659 
00660 // ----------------------------------------------------------------------------------
00661 
00663 enum SyntheticFontType
00664 {
00665         kNoSynthetic = 0,
00666         kItalicSynthetic,
00667         kBoldSynthetic,
00668         kBoldItalicSynthetic
00669 };
00670 #ifndef __cplusplus
00671 typedef enum SyntheticFontType SyntheticFontType;
00672 #endif
00673 
00675 enum FigureStyle
00676 {
00677         kDefaultFigureStyle = 0,
00678         kTabularLining,
00679         kProportionalOldStyle,
00680         kProportionalLining,
00681         kTabularOldStyle
00682 };
00683 #ifndef __cplusplus
00684 typedef enum FigureStyle FigureStyle;
00685 #endif
00686 
00687 // ----------------------------------------------------------------------------------
00688 
00690 enum FontCapsOption
00691 {
00692         kFontNormalCaps = 0,
00693         kFontSmallCaps,
00694         kFontAllCaps,
00695         kFontAllSmallCaps
00696 };
00697 #ifndef __cplusplus
00698 typedef enum FontCapsOption FontCapsOption;
00699 #endif
00700 
00701 // ----------------------------------------------------------------------------------
00702 
00704 enum FontBaselineOption
00705 {
00706         kFontNormalBaseline = 0,
00707         kFontFauxedSuperScript,
00708         kFontFauxedSubScript
00709 };
00710 
00711 #ifndef __cplusplus
00712 typedef enum FontBaselineOption FontBaselineOption;
00713 #endif
00714 
00715 // ----------------------------------------------------------------------------------
00716 
00718 enum FontOpenTypePositionOption
00719 {
00720         kFontOTNormalPosition,
00721         kFontOTSuperscriptPosition,
00722         kFontOTSubscriptPosition,
00723         kFontOTNumeratorPosition,
00724         kFontOTDenominatorPosition
00725 };
00726 
00727 #ifndef __cplusplus
00728 typedef enum FontOpenTypePositionOption FontOpenTypePositionOption;
00729 #endif
00730 
00731 // ----------------------------------------------------------------------------------
00732 
00734 enum MakeEmptyMemoryHint
00735 {
00736         kMakeEmptyAndFreeAllocations,
00737         kMakeEmptyAndPreserveAllocations
00738 };
00739 
00740 #ifndef __cplusplus
00741 typedef enum MakeEmptyMemoryHint MakeEmptyMemoryHint;
00742 #endif
00743 
00744 // ----------------------------------------------------------------------------------
00745 
00747 enum Direction { kForward = +1, kStationary = 0, kBackward = -1 };
00748 #ifndef __cplusplus
00749 typedef enum Direction Direction;
00750 #endif
00751 
00752 // ----------------------------------------------------------------------------------
00753 
00755 enum FlattenWithParentStyles
00756 {
00757         kDoNotFlattenWithParent = 0,
00758         kFlattenWithParent = 1
00759 };
00760 #ifndef __cplusplus
00761 typedef enum FlattenWithParentStyles FlattenWithParentStyles;
00762 #endif
00763 
00764 // ----------------------------------------------------------------------------------
00765 
00767 enum SearchScope
00768 {
00769         kSearchEntireDocument = 0,
00770         kSearchStory = 1
00771 };
00772 #ifndef __cplusplus
00773 typedef enum SearchScope SearchScope;
00774 #endif
00775 
00776 // ----------------------------------------------------------------------------------
00777 
00779 enum CollapseDirection
00780 {
00781         CollapseEnd,
00782         CollapseStart
00783 };
00784 #ifndef __cplusplus
00785 typedef enum CollapseDirection CollapseDirection;
00786 #endif
00787 
00788 
00789 // ----------------------------------------------------------------------------------
00790 
00792 enum
00793 {
00794         kOpenParenthesis_MojiKumiCharacterClass = 1,
00795         kCloseParenthesis_MojiKumiCharacterClass = 2,
00796         kCantBeginLineCharacters_MojiKumiCharacterClass = 3,
00797         kBreakingPunctuation_MojiKumiCharacterClass = 4,
00798         kMiddlePunctuation_MojiKumiCharacterClass = 5,
00799         kPeriods_MojiKumiCharacterClass = 6,
00800         kComma_MojiKumiCharacterClass = 7,
00801         kIndivisibleCharacters_MojiKumiCharacterClass = 8,
00802         kPreAbbreviationSymbols_MojiKumiCharacterClass = 9,
00803         kPostAbbreviationSymbols_MojiKumiCharacterClass = 10,
00804         kJapaneseSpace_MojiKumiCharacterClass = 11,
00805         kHiragana_MojiKumiCharacterClass = 12,
00806         kDoubleByteNumber_MojiKumiCharacterClass = 13,
00807         kOtherJapaneseCharacters_MojiKumiCharacterClass = 14,
00808         kSingleByteNumber_MojiKumiCharacterClass = 15,
00809         kRomanNonSpaceCharacters_MojiKumiCharacterClass = 16,
00810         kTopOrEndOfLine_MojiKumiCharacterClass = 17,
00811         kTopOfParagraph_MojiKumiCharacterClass = 18
00812 };
00813 
00814 // ----------------------------------------------------------------------------------
00815 
00817 enum CompositeFontClassType
00818 {
00819         kCompositeFontClassOverride = 0,
00820 
00821         // Following are predefined composite font class types
00822         kCompositeFontClassBase,                                        // Kanji class
00823         kCompositeFontClassKana,                                        // Full Width
00824         kCompositeFontClassPunctuation,
00825         kCompositeFontClassFWSymbolsAndAlphabetic,      // Full Width
00826         kCompositeFontClassHWSymbolsAndAlphabetic,      // Half Width
00827         kCompositeFontClassHWNumerals,                          // Half Width
00828         kCompositeFontClassGaiji0,
00829         kCompositeFontClassGaiji1,
00830         kCompositeFontClassGaiji2,
00831         kCompositeFontClassGaiji3,
00832         kCompositeFontClassGaiji4,
00833         kCompositeFontClassGaiji5,
00834         kCompositeFontClassGaiji6,
00835         kCompositeFontClassGaiji7,
00836         kCompositeFontClassGaiji8,
00837         kCompositeFontClassGaiji9,
00838         kCompositeFontClassGaiji10,
00839         kCompositeFontClassGaiji11,
00840 
00841         kEndOfCompositeFontClassType
00842 };
00843 #ifndef __cplusplus
00844 typedef enum CompositeFontClassType CompositeFontClassType;
00845 #endif
00846 
00847 // ----------------------------------------------------------------------------------
00848 
00850 enum MojiKumiCodeClass
00851 {
00852         kOpen = 1,
00853         kClose,
00854         kNoBegin,
00855         kEndPunctuation,
00856         kMiddlePunctuation,
00857         kPeriodPunctuation,
00858         kCommaPunctuation,
00859         kNotSeparatePunctuation,
00860         kSymbolsPrecedingNumbers,
00861         kSymbolsFollowingNumbers,
00862         kIdeographic,
00863         kHiragana,
00864         kDoubleByteNumbers,
00865         kOtherJapaneseCharacters,
00866         kSingleByteNumbers,
00867         kRomanNonSpace,
00868         kLineEdgeClass,
00869         kParagraphStartClass,
00870 
00871         kEndOfCodeClasses
00872 };
00873 #ifndef __cplusplus
00874 typedef enum MojiKumiCodeClass MojiKumiCodeClass;
00875 #endif
00876 
00877 // ----------------------------------------------------------------------------------
00878 
00880 enum ClassMetricRestriction
00881 {
00882         // class metric restrictions for a composite font component.
00883         kClassMetricRestrictionNone = 0,
00884         kClassMetricRestrictionSize = 1 << 0,
00885         kClassMetricRestrictionBaseline =  1 << 1,
00886         kClassMetricRestrictionHorizontalScale =  1 << 2,
00887         kClassMetricRestrictionVerticalScale =  1 << 3,
00888         kClassMetricRestrictionCenterGlyph = 1 << 4
00889 };
00890 #ifndef __cplusplus
00891 typedef enum ClassMetricRestriction ClassMetricRestriction;
00892 #endif
00893 
00894 // ----------------------------------------------------------------------------------
00895 
00897 enum LineOrientation
00898 {
00899         kHorizontalLines = 0,
00901         kVerticalLeftToRight = 1,       
00902         kVerticalRightToLeft = 2
00903 };
00904 #ifndef __cplusplus
00905 typedef enum LineOrientation LineOrientation;
00906 #endif
00907 
00908 
00909 // ----------------------------------------------------------------------------------
00910 
00912 enum GlyphOrientation
00913 {
00915         kHorizontalGlyphs,                              
00917         kVerticalGlyphs,                        
00919         kHorizontalGlyphsRotated,
00921         kVerticalUprightRomanGlyphs
00922 };
00923 #ifndef __cplusplus
00924 typedef enum GlyphOrientation GlyphOrientation;
00925 #endif
00926 
00928 enum FrameType
00929 {
00930         kPointTextFrame = 0,
00931         kInPathTextFrame = 1,
00932         kOnPathTextFrame = 2
00933 };
00934 #ifndef __cplusplus
00935 typedef enum FrameType FrameType;
00936 #endif
00937 
00938 // ----------------------------------------------------------------------------------
00939 
00941 enum SpellCheckingResult
00942 {
00943         kNoProblems = 0,
00944         kUnknownWord = 1,       
00945         kRepeatedWords = 2,
00946         kUncappedStartOfSentence = 3,
00947         kUncappedUnknownStartOfSentence = 4
00948 };
00949 #ifndef __cplusplus
00950 typedef enum SpellCheckingResult SpellCheckingResult;
00951 #endif
00952 
00953 // ----------------------------------------------------------------------------------
00954 
00956 enum KinsokuPredefinedTag
00957 {
00958         kUserDefinedKinsokuTag = 0,
00959         kPredefinedHardKinsokuTag = 1,
00960         kPredefinedSoftKinsokuTag = 2
00961 };
00962 #ifndef __cplusplus
00963 typedef enum KinsokuPredefinedTag KinsokuPredefinedTag;
00964 #endif
00965 
00966 // ----------------------------------------------------------------------------------
00967 
00969 enum MojikumiTablePredefinedTag
00970 {
00971         kUserDefinedMojikumiTableTag = 0,
00972         kPredefinedYakumonoHankakuMojikumiTableTag = 1,
00973         kPredefinedYakumonoZenkakuMojikumiTableTag = 2,
00974         kPredefinedGyomatsuYakumonoHankakuMojikumiTableTag = 3,
00975         kPredefinedGyomatsuYakumonoZenkakuMojikumiTableTag = 4
00976 };
00977 #ifndef __cplusplus
00978 typedef enum MojikumiTablePredefinedTag MojikumiTablePredefinedTag;
00979 #endif
00980 
00981 // ----------------------------------------------------------------------------------
00982 
00984 enum ListStylePredefinedTag
00985 {
00986         kUserDefinedListStyleTag = 0,
00987         kPredefinedNumericListStyleTag = 1,
00988         kPredefinedUppercaseAlphaListStyleTag = 2,
00989         kPredefinedLowercaseAlphaListStyleTag = 3,
00990         kPredefinedUppercaseRomanNumListStyleTag = 4,
00991         kPredefinedLowercaseRomanNumListStyleTag = 5,
00992         kPredefinedBulletListStyleTag = 6
00993 };
00994 
01023 enum StreamingPolicy
01024 { 
01025         kAll                                            = 0,
01026         kOmitPredefinedData             = 1 << 0,
01027         kOmitRenderedText                       = 1 << 1,
01028         kOmitMostDocumentSettings       = 1 << 2,
01029         kOmitDictionaryProviders        = 1 << 3
01030         /* WARNING: New policy value has to be a power of 2, to allow bitwise operation */
01031 };
01032 
01033 //This mask shall be used in MundoNotifier::SelectionOwnedItemChanged() call back function 
01034 //to let the client know what has changed.
01035 enum OwnedItemChangeIndicator
01036 {
01037         /* WARNING: New OwnedItemChangeIndicator value has to be a power of 2, to allow bitwise operation */
01038         kNoneOwnedItem          = 0,
01039         kHyperlinkOwnedItem = 1 << 0,
01040         //In future Add other items here,update kAll accordingly.
01041         //kAllOwnedItems is bitwise OR of all the OwnedItemIndicator
01042         kAllOwnedItems          = kHyperlinkOwnedItem
01043 };
01044 
01045 #ifdef __cplusplus
01046 ATE_ENUM_BIT_OPERATORS(StreamingPolicy)
01047 #else
01048 typedef enum StreamingPolicy StreamingPolicy;
01049 #endif
01050 
01051 // ----------------------------------------------------------------------------------
01052 
01053 #ifdef __cplusplus
01054 }
01055 #endif
01056 
01057 #ifdef __MWERKS__
01058         #if defined(__MC68K__) || defined(__POWERPC__)
01059                 #pragma enumsalwaysint reset
01060         #endif
01061 #endif // __MWERKS__
01062 
01063 #endif //__ATETypes__


Contents Suites Classes Class Index Member Index
Adobe Solutions Network
 
Copyright © 2016 Adobe Systems Incorporated. All rights reserved.
Terms of Use Online Privacy Policy Adobe and accessibility Avoid software piracy Permissions and Trademarks