![]() | InDesign SDK 20.5 |
Public Member Functions | |
| ErrorCode | CreateAttributesInSelection (ISelectionManager *selectionManager, const PMString &attribName, const PMString &attribValue) |
| ErrorCode | CreateCommentInSelection (ISelectionManager *selectionManager, const PMString &commentText) |
| ErrorCode | CreateElementsInSelection (ISelectionManager *selectionManager, const UIDRef &tagUIDRef, int32 numElements) |
| ErrorCode | CreateProcessingInstructionInSelection (ISelectionManager *selectionManager, const PMString &piKey, const PMString &piValue) |
| ErrorCode | ExportXMLSnippetFromSelection (ISelectionManager *selectionManager, const IDFile &targetFile) |
| ErrorCode | ExportFromSelection (ISelectionManager *selectionManager, const IDFile &targetFile) |
| ErrorCode | ImportIntoSelection (ISelectionManager *selectionManager, IDataBase *database, const IDFile &targetFile) |
| ErrorCode | ValidateFromSelection (ISelectionManager *selectionManager, IXMLValidator *xmlValidator) |
Manipulates properties of an XML selection, nodes selected in the structure view.
| ErrorCode SnpManipulateXMLSelection::CreateAttributesInSelection | ( | ISelectionManager * | selectionManager, |
| const PMString & | attribName, | ||
| const PMString & | attribValue | ||
| ) |
Attempt to create attributes for selected node(s)
| selectionManager | reference to the abstract selection |
| attribName | name of attribute |
| attribValue | value to assign to newly created attribute |
| ErrorCode SnpManipulateXMLSelection::CreateCommentInSelection | ( | ISelectionManager * | selectionManager, |
| const PMString & | commentText | ||
| ) |
Attempt to create a comment (kXMLCommentBoss) parented by selected node(s)
| selectionManager | reference to the abstract selection |
| commentText |
| ErrorCode SnpManipulateXMLSelection::CreateElementsInSelection | ( | ISelectionManager * | selectionManager, |
| const UIDRef & | tagUIDRef, | ||
| int32 | numElements | ||
| ) |
Attempt to create elements parented by selected node(s)
| selectionManager | reference to the abstract selection |
| tagUIDRef | |
| numElements |
| ErrorCode SnpManipulateXMLSelection::CreateProcessingInstructionInSelection | ( | ISelectionManager * | selectionManager, |
| const PMString & | piKey, | ||
| const PMString & | piValue | ||
| ) |
Attempt to create a processing instruction parented by selected node(s)
| selectionManager | reference to the abstract selection |
| piKey | |
| piValue |
| ErrorCode SnpManipulateXMLSelection::ExportFromSelection | ( | ISelectionManager * | selectionManager, |
| const IDFile & | targetFile | ||
| ) |
Export selected node(s) as XML
| selectionManager | reference to the abstract selection |
| targetFile |
| ErrorCode SnpManipulateXMLSelection::ExportXMLSnippetFromSelection | ( | ISelectionManager * | selectionManager, |
| const IDFile & | targetFile | ||
| ) |
Export the selected node(s) as Snippet
| selectionManager | reference to the abstract selection |
| targetFile |
| ErrorCode SnpManipulateXMLSelection::ImportIntoSelection | ( | ISelectionManager * | selectionManager, |
| IDataBase * | database, | ||
| const IDFile & | targetFile | ||
| ) |
Attempt to import specified XML data file into logical structure to be parented by selected node. If multiple nodes selected, then top level element(s) in imported content becomes peers of selected nodes.
| selectionManager | reference to the abstract selection |
| database | document's database into which to import (NB: the API used is slightly at variance with abstract selection model) |
| targetFile |
| ErrorCode SnpManipulateXMLSelection::ValidateFromSelection | ( | ISelectionManager * | selectionManager, |
| IXMLValidator * | xmlValidator | ||
| ) |
Attempt to validate selected node(s) against associated DTD
| selectionManager | reference to the abstract selection |
| xmlValidator | (NB: the API used is slightly at variance with abstract selection model) |