30 #include "CrossPlatformTypes.h" 31 #include "IDFactory.h" 33 #define kXMLPrefix RezLong(0xBF00) 34 #define kXMLPrefix2 RezLong(0x1BC00) 37 #define kXMLPluginName "XML" 101 #ifndef RESOURCE_NUMBER //avoid errors in XMLID.fr 107 c_XMLElement =
'cXML',
108 c_XMLElements =
'sXML',
109 c_XMLAttribute =
'attX',
110 c_XMLAttributes =
'atsX',
113 c_XMLComment =
'cmtX',
114 c_XMLComments =
'ctsX',
121 c_XMLStyleToTagMap =
'stmX',
122 c_XMLStyleToTagMaps =
'stsX',
123 c_XMLTagToStyleMap =
'tsmX',
124 c_XMLTagToStyleMaps =
'tssX',
125 c_XMLValidationError =
'vlde',
126 c_XMLValidationErrors =
'vlds',
128 c_XMLStories =
'cxss',
129 c_XMLRulesProcessor =
'cxrp',
130 c_XMLRulesProcessors =
'cxrs',
131 c_XMLRuleMatchData =
'cxrd',
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',
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',
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',
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',
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',
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',
234 p_XMLShowStructure =
'Xsts',
235 p_XMLShowTagMarkers =
'Xstm',
236 p_XMLShowTaggedFrames =
'Xstf',
237 p_XMLShowAttributes =
'Xsat',
238 p_XMLShowTextSnippets =
'Xstn',
239 p_XMLShowTagOptions =
'Xsto',
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',
256 p_XMLMapIncludeMasterPage =
'XinM',
257 p_XMLMapIncludePasteboard =
'XinP',
258 p_XMLMapIncludeEmptyStories =
'XinE',
261 p_XMLRulePaths =
'Xrps',
262 p_XMLStartElmemnt =
'Xsel',
264 p_XMLTableRowTag =
'Xtrt',
265 p_XMLTableCellTag =
'Xtct',
268 p_XMLNoMarker =
'Xnmk',
271 en_XMLFileEncoding =
'XMfE',
274 en_XMLDTDEncoding =
'XMdE',
277 en_XMLImportStyles =
'Xeis',
278 en_XMLAppendImport =
'XMai',
279 en_XMLMergeImport =
'XMmi',
282 en_XMLExportUntaggedTablesFormat =
'Xutf',
284 en_XMLExportUntaggedTablesCALS =
'Xtcs',
292 en_BeforeElement =
'Xbef',
293 en_AfterElement =
'Xaft',
296 en_XMLTransformFile =
'Xtrf',
297 en_StylesheetInXML =
'Xssx',
300 en_XMLNoMarkerValue =
'Xmkv',
301 en_XMLNoMarkerTrue =
'Xnmt',
305 #endif //RESOURCE_NUMBER //avoid errors in XMLID.fr 308 #define kXMLElement_CLSID { 0x88e69192, 0x43a2, 0x11d4, { 0xbe, 0x38, 0x0, 0x50, 0x4, 0xb4, 0x3e, 0x1c } } 310 #define kXMLElements_CLSID { 0x2d7a301, 0x43a3, 0x11d4, { 0xbe, 0x38, 0x0, 0x50, 0x4, 0xb4, 0x3e, 0x1c } } 312 #define kXMLAttribute_CLSID { 0xb439e755, 0x2fbf, 0x4d6f, { 0x97, 0x37, 0x61, 0xf4, 0x55, 0x75, 0x7d, 0xf2 } } 314 #define kXMLAttributes_CLSID { 0xd7a8b643, 0xe3c2, 0x4157, { 0xa0, 0xc8, 0x6, 0x69, 0x7a, 0xb5, 0xd6, 0xdc } } 316 #define kXMLTag_CLSID { 0x1daf831a, 0xabd6, 0x4de7, { 0x8a, 0xdf, 0xa9, 0x3f, 0xc2, 0x31, 0x90, 0x46 } } 318 #define kXMLTags_CLSID { 0x1794da80, 0xbf48, 0x48cd, { 0xbb, 0x4a, 0x97, 0xad, 0x33, 0x8d, 0x60, 0x14 } } 320 #define kXMLStyleToTagMap_CLSID { 0xe4515245, 0x38b8, 0x48b7, { 0x84, 0x36, 0x4, 0x6, 0xe2, 0x52, 0xba, 0x2d } } 322 #define kXMLStyleToTagMaps_CLSID { 0x53a1fc77, 0x4b92, 0x4ac1, { 0xab, 0x9, 0x40, 0xe, 0x92, 0xcd, 0x8d, 0x8 } } 324 #define kXMLTagToStyleMap_CLSID { 0xeca84203, 0x40b9, 0x4026, { 0x92, 0x24, 0x52, 0xb9, 0x8f, 0xbc, 0x66, 0xc8 } } 326 #define kXMLTagToStyleMaps_CLSID { 0xb15376c3, 0xc411, 0x49b1, { 0x97, 0xc1, 0xe6, 0xe8, 0xf4, 0x8d, 0x1a, 0xb5 } } 328 #define kXMLExportPref_CLSID { 0x302543e, 0x2584, 0x4fdc, { 0xb3, 0x4e, 0x3, 0x3e, 0x18, 0x4a, 0xf0, 0x6a } } 330 #define kXMLImportPref_CLSID { 0x83b3674c, 0xfbf7, 0x4f30, { 0x80, 0xd5, 0x3c, 0x8c, 0xef, 0xcb, 0x91, 0xf6 } } 332 #define kXMLValidationError_CLSID { 0x7c989388, 0x5c97, 0x4334, { 0xba, 0x4f, 0x69, 0xa6, 0x8a, 0x38, 0xeb, 0x40 } } 334 #define kXMLValidationErrors_CLSID { 0x4549721a, 0x5127, 0x4d04, { 0xa6, 0x48, 0x0, 0x12, 0x49, 0x85, 0x43, 0xab } } 336 #define kXMLComment_CLSID { 0xf424bb97, 0xa03b, 0x45c1, { 0x8c, 0x22, 0x91, 0xb7, 0xb9, 0xe1, 0x11, 0x56 } } 338 #define kXMLComments_CLSID { 0x378611ab, 0xebf7, 0x4bfc, { 0x98, 0x75, 0xac, 0xec, 0x4e, 0x9c, 0xd2, 0xb2 } } 340 #define kXMLPI_CLSID { 0x2ffedeb5, 0x697, 0x4915, { 0xb9, 0xc9, 0xd4, 0xf8, 0x53, 0x17, 0x93, 0x44 } } 342 #define kXMLPIs_CLSID { 0xb6d9cb8e, 0x8bba, 0x4628, { 0xad, 0x3e, 0xc1, 0xcc, 0xf7, 0x33, 0x6, 0xe6 } } 344 #define kXMLItem_CLSID { 0xa4505025, 0xc720, 0x423c, { 0xa7, 0x1d, 0xc7, 0x77, 0xdf, 0x92, 0x94, 0x88 } } 346 #define kXMLItems_CLSID { 0x87562f2f, 0x96f6, 0x460c, { 0x9b, 0x54, 0x6a, 0x4b, 0xd9, 0x39, 0x66, 0x1e } } 348 #define kXMLDTD_CLSID { 0x97af8b10, 0x453, 0x4708, { 0x82, 0x92, 0x83, 0xb8, 0x16, 0xa7, 0x79, 0xa4 } } 350 #define kXMLDTDs_CLSID { 0xee468c23, 0xab1b, 0x4e99, { 0x8b, 0xee, 0xc0, 0xe1, 0x67, 0xa2, 0xc1, 0x1 } } 352 #define kXMLStory_CLSID { 0xfda35d92, 0x547e, 0x41e9, { 0x8c, 0x42, 0x10, 0x24, 0xe2, 0xdf, 0x56, 0xa9 } } 354 #define kXMLStories_CLSID { 0x4818bf5d, 0xbcf7, 0x4bc3, { 0x9f, 0xe8, 0x4, 0xf4, 0xf7, 0x65, 0x63, 0xcd } } 356 #define kXMLPreferences_CLSID { 0xdae44318, 0xe686, 0x445d, { 0x95, 0x80, 0xa, 0xe8, 0xa6, 0xb9, 0xb8, 0x71 } } 358 #define kXMLRuleProcessor_CLSID { 0xc4ccde7, 0xde, 0x4fdd, { 0x92, 0xa1, 0xe4, 0x9b, 0xa4, 0x43, 0x99, 0x1c } } 360 #define kXMLRuleMatchData_CLSID { 0x8fc2999b, 0x76fe, 0x4d4d, { 0x83, 0xe8, 0xde, 0x30, 0x40, 0xd3, 0x41, 0x2a } } 362 #define kXMLRuleProcessors_CLSID { 0x9168c38c, 0x4bdc, 0x45d7, { 0xac, 0x4a, 0xb8, 0xa2, 0xf9, 0xd6, 0xfa, 0xfa } } 364 #define kExportForWebPref_CLSID {0xb7d43298, 0x793b, 0x45c1, {0xbe, 0xe2, 0x61, 0xf4, 0xad, 0xca, 0x17, 0x71} } 367 #define kDeleteDTDAlertID kXMLPrefix + 1