InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
SnpXMLHelper.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __SnpXMLHelper_H_DEFINED__
25 #define __SnpXMLHelper_H_DEFINED__
26 
27 
28 
29 
39 {
40 public:
41 
44 
46  virtual ~SnpXMLHelper() {}
47 
48 
58  UIDRef AcquireTag(const UIDRef& documentUIDRef,
59  const PMString& tagName);
60 
61 
68  ErrorCode AssociateDTD(const UIDRef& documentUIDRef, const IDFile& dtdFile);
69 
70 
76  PMString AsString(const UIDRef& tagUIDRef);
77 
82  PMString AsString(const XMLReference& xmlReference);
83 
84 
91  ErrorCode ChangeTagName(const UIDRef& tagUIDRef,
92  const PMString& newTagName);
93 
94 
99  PMString GetClassFrom(const ClassID& classID);
100 
105  PMString GetClassFrom(const UIDRef& objUIDRef);
106 
113  XMLReference GetRootXMLReference(const UIDRef& documentUIDRef);
114 
115 
116 
127  TextIndex InsertTaggedText(const UIDRef& textModelUIDRef, const PMString& pstr,
128  TextIndex startIndex, const PMString& tagName);
129 
130 
138  ErrorCode PlaceElement(const XMLReference& xmlRef, const UIDRef& graphicFrameUIDRef);
139 
146  ErrorCode SetExportFromSelected(const UIDRef& workspaceUIDRef, bool16 state);
147 
156  ErrorCode SetImportIntoSelected(const UIDRef& workspaceUIDRef, bool16 state);
157 
164  ErrorCode SetRootTag(const UIDRef& documentUIDRef, const PMString& tagName);
165 
166 
172  ErrorCode ShowHideTaggedFrames(bool16 setVisible);
173 
180  ErrorCode TagStory(const UIDRef& textModelUIDRef, const PMString& tagName);
181 
189  ErrorCode TagTable(const UIDRef& tableModelUIDRef,
190  const PMString & tableTagName,
191  const PMString& cellTagName,
192  XMLReference& outCreatedXMLReference);
193 
194 
204  ErrorCode TagTextRange(const UIDRef& textModelUIDRef,
205  const PMString& tagName,
206  TextIndex startIndex,
207  TextIndex endIndex);
208 
209 
210 
211 protected:
219  ErrorCode InsertText(const UIDRef& textModelUIDRef, const PMString& data, const TextIndex& position);
220 
221 };
222 
223 
224 
225 #endif // __SnpXMLHelper_H_DEFINED__
226 
227 //End, SnpXMLHelper.h