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

Public Types | |
| enum | { kDefaultIID = IID_IXMLCREATEELEMENTCMDDATA } |
Public Member Functions | |
| virtual void | Set (const WideString &tagToApply, UIDRef storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex, const XMLReference &parentXMLRef=kInvalidXMLReference)=0 |
| virtual void | Set (UID tagToApply, UIDRef storyUIDRef, TextIndex startTextIndex, TextIndex endTextIndex, const XMLReference &parentXMLRef=kInvalidXMLReference)=0 |
| virtual void | Set (const WideString &tagToApply, UID contentItem, const XMLReference &parentXMLRef, int32 indexInParent)=0 |
| virtual void | Set (UID tagToApply, UID contentItem, const XMLReference &parentXMLRef, int32 indexInParent)=0 |
| virtual void | Set (const WideString &tagToApply, const UIDRef &table, GridID anchor, const GridSpan &span)=0 |
| virtual void | Set (UID tagToApply, const UIDRef &table, GridID anchor, const GridSpan &span)=0 |
| virtual void | Set (const WideString &tagToApply, const UIDRef &tableModelUIDRef, GridID cellGridID)=0 |
| virtual void | Set (UID tagToApply, const UIDRef &tableModelUIDRef, GridID cellGridID)=0 |
| virtual void | Set (const WideString &tagToApply, const XMLReference &parentXMLRef, int32 indexInParent)=0 |
| virtual void | Set (UID tagToApply, const XMLReference &parentXMLRef, int32 indexInParent)=0 |
| virtual void | Set (UID tagToApply, const UIDRef &storyUIDRef, UID contentItem, bool16 addToDocRefList)=0 |
| virtual const XMLReference & | GetCreatedElement () const =0 |
| virtual void | SetCreatedElement (const XMLReference &newItem)=0 |
| virtual bool16 | UsedTableSet () const =0 |
| virtual bool16 | UsedTextSet () const =0 |
| virtual bool16 | UsedTableCellSet () const =0 |
| virtual bool16 | UsedStructuralSet () const =0 |
| virtual void | SetSetMethod (bool16 usedTextSet)=0 |
| virtual UID | GetTag () const =0 |
| virtual UIDRef | GetStoryUIDRef () const =0 |
| virtual void | SetStoryUIDRef (const UIDRef &storyUIDRef)=0 |
| virtual TextIndex | GetStartTextIndex () const =0 |
| virtual TextIndex | GetEndTextIndex () const =0 |
| virtual const UIDRef & | GetTable () const =0 |
| virtual GridID | GetAnchor () const =0 |
| virtual const GridSpan & | GetSpan () const =0 |
| virtual void | SetTextRange (TextIndex startTextIndex, TextIndex endTextIndex)=0 |
| virtual const XMLReference & | GetParent () const =0 |
| virtual void | SetParent (const XMLReference &parentXMLRef)=0 |
| virtual bool16 | GetAddToDocRefList () const =0 |
| virtual int32 | GetIndexInParent () const =0 |
| virtual void | SetIndexInParent (int32 indexInParent)=0 |
| virtual UID | GetContentItem () const =0 |
| virtual void | SetContentItem (UID contentItemUID)=0 |
| virtual ClassID | GetBossID () const =0 |
| virtual void | SetBossID (ClassID bossID)=0 |
| virtual bool16 | IsTextOnPathInline () const =0 |
| virtual void | SetTextOnPathInline (bool16 isTOP)=0 |
| virtual bool16 | DoInlineCheck () const =0 |
| virtual void | SetDoInlineCheck (bool16 doInlineCheck)=0 |
| virtual bool16 | DoForwardCalcXMLParent () const =0 |
| virtual void | SetDoForwardCalcXMLParent (bool16 forwardCalcXMLParent)=0 |
| virtual bool16 | UseExistingMarkers () const =0 |
| virtual void | SetUseExistingMarkers (const bool16 shouldUse)=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 for adding elements to the logical structure tree; if you're writing client code, use IXMLElementCommands and you won't need this interface.
Similar to IHierarchyCmdData, but handles adding only one element at a time.
| pure virtual |
For use by the command only. Return whether the cmd should use forward traverse version of CalcXMLParent. Default is kFalse
| pure virtual |
For use by the command only. Return whether the cmd should hook up the item as an inline (if it is an inline). This is an override to handle the case where the item is an inline, but is being hooked up as a child of a TOP inline.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
Accessor for element created, once command executed.
| pure virtual |
For use by the command only
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only.
| pure virtual |
For use by the command only
| pure virtual |
For use by the command only. Return whether this content is text on a path content
| pure virtual |
Set the data through a text range, naming the tag.
| tagToApply | tag to apply to the element tag to apply to the element |
| storyUIDRef | UIDRef of the story containing the text UIDRef of the story containing the text |
| startTextIndex | TextIndex of the text to start tagging TextIndex of the text to start tagging |
| endTextIndex | TextIndex of the last character to tag TextIndex of the last character to tag |
| parentXMLRef | if the story isn't tagged (i.e. backing store), may pass in an ancestor reference for structure position calculations |
| pure virtual |
Set the data through a text range, passing UID of tag to apply
| tagToApply | tag to apply to the element |
| storyUIDRef | UIDRef of the story containing the text |
| startTextIndex | TextIndex of the text to start tagging |
| endTextIndex | TextIndex of the last character to tag |
| parentXMLRef | if the story isn't tagged (i.e. backing store), may pass in an ancestor reference for structure position calculations |
| pure virtual |
Set data through specifying UID of content item, e.g. frame, naming tag to use.
| tagToApply | tag to apply to the element |
| contentItem | content item in the layout view which will represent the content, or the frame UID |
| parentXMLRef | the parent element |
| indexInParent | the index within the parent's list of child elements |
| pure virtual |
Set data through specifying UID of content item, e.g. frame, giving UID of tag (IXMLTag) to use.
| tagToApply | tag to apply to the element |
| contentItem | content item in the layout view which will represent the content, or the frame UID |
| parentXMLRef | the parent element |
| indexInParent | the index within the parent's list of child elements |
| pure virtual |
| pure virtual |
| pure virtual |
Set data through specifying a parent and child index. Note that this will create a structural only, no content associated element NOTE: this is limited use only. Do not use unless absolutely necessary
| tagToApply | tag to apply to the element |
| parentXMLRef | XMLReference of the parent element |
| indexInParent | child index under parentXMLRef the new element should be |
| pure virtual |
Set data through specifying a parent and child index. Note that this will create a structural only, no content associated element NOTE: this is limited use only. Do not use unless absolutely necessary
| tagToApply | tag to apply to the element |
| parentXMLRef | XMLReference of the parent element |
| indexInParent | child index under parentXMLRef the new element should be |
| pure virtual |
Set data through specifying a story and the content item. Since no parent element is specified, the created element is not added to XML structure. The caller is responsible for maintaining the new element. NOTE: this is limited use only. Do not use unless absolutely necessary
| tagToApply | tag to apply to the element |
| storyUIDRef | UIDRef of the story containing the element |
| contentItem | content item in the layout view which will represent the content addToDocRefList If kTrue, the created element is added to the IXMLReferenceListData on the document. |
| pure virtual |
For use by the command only.
| bossID | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only.
| contentItemUID | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only; don't invoke from client code
| newItem | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only. CalcXMLParent is optimized for append cases, so it traverses in reverse order to find data faster. However, if this command is used to build XML structure in the reverse order, reverse traversal could slow things down, as data is now usually found at the end of the iterations. Use this method to tell the command to use forward traversal version of CalcXMLParent instead. Default is kFalse
| pure virtual |
For use by the command only.
| doInlineCheck | whether to check for inlines during create |
| pure virtual |
For use by the command only.
| indexInParent | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only.
| parentXMLRef | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only; don't invoke from client code
| usedTextSet | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only.
| storyUIDRef | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only.
| isTOP | [INTERNAL] don't set this from client code |
| pure virtual |
For use by the command only
| startTextIndex | [INTERNAL] don't set this from client code, TextIndex of the text to start tagging |
| endTextIndex | [INTERNAL] don't set this from client code, TextIndex of the last character to tag |
| pure virtual |
Set whether or not to add the marker characters to the model or use the existing markers. The caller who sets this to kTrue guarantees that the special marker character exist in the text model at the text index location.
| shouldUse |
| pure virtual |
| pure virtual |
| pure virtual |
For use by the command only. Return which Set was used (whether a text-based 'Set' method or a content-item based 'Set' method)
| pure virtual |
For use by the command only. Return which Set was used (whether a text-based 'Set' method or a content-item based 'Set' method)
| pure virtual |
Get whether or not to add the marker characters to the model or use the existing markers
| none |