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

Public Types | |
| enum | { kDefaultIID = IID_IXMLNODETARGET } |
| enum | XMLNodeFilterType { kRemoveDescendents } |
Public Member Functions | |
| virtual int32 | Location (const XMLAttributeReference &) const =0 |
| virtual int32 | Location (const XMLReference &) const =0 |
| virtual int32 | CommentLocation (const XMLReference &) const =0 |
| virtual int32 | PILocation (const XMLReference &) const =0 |
| virtual int32 | AllLocation (const XMLReference &) const =0 |
| virtual void | AddAttribute (const XMLAttributeReference &newItem)=0 |
| virtual void | RemoveAttribute (const XMLAttributeReference &itemToRemove)=0 |
| virtual void | AddElement (const XMLReference &newItem)=0 |
| virtual void | RemoveElement (const XMLReference &itemToRemove)=0 |
| virtual void | AddComment (const XMLReference &newItem)=0 |
| virtual void | RemoveComment (const XMLReference &itemToRemove)=0 |
| virtual void | AddPI (const XMLReference &newItem)=0 |
| virtual void | RemovePI (const XMLReference &itemToRemove)=0 |
| virtual void | AddNonAttribute (const XMLReference &newItem)=0 |
| virtual void | RemoveNonAttribute (const XMLReference &itemToRemove)=0 |
| virtual void | Clear (void)=0 |
| virtual void | ClearNonAttributes (void)=0 |
| virtual void | ClearElements ()=0 |
| virtual void | ClearComments (void)=0 |
| virtual void | ClearPIs (void)=0 |
| virtual void | ClearAttributes ()=0 |
| virtual const K2Vector < XMLAttributeReference > & | GetAttributeNodeList () const =0 |
| virtual void | SetAttributeNodeList (const K2Vector< XMLAttributeReference > &)=0 |
| virtual void | SetAttributeNodeList (const XMLAttributeReference &)=0 |
| virtual int32 | GetAttributeCount () const =0 |
| virtual const XMLAttributeReference & | GetNthAttribute (int32 index) const =0 |
| virtual const K2Vector < XMLReference > & | GetElementNodeList () const =0 |
| virtual void | GetFilteredElementNodeList (XMLNodeFilterType, K2Vector< XMLReference > &sortedList) const =0 |
| virtual void | SetElementNodeList (const K2Vector< XMLReference > &)=0 |
| virtual void | SetElementNodeList (const XMLReference &)=0 |
| virtual int32 | GetElementCount () const =0 |
| virtual const XMLReference & | GetNthElement (int32 index) const =0 |
| virtual const K2Vector < XMLReference > & | GetCommentNodeList () const =0 |
| virtual void | SetCommentNodeList (const K2Vector< XMLReference > &)=0 |
| virtual void | SetCommentNodeList (const XMLReference &)=0 |
| virtual int32 | GetCommentCount () const =0 |
| virtual const XMLReference & | GetNthComment (int32 index) const =0 |
| virtual const K2Vector < XMLReference > & | GetPINodeList () const =0 |
| virtual void | SetPINodeList (const K2Vector< XMLReference > &)=0 |
| virtual void | SetPINodeList (const XMLReference &)=0 |
| virtual int32 | GetPICount () const =0 |
| virtual const XMLReference & | GetNthPI (int32 index) const =0 |
| virtual const K2Vector < XMLReference > & | GetAllNodeList () const =0 |
| virtual void | SetAllNodeList (const K2Vector< XMLReference > &)=0 |
| virtual void | SetAllNodeList (const XMLReference &)=0 |
| virtual void | GetFilteredAllNodeList (IXMLNodeTarget::XMLNodeFilterType, K2Vector< XMLReference > &sortedList) const =0 |
| virtual int32 | GetAllCount () const =0 |
| virtual const XMLReference & | GetNthNode (int32 index) const =0 |
| virtual IDataBase * | GetDataBase () const =0 |
| virtual bool16 | HasContent (void) const =0 |
| virtual void | Initialize (IDataBase *db)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Represents the nodes in the structure that are the 'target' of operations performed on an active selection in the structure view. Would be used from a suite implementation.
If you are writing your own suite implementation and you add in your suite to the ASB and the CSB kXMLStructureSelectionBoss, then in your CSB implementation code you'd query for the IXMLNodeTarget interface on 'this' to get at the nodes in the structure tree to manipulate from your implementation on the CSB.
List filter enumeration
| pure virtual |
Add an attribute to the selection target attribute list.
| newItem | specifies attribute to add |
| pure virtual |
Add a comment to the selection target comment list
| newItem | specifies item to add |
| pure virtual |
Add an element to the selection target element list.
| newItem | specifies item to add |
| pure virtual |
Add a non-attribute to the selection target all list
| newItem | specifies item to add |
| pure virtual |
Add a processing instruction to the selection target PI list
| newItem | specifies item to add |
| pure virtual |
Is the specific item in the non-attribute target list?
| pure virtual |
Remove all elements and attributes from the selection target lists.
| pure virtual |
Remove all attributes from the selection target list
| pure virtual |
Remove all comments from the selection target list
| pure virtual |
Remove all elements from the selection target list
| pure virtual |
Remove all non-attributes from the selection target list
| pure virtual |
Remove all processing instructions from the selection target list
| pure virtual |
Is the specified item in the layout target list?
| pure virtual |
Accessor for count of non-attributes in selected list
| pure virtual |
Return a K2Vector of XMLReferences that reflects the current non-attribute selection
| pure virtual |
| pure virtual |
Return a K2 Vector of XMLAttributeReferences that reflects the current attribute selection.
| pure virtual |
Accessor for count of comments in selected list
| pure virtual |
Return a K2Vector of XMLReferences that reflects the current comment selection
| pure virtual |
Accessor for database associated with selection
| pure virtual |
Accessor for count of elements in selected list
| pure virtual |
Return a K2 Vector of XMLReferences that reflects the current element selection.
| pure virtual |
Accessor for list of non-attributes selected, filtered
| sortedList | [OUT] parameter containing the filtered list from the selection |
| pure virtual |
Accessor for list of nodes selected, filtered
| sortedList | [OUT] parameter containing the filtered list from the selection |
| pure virtual |
Accessor for attribute in list by index
| index | specifies the location of interest in list |
| pure virtual |
Accessor for comment by index
| index | location of comment of interest |
| pure virtual |
Accessor for element by index
| index | location of element of interest |
| pure virtual |
Accessor for non-attribute by index
| index | location of non-attribute of interest |
| pure virtual |
Accessor for processing instruction by index
| index | location of PI of interest |
| pure virtual |
Accessor for count of processing instructions in selected list
| pure virtual |
Return a K2Vector of XMLReferences that reflects the current processing instruction selection
| pure virtual |
Accessor to determine if the target is populated or not
| pure virtual |
Initialize
| db | Database the target is associated with. |
| pure virtual |
Set the database for the layout target (i.e. page items)Is the specified item in the layout target list.
| pure virtual |
Is the specified item in the layout target list?
| pure virtual |
Is the specified item in the layout target list?
| pure virtual |
Remove an attribute from the selection target attribute list.
| itemToRemove | specifies attribute to remove from list |
| pure virtual |
Remove a comment from the selection target comment list
| itemToRemove | specifies comment to remove |
| pure virtual |
Remove an element from the selection target element list.
| itemToRemove | specifies element to remove |
| pure virtual |
Remove a non-attribute from the selection target all list
| itemToRemove | specifies item to remove |
| pure virtual |
Remove a processing instruction from the selection target PI list
| itemToRemove | specifies PI to remove |
| pure virtual |
Set the target's non-attribute list. The type-specific lists will also get filled out according to the element type of each entry in the given list
| K2Vector<XMLReference>& | list of non-attributes' XMLReferences |
| pure virtual |
Set the target's non-attribute list. The type-specific lists will also get filled out according to the element type of each entry in the given list
| XMLReference | non-attribute's XMLReferences |
| pure virtual |
Set target attribute list
| pure virtual |
Set the target's attribute UIDList.
| XMLAttributeReference |
| pure virtual |
Set the target's comment list
| K2Vector<XMLReference>& | list of comments' XMLReferences |
| pure virtual |
Set the target's comment list
| XMLReference | comment's XMLReference |
| pure virtual |
Set the target's element list.
| pure virtual |
Set the target element UIDList.
| pure virtual |
Set the target's processing instruction list
| K2Vector<XMLReference>& | list of PIs' XMLReferences |
| pure virtual |
Set the target's processing instruction list
| XMLReference | PI's XMLReference |