InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IIDXMLDOMDocument.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Ryan Gano
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 __IIDOMXMLDocument_h__
25 #define __IIDOMXMLDocument_h__
26 
27 class IIDXMLDOMNode;
30 class ISAXServices;
31 class BaseProgressBar;
32 
33 // Forward declare this in the proper namespace
34 namespace BIB_NAMESPACE {
35  class CAXEDocumentDOM;
36 }
37 
66 {
67 public:
68  virtual ~IIDXMLDOMDocument() {}
69 
77  virtual IIDXMLDOMNode *GetDocumentNode() const = 0;
78 
84  virtual IIDXMLDOMNode *GetRootNode() const = 0;
85 
119  virtual IIDXMLDOMNode *ImportNode(IIDXMLDOMNode *toImport, bool16 deepImport) = 0;
120 
144  virtual IIDXMLDOMNode *CreateElementNode(const WideString &namespaceURI, const WideString &qName) = 0;
145 
160  virtual IIDXMLDOMNode *CreateCommentNode(const WideString &comment) = 0;
161 
178  virtual IIDXMLDOMNode *CreatePINode(const WideString &target, const WideString &value) = 0;
179 
194  virtual IIDXMLDOMNode *CreateTextNode(const WideString &text) = 0;
195 
219  virtual IIDXMLDOMNode *CreateAttribute(const WideString &namespaceURI, const WideString &qName, const WideString &value) = 0;
220 
226  virtual int32 GetDOMElementCount() const = 0;
227 
236  virtual void SetDOMElementCount(int32 elementCount) = 0;
237 
238  virtual bool16 operator == (const IIDXMLDOMDocument *other) = 0;
239 
256  virtual void Serialize(ISAXDOMSerializerServices* owner, ISAXDOMSerializerHandler* defaultHandler, BaseProgressBar *progressBar, bool16 allowProviders) = 0;
257 
262  virtual BIB_NAMESPACE::CAXEDocumentDOM GetAXEObject() = 0;
263  virtual void SetAXEObject(BIB_NAMESPACE::CAXEDocumentDOM newObj) = 0;
264 };
265 
266 #endif