![]() | InDesign SDK 20.5 |
#include <IXMLParsingContext.h>

Public Types | |
| enum | { kDefaultIID = IID_IXMLPARSINGCONTEXT } |
Public Member Functions | |
| virtual void | Set (const XMLReference &element, const WideString &tagName, int32 childIndex, const UIDRef &storyRef, TextIndex insertPos, bool16 shouldInsert=kFalse)=0 |
| virtual void | Set (IXMLParsingContext *parsingContext)=0 |
| virtual XMLReference | GetElement () const =0 |
| virtual void | SetElement (const XMLReference &element)=0 |
| virtual WideString | GetTagName () const =0 |
| virtual void | SetTagName (const WideString &tagName)=0 |
| virtual int32 | GetChildIndex () const =0 |
| virtual void | SetChildIndex (int32 childIndex)=0 |
| virtual UIDRef | GetStoryRef () const =0 |
| virtual void | SetStoryRef (const UIDRef &storyRef)=0 |
| virtual TextIndex | GetInsertPos () const =0 |
| virtual void | SetInsertPos (TextIndex insertPos)=0 |
| virtual bool16 | ShouldInsert () const =0 |
| virtual void | SetShouldInsert (bool16 doInsert)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Interface for tracking the parsing context information necessary to add XML content to an InDesign document.
When importing XML content, information about the current element, story, and text insertion point are stored in an instance of this interface. The current parsing context information as well as a stack of previous parent elements are managed and mainted by ISAXServices.
IParsingContext is an interface of the kXMLParserLocatorBoss and additional parsing information can be stored by adding interfaces to this boss object.
| pure virtual |
Returns the index of where the element can be found in its parent.
| pure virtual |
Returns the element referred to by this context
| pure virtual |
Returns the text index elements and content will be inserted into the story.
| pure virtual |
Returns a reference to the story that contains the element.
| pure virtual |
Returns the tag name currently being parsed. This will be the tag
name of the newly created element.
| pure virtual |
Specify the context information
| element | A reference to the XML Element being created. |
| tagName | The tag name of the element. |
| childIndex | The index of where the element resides in its parent. |
| storyRef | The story where the element will be created. |
| insertPos | The current insertion position for new elements or content in the context's story. |
| pure virtual |
Specify the context information by copying another context.
| parsingContext | The parsing context to be copied. |
| pure virtual |
Specify the child index of where the element can be found.
| childIndex | The child index of the element. |
| pure virtual |
Specify the element that has been created.
| element | The newly created element. |
| pure virtual |
Specify the current insertion position for elements and content in context's story.
| insertPos | The current insertion position. |
| pure virtual |
Specify the story which will be used when creating the element.
| storyRef | A reference to a story. |
| pure virtual |
Specify the tag name of the newly created element.
| tagName | The tag name. |