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

Public Types | |
| enum | { kDefaultIID = IID_IXMLDUPELEMENTSCMDDATA } |
Public Member Functions | |
| virtual void | SetSource (const XMLReference &sourceXMLRef)=0 |
| virtual void | SetDestination (const XMLReference &destXMLRef, int32 destIndex)=0 |
| virtual const XMLReference & | GetDestinationXMLRef (void) const =0 |
| virtual const XMLReference & | GetSourceXMLRef (int32 index) const =0 |
| virtual int32 | GetDestinationIndex ()=0 |
| virtual int32 | SourceSize ()=0 |
| virtual void | SetCreatedElements (const K2Vector< XMLReference > &duplicatedElements)=0 |
| virtual const K2Vector < XMLReference > & | GetCreatedElements ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Data interface used by command for duplicating XML elements. If the target range is set up, it will be used to determine where the elements are to be duplicated to, else they will be duplicated in place. Descendants of the nodes being duplicated will be added in to the processing; it is the sub-tree descending from a given node that is duplicated, for each node.
| pure virtual |
Accessor for newly duplicated elements.
| pure virtual |
Accessor for the position in the list of children of the destination node where the duplicated nodes are heading, stored on this interface
| pure virtual |
Accessor for destination node that is to be new parent for duplicated nodes
| pure virtual |
Accessor for entries in the list of source nodes to be duplicated stored on this interface, by index in the list
| index | zero-based index, specifying position of interest for a source node, 0 < index < SourceSize() |
| pure virtual |
Specify the list of duplicated elements. Used by the command when duplication is complete to post the results.
| duplicatedElements | the list of newly duplicated elements |
| pure virtual |
Specify a destination node in the structure tree to be parent to newly created duplicate items. The behaviour of the command if no destination is specified is to duplicate each item added in SetSource() with a destination equal to the end of that source, as a sibling element.
| destXMLRef | new parent for duplicated nodes |
| destIndex | specify an index in the list of children, or e.g. IIDXMLElement::kEndIndex to add as last child |
| pure virtual |
SetSource() must be called at least once, and can be called as many times as needed to set up source XML nodes to duplicate.
| sourceXMLRef | specifies element to add to list of nodes to duplicate |
| pure virtual |
Accessor for the number of nodes in the source list, i.e. indicates how many times SetSource was called with distinct XMLReference's on this.