InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
XMLID.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Burbidge
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 // Info: Contains IDs used by the XML architecture.
24 //
25 //========================================================================================
26 
27 #ifndef __XMLID__
28 #define __XMLID__
29 
30 #include "CrossPlatformTypes.h"
31 #include "IDFactory.h"
32 
33 #define kXMLPrefix RezLong(0xBF00)
34 #define kXMLPrefix2 RezLong(0x1BC00)
35 
36 // PluginID
37 #define kXMLPluginName "XML"
38 
39 START_IDS()
40 
41 // <Start IDC>
42 
43 // <Class ID>
44 
45 // XML Structure Selection Type
46 
47 //gap
48 
49 // For table/cell styles
50 
51 
52 
53 // <Interface ID>
54 
55 
56 
57 
58 // <Service ID>
59 
60 
61 // <Implementation ID>
62 //gap
63 
64 //XML Selection
65 
66 
67 // For Table/Cell styles
68 
69 // For XML linking in new arch
70 
71 
72 
73 // <Error ID>
74 
75 // Uncomment later for Vantive #1841934.
76 
77 
78 // Messages
79 
80 //
81 //Script Element IDs
82 //
83 
84 //Suites
85 
86 // typedef
87 
88 //Objects
89 
90 //Events
91 //gap
92 // gap
93 
94 //Properties
95 
96 
97 
98 // <RuleTargetType ID>
99 END_IDS()
100 
101 #ifndef RESOURCE_NUMBER //avoid errors in XMLID.fr
102 
103 enum XMLScriptIDs
104 {
105  s_XMLSuite = 'K2XL',
106 
107  c_XMLElement = 'cXML',
108  c_XMLElements = 'sXML',
109  c_XMLAttribute = 'attX',
110  c_XMLAttributes = 'atsX',
111  c_XMLTag = 'tagX',
112  c_XMLTags = 'tgsX',
113  c_XMLComment = 'cmtX',
114  c_XMLComments = 'ctsX',
115  c_XMLPI = 'cpiX',
116  c_XMLPIs = 'cpsX',
117  c_XMLDTD = 'cdtd',
118  c_XMLDTDs = 'cdts',
119  c_XMLItem = 'cxit',
120  c_XMLItems = 'cxis',
121  c_XMLStyleToTagMap = 'stmX',
122  c_XMLStyleToTagMaps = 'stsX',
123  c_XMLTagToStyleMap = 'tsmX',
124  c_XMLTagToStyleMaps = 'tssX',
125  c_XMLValidationError = 'vlde',
126  c_XMLValidationErrors = 'vlds',
127  c_XMLStory = 'cxst',
128  c_XMLStories = 'cxss',
129  c_XMLRulesProcessor = 'cxrp',
130  c_XMLRulesProcessors = 'cxrs',
131  c_XMLRuleMatchData = 'cxrd',
132 
133  c_XMLExportPref = 'xePf',
134  p_XMLExportPref = 'pxeP',
135  c_XMLImportPref = 'xiPf',
136  p_XMLImportPref = 'pxiP',
137  c_XMLViewPref = 'xvPf',
138  p_XMLViewPref = 'pxvP',
139  c_XMLPreferences = 'xgPf',
140  p_XMLPreferences = 'pxgP',
141 
142  // XML
143  e_XMLImport = 'XMLi',
144  e_XMLStylesToElements = 'Xste',
145  e_XMLMapStylesToTags = 'Xmst',
146  e_XMLTagsToStyles = 'Xtts',
147  e_XMLMapTagsToStyles = 'Xmts',
148  e_XMLDeleteUnusedTags = 'Xdut',
149  e_XMLUntagElement = 'Xutg',
150  e_XMLImportDTD = 'Xldt',
151  e_XMLImportTags = 'Xltg',
152  e_XMLExportTags = 'Xstg',
153  e_XMLValidate = 'Xvld',
154  e_XMLMarkup = 'Xmku',
155  e_XMLPlace = 'Xplc',
156  e_XMLRulesStartProcess ='Xrsp',
157  e_XMLRulesFindNextMatch='Xrfn',
158  e_XMLRulesStartSubtree ='Xrss',
159  e_XMLRulesSkipChildren ='Xrsc',
160  e_XMLRulesEndProcess = 'Xrep',
161  e_XMLRulesHalt = 'Xrht',
162  e_XMLEvaluateXPath = 'Xexp',
163  p_XPathPrefixMapping = 'Xprm',
164  e_XMLConvertAttributeToElement = 'Xcae',
165  e_XMLConvertElementToAttribute = 'Xcea',
166  e_XMLConvertElementToTable = 'Xcet',
167  e_XMLPlaceIntoFrame = 'Xpif',
168  e_XMLPlaceIntoCopy = 'Xpic',
169  e_XMLPlaceIntoInlineFrame = 'Xpii',
170  e_XMLPlaceIntoInlineCopy = 'XpiI',
171  e_XMLSetContent = 'Xsec',
172  e_XMLInsertTextAsContent = 'Xitc',
173  e_XMLApplyTableStyle = 'Xats',
174  e_XMLApplyCellStyle = 'Xals',
175 
176  // XML Properties
177  p_XMLTag = 'XMLt',
178  p_XMLMappedStyle = 'Xmps',
179  p_XMLAssociatedObject = 'Xapi',
180  p_AssociatedXMLElement = 'Xaxn',
181  p_AssociatedXMLElements = 'Xans',
182  p_XMLTagColor = 'XTCr',
183  p_XMLElement = 'Xelm',
184  p_XMLValidationError = 'Xvde',
185  p_XMLMaxValidationErrors = 'Xmve',
186  p_XMLPITarget = 'Xtrg',
187  p_XMLPIData = 'Xdta',
188  p_XMLContent = 'Xcnt',
189  p_DTDRootTag = 'Drtg',
190  p_DTDSystem = 'Dsys',
191  p_DTDPublicID = 'Dpbi',
192  p_XMLRulesIsHalted = 'pXrh',
193  en_kXMLElementLocationEnum = 'eXel',
194  en_kXMLElementPositionEnum = 'eXep',
195  p_RelativePath = 'XRel',
196  p_RetainExistingFrame = 'XRCF',
197  p_CopyItem = 'CpIt',
198 
199  // XML Export properties
200  p_XMLExportFromSelected = 'Xefs',
201  p_CopyOriginals = 'Xeco',
202  p_OptimizedImages = 'Xeoi',
203  p_FormatedImages = 'Xefi',
204  p_ImageConversion = 'Xeic',
205  p_GIFOptionsPalette = 'Xegp',
206  p_GIFOptionsInterlaced = 'Xegi',
207  p_JPEGOptionsQuality = 'Xejq',
208  p_JPEGOptionsFormat = 'Xejf',
209  p_XMLViewAfterExport = 'Xvae',
210  p_XMLPreferredBrowser = 'Xprb',
211  p_XMLExportRuby = 'Xrub',
212  p_XMLExcludeDTD = 'Xdtd',
213  p_XMLAllowTransform = 'Xalt',
214  p_XMLTransformFilename = 'Xtfn',
215  p_XMLExportCharReferences = 'Xcrf',
216  p_XMLExportUntaggedTables = 'Xeut',
217 
218 
219  // XML Import properties
220  p_XMLImportToSelected = 'Xits',
221  p_XMLImportStyle = 'XMis',
222  p_XMLImportStylesheet = 'Xiss',
223  p_XMLImportStylesheetParameters = 'Xisp',
224  p_XMLImportCreateLink = 'Xicl',
225  p_XMLImportRepeatingText = 'XMrt',
226  p_XMLImportIgnoreUnmatchedIncoming = 'Xtal',
227  p_XMLImportDeleteUnmatchedExisting = 'Xtar',
228  p_XMLImportImportTextIntoTables = 'Xtit',
229  p_XMLImportIgnoreWhitespace = 'Xiws',
230  p_XMLImportCALSTable = 'Xict',
231  p_XMLImportApplyRuleSet = 'Xirs',
232 
233  // XML view properties
234  p_XMLShowStructure = 'Xsts',
235  p_XMLShowTagMarkers = 'Xstm',
236  p_XMLShowTaggedFrames = 'Xstf',
237  p_XMLShowAttributes = 'Xsat',
238  p_XMLShowTextSnippets = 'Xstn',
239  p_XMLShowTagOptions = 'Xsto',
240 
241  // XML general preferences
242  p_XMLPrefsDefaultStoryName = 'XstN',
243  p_XMLPrefsDefaultStoryColor = 'XstC',
244  p_XMLPrefsDefaultTableName = 'XtaN',
245  p_XMLPrefsDefaultTableColor = 'XtaC',
246  p_XMLPrefsDefaultCellName = 'XceN',
247  p_XMLPrefsDefaultCellColor = 'XceC',
248  p_XMLPrefsDefaultRowName = 'XroN',
249  p_XMLPrefsDefaultRowColor = 'XroC',
250  p_XMLPrefsDefaultImageName = 'XimN',
251  p_XMLPrefsDefaultImageColor = 'XimC',
252  p_XMLPrefsDeleteElementOnContentDelete = 'XdeC',
253 
254 
255  // XML mapping properties
256  p_XMLMapIncludeMasterPage = 'XinM',
257  p_XMLMapIncludePasteboard = 'XinP',
258  p_XMLMapIncludeEmptyStories = 'XinE',
259 
260  // XML rules properties
261  p_XMLRulePaths = 'Xrps',
262  p_XMLStartElmemnt = 'Xsel',
263  p_XMLRules = 'pxrs',
264  p_XMLTableRowTag = 'Xtrt',
265  p_XMLTableCellTag = 'Xtct',
266 
267  // INX only properties
268  p_XMLNoMarker = 'Xnmk',
269 
270  // XML Export
271  en_XMLFileEncoding = 'XMfE',
272 
273  // DTD Import
274  en_XMLDTDEncoding = 'XMdE',
275 
276  // XML Import Styles
277  en_XMLImportStyles = 'Xeis',
278  en_XMLAppendImport = 'XMai',
279  en_XMLMergeImport = 'XMmi',
280 
281  // XML Export Untagged Tables Format
282  en_XMLExportUntaggedTablesFormat = 'Xutf',
283  // en_None
284  en_XMLExportUntaggedTablesCALS = 'Xtcs',
285 
286  // XML location
287  p_Located = 'Loca',
288  en_Front = 'Xbgn',
289  en_Back = 'Xend',
290 
291  // XML position
292  en_BeforeElement = 'Xbef',
293  en_AfterElement = 'Xaft',
294 
295  // XML tranform file
296  en_XMLTransformFile = 'Xtrf',
297  en_StylesheetInXML = 'Xssx',
298 
299  // INX-Alt only
300  en_XMLNoMarkerValue = 'Xmkv',
301  en_XMLNoMarkerTrue = 'Xnmt',
302 
303 };
304 
305 #endif //RESOURCE_NUMBER //avoid errors in XMLID.fr
306 
307 // {88E69192-43A2-11d4-BE38-005004B43E1C}
308 #define kXMLElement_CLSID { 0x88e69192, 0x43a2, 0x11d4, { 0xbe, 0x38, 0x0, 0x50, 0x4, 0xb4, 0x3e, 0x1c } }
309 // {02D7A301-43A3-11d4-BE38-005004B43E1C}
310 #define kXMLElements_CLSID { 0x2d7a301, 0x43a3, 0x11d4, { 0xbe, 0x38, 0x0, 0x50, 0x4, 0xb4, 0x3e, 0x1c } }
311 // {B439E755-2FBF-4d6f-9737-61F455757DF2}
312 #define kXMLAttribute_CLSID { 0xb439e755, 0x2fbf, 0x4d6f, { 0x97, 0x37, 0x61, 0xf4, 0x55, 0x75, 0x7d, 0xf2 } }
313 // {D7A8B643-E3C2-4157-A0C8-06697AB5D6DC}
314 #define kXMLAttributes_CLSID { 0xd7a8b643, 0xe3c2, 0x4157, { 0xa0, 0xc8, 0x6, 0x69, 0x7a, 0xb5, 0xd6, 0xdc } }
315 // {1DAF831A-ABD6-4de7-8ADF-A93FC2319046}
316 #define kXMLTag_CLSID { 0x1daf831a, 0xabd6, 0x4de7, { 0x8a, 0xdf, 0xa9, 0x3f, 0xc2, 0x31, 0x90, 0x46 } }
317 // {1794DA80-BF48-48cd-BB4A-97AD338D6014}
318 #define kXMLTags_CLSID { 0x1794da80, 0xbf48, 0x48cd, { 0xbb, 0x4a, 0x97, 0xad, 0x33, 0x8d, 0x60, 0x14 } }
319 // {E4515245-38B8-48b7-8436-0406E252BA2D}
320 #define kXMLStyleToTagMap_CLSID { 0xe4515245, 0x38b8, 0x48b7, { 0x84, 0x36, 0x4, 0x6, 0xe2, 0x52, 0xba, 0x2d } }
321 // {53A1FC77-4B92-4ac1-AB09-400E92CD8D08}
322 #define kXMLStyleToTagMaps_CLSID { 0x53a1fc77, 0x4b92, 0x4ac1, { 0xab, 0x9, 0x40, 0xe, 0x92, 0xcd, 0x8d, 0x8 } }
323 // {ECA84203-40B9-4026-9224-52B98FBC66C8}
324 #define kXMLTagToStyleMap_CLSID { 0xeca84203, 0x40b9, 0x4026, { 0x92, 0x24, 0x52, 0xb9, 0x8f, 0xbc, 0x66, 0xc8 } }
325 // {B15376C3-C411-49b1-97C1-E6E8F48D1AB5}
326 #define kXMLTagToStyleMaps_CLSID { 0xb15376c3, 0xc411, 0x49b1, { 0x97, 0xc1, 0xe6, 0xe8, 0xf4, 0x8d, 0x1a, 0xb5 } }
327 // {0302543E-2584-4fdc-B34E-033E184AF06A}
328 #define kXMLExportPref_CLSID { 0x302543e, 0x2584, 0x4fdc, { 0xb3, 0x4e, 0x3, 0x3e, 0x18, 0x4a, 0xf0, 0x6a } }
329 // {83B3674C-FBF7-4f30-80D5-3C8CEFCB91F6}
330 #define kXMLImportPref_CLSID { 0x83b3674c, 0xfbf7, 0x4f30, { 0x80, 0xd5, 0x3c, 0x8c, 0xef, 0xcb, 0x91, 0xf6 } }
331 // {7C989388-5C97-4334-BA4F-69A68A38EB40}
332 #define kXMLValidationError_CLSID { 0x7c989388, 0x5c97, 0x4334, { 0xba, 0x4f, 0x69, 0xa6, 0x8a, 0x38, 0xeb, 0x40 } }
333 // {4549721A-5127-4d04-A648-0012498543AB}
334 #define kXMLValidationErrors_CLSID { 0x4549721a, 0x5127, 0x4d04, { 0xa6, 0x48, 0x0, 0x12, 0x49, 0x85, 0x43, 0xab } }
335 // {F424BB97-A03B-45c1-8C22-91B7B9E11156}
336 #define kXMLComment_CLSID { 0xf424bb97, 0xa03b, 0x45c1, { 0x8c, 0x22, 0x91, 0xb7, 0xb9, 0xe1, 0x11, 0x56 } }
337 // {378611AB-EBF7-4bfc-9875-ACEC4E9CD2B2}
338 #define kXMLComments_CLSID { 0x378611ab, 0xebf7, 0x4bfc, { 0x98, 0x75, 0xac, 0xec, 0x4e, 0x9c, 0xd2, 0xb2 } }
339 // {2FFEDEB5-0697-4915-B9C9-D4F853179344}
340 #define kXMLPI_CLSID { 0x2ffedeb5, 0x697, 0x4915, { 0xb9, 0xc9, 0xd4, 0xf8, 0x53, 0x17, 0x93, 0x44 } }
341 // {B6D9CB8E-8BBA-4628-AD3E-C1CCF73306E6}
342 #define kXMLPIs_CLSID { 0xb6d9cb8e, 0x8bba, 0x4628, { 0xad, 0x3e, 0xc1, 0xcc, 0xf7, 0x33, 0x6, 0xe6 } }
343 // {A4505025-C720-423c-A71D-C777DF929488}
344 #define kXMLItem_CLSID { 0xa4505025, 0xc720, 0x423c, { 0xa7, 0x1d, 0xc7, 0x77, 0xdf, 0x92, 0x94, 0x88 } }
345 // {87562F2F-96F6-460c-9B54-6A4BD939661E}
346 #define kXMLItems_CLSID { 0x87562f2f, 0x96f6, 0x460c, { 0x9b, 0x54, 0x6a, 0x4b, 0xd9, 0x39, 0x66, 0x1e } }
347 // {97AF8B10-0453-4708-8292-83B816A779A4}
348 #define kXMLDTD_CLSID { 0x97af8b10, 0x453, 0x4708, { 0x82, 0x92, 0x83, 0xb8, 0x16, 0xa7, 0x79, 0xa4 } }
349 // {EE468C23-AB1B-4e99-8BEE-C0E167A2C101}
350 #define kXMLDTDs_CLSID { 0xee468c23, 0xab1b, 0x4e99, { 0x8b, 0xee, 0xc0, 0xe1, 0x67, 0xa2, 0xc1, 0x1 } }
351 // {FDA35D92-547E-41e9-8C42-1024E2DF56A9}
352 #define kXMLStory_CLSID { 0xfda35d92, 0x547e, 0x41e9, { 0x8c, 0x42, 0x10, 0x24, 0xe2, 0xdf, 0x56, 0xa9 } }
353 // {4818BF5D-BCF7-4bc3-9FE8-04F4F76563CD}
354 #define kXMLStories_CLSID { 0x4818bf5d, 0xbcf7, 0x4bc3, { 0x9f, 0xe8, 0x4, 0xf4, 0xf7, 0x65, 0x63, 0xcd } }
355 // {DAE44318-E686-445d-9580-0AE8A6B9B871}
356 #define kXMLPreferences_CLSID { 0xdae44318, 0xe686, 0x445d, { 0x95, 0x80, 0xa, 0xe8, 0xa6, 0xb9, 0xb8, 0x71 } }
357 // {0C4CCDE7-00DE-4fdd-92A1-E49BA443991C}
358 #define kXMLRuleProcessor_CLSID { 0xc4ccde7, 0xde, 0x4fdd, { 0x92, 0xa1, 0xe4, 0x9b, 0xa4, 0x43, 0x99, 0x1c } }
359 // {8FC2999B-76FE-4d4d-83E8-DE3040D3412A}
360 #define kXMLRuleMatchData_CLSID { 0x8fc2999b, 0x76fe, 0x4d4d, { 0x83, 0xe8, 0xde, 0x30, 0x40, 0xd3, 0x41, 0x2a } }
361 // {9168C38C-4BDC-45d7-AC4A-B8A2F9D6FAFA}
362 #define kXMLRuleProcessors_CLSID { 0x9168c38c, 0x4bdc, 0x45d7, { 0xac, 0x4a, 0xb8, 0xa2, 0xf9, 0xd6, 0xfa, 0xfa } }
363 // {B7D43298-793B-45c1-BEE2-61F4ADCA1771}
364 #define kExportForWebPref_CLSID {0xb7d43298, 0x793b, 0x45c1, {0xbe, 0xe2, 0x61, 0xf4, 0xad, 0xca, 0x17, 0x71} }
365 
366 // Don't show again IDs
367 #define kDeleteDTDAlertID kXMLPrefix + 1
368 #endif
369