InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INXOrderDefs.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Pellegrin
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __INXORDERDEFS__
25 #define __INXORDERDEFS__
26 
27 //INX order of kDocumentObjectScriptElement children
28 
29 #define kLanguageObjectScriptElementPosition 100.0
30 #define kColorObjectScriptElementPosition 200.0
31 #define kInkObjectScriptElementPosition 300.0
32 #define kMixedInkGroupObjectScriptElementPosition 400.0
33 #define kMixedInkObjectScriptElementPosition 500.0
34 #define kAGMBlackBoxObjectScriptElementPosition 600.0
35 #define kTintObjectScriptElementPosition 700.0
36 #define kSwatchObjectScriptElementPosition 800.0
37 #define kGradientObjectScriptElementPosition 900.0
38 #define kStrokeStyleObjectScriptElementPosition 1000.0
39 #define kDashStrokeStyleObjectScriptElementPosition 1000.0
40 #define kDotStrokeStyleObjectScriptElementPosition 1000.0
41 #define kStripeStrokeStyleObjectScriptElementPosition 1000.0
42 
43 #define kFontFamilyObjectScriptElementPosition 1100.0
44 #define kCompositeFontObjectScriptElementPosition 1200.0
45 #define kKinsokuTableObjectScriptElementPosition 1300.0
46 #define kMojikumiTableObjectScriptElementPosition 1400.0
47 #define kCharacterStyleSetObjectScriptElementPosition 1500.0
48 #define kCharacterStyleObjectScriptElementPosition 1600.0
49 #define kBNListCollectionObjectScriptElementPosition 1700.0
50 #define kParagraphStyleSetObjectScriptElementPosition 1800.0
51 #define kParagraphStyleObjectScriptElementPosition 1900.0
52 #define kTOCStyleObjectScriptElementPosition 2000.0
53 #define kCellStyleSetObjectScriptElementPosition 2100.0
54 #define kCellStyleObjectScriptElementPosition 2200.0
55 
56 
57 #define kTableStyleSetObjectScriptElementPosition 2300.0
58 #define kTableStyleObjectScriptElementPosition 2400.0
59 #define kNamedGridObjectScriptElementPosition 2500.0
60 #define kObjectStyleGroupObjectScriptElementPosition 2600.0
61 #define kObjectStylesObjectScriptElementPosition 2700.0
62 #define kTrapStyleObjectScriptElementPosition 2800.0
63 
64 #define kConditionTagObjectScriptElementPosition 2850.0
65 #define kConditionTagSetObjectScriptElementPosition 2851.0
66 
67 // All preference child is assumed to have kPreferencesObjectScriptElementPosition.
68 // It is not really added into kPreferencesObjectScriptElement as metadata. Since
69 // we do stable sort, preference child object will show up in INX file in the order
70 // they are encountered.
71 
72 #define kPreferencesObjectScriptElementPosition 2900.0
73 #define kTextVariableObjectScriptElementPosition 3000.0
74 #define kXMLTagObjectScriptElementPosition 3100.0
75 #define kLayerObjectScriptElementPosition 3200.0
76 #define kBNBulletCollectionObjectScriptElementPosition 3300.0
77 #define kMasterSpreadObjectScriptElementPosition 3400.0
78 
79 #define kSpreadObjectScriptElementPosition 3500.0
80 #define kSectionObjectScriptElementPosition 3600.0
81 #define kInCopyDocUserObjectScriptElementPosition 3700.0
82 #define kXRefFormatObjectScriptElementPosition 3750.0 // 3950.0 move before stories for IDML
83 
84 #define kXMLStoryObjectScriptElementPosition 3800.0 // 3900.0
85 #define kStoryObjectScriptElementPosition 3900.0 // 3800.0
86 
87 #define kTextDestinationObjectScriptElementPosition 4000.0
88 #define kPageDestinationObjectScriptElementPosition 4100.0
89 #define kURLDestinationObjectScriptElementPosition 4200.0
90 #define kExternalPageDestinationObjectScriptElementPosition 4300.0
91 #define kTextSourceObjectScriptElementPosition 4400.0
92 #define kPageItemSourceObjectScriptElementPosition 4500.0
93 #define kHyperlinkObjectScriptElementPosition 4600.0
94 
95 #define kXMLItemObjectScriptElementPosition 5000.0
96 #define kXMLElementObjectScriptElementPosition 5000.0
97 #define kXMLDTDObjectScriptElementPosition 5000.0
98 #define kXMLCommentObjectScriptElementPosition 5000.0
99 #define kXMLPIObjectScriptElementPosition 5000.0
100 
101 
102 #define kXMLExportMapObjectScriptElementPosition 5100.0
103 #define kXMLImportMapObjectScriptElementPosition 5200.0
104 #define kIndexObjectScriptElementPosition 5300.0
105 #define kBookmarkObjectScriptElementPosition 5400.0
106 
107 #define kAnnotationPageDestinationObjectScriptElementPosition 5500.0
108 #define kAnnotationPageItemDestinationObjectScriptElementPosition 5600.0
109 #define kAnnotationTextDestinationObjectScriptElementPosition 5700.0
110 #define kAnnotationObjectScriptElementPosition 5800.0
111 
112 #define kImagePlaceholderObjectScriptElementPosition
113 //#define kAssignmentObjectScriptElementPosition
114 //#define kHyphenationExceptionObjectScriptElementPosition //position does not matter
115 
116 
117 
118 //INX order of kGraphicLineObjectScriptElement children
119 
120 #define kTOPObjectScriptElementPosition 100.0
121 
122 // INX order story children. Story prefs must be before Grid data. see bug 1844245
123 #define kStoryPrefsObjectScriptElementPosition 50.0
124 
125 // INX order story and text frame children
126 #define kGridDataObjectScriptElementPosition 100.0
127 
128 //Please do not use any number bigger than kLastObjectScriptElementPosition
129 #define kLastObjectScriptElementPosition 999999.9
130 
131 
132 //========================================================================================
133 // IDML story child object ranking defines
134 // Defines used to determine which object takes priority over another when two objects
135 // have overlapping ranges
136 //========================================================================================
137 #define kLowestObjectRank 0
138 
139 #define kTextContentIterObjectRank kLowestObjectRank
140 #define kCharStyleIterObjectRank kTextContentIterObjectRank + 10
141 #define kParaStyleIterObjectRank kCharStyleIterObjectRank + 10
142 
143 // By default all owned items that encompass a range are ranked above paragarph and character style ranges (and content)
144 #define kDefaultOwnedItemRank kParaStyleIterObjectRank + 10
145 
146 // Hyperlink text source
147 #define kHLTextSourceObjectRank 0x3FFFFFFF;
148 
149 // XML element
150 #define kXMLObjectRank kHighestOjectRank
151 
152 // Using this define means that when the object is written to the IDML file the resultant element
153 // can not be broken into arbitrary length elements, other object representations that may overlap
154 // will need to break around these
155 #define kHighestOjectRank 0x7FFFFFFF
156 
157 #endif //#ifndef __INXORDERDEFS__
158