Base class for inline-level nodes that can contain paragraphs and tables.
InlineStory is a container for block-level nodes Paragraph and Table.
The classes that derive from InlineStory are inline-level nodes that can contain their own text (paragraphs and tables). For example, a Comment node contains text of a comment and a Footnote contains text of a footnote.
Shows how to insert and customize footnotes.
Shows how to add a comment to a paragraph.
#include <Aspose.Words.Cpp/InlineStory.h>
Public Member Functions | |
void | EnsureMinimum () |
If the last child is not a paragraph, creates and appends one empty paragraph. More... | |
SharedPtr< Paragraph > | get_FirstParagraph () |
Gets the first paragraph in the story. More... | |
SharedPtr< Font > | get_Font () |
Provides access to the font formatting of the anchor character of this object. More... | |
bool | get_IsDeleteRevision () |
Returns true if this object was deleted in Microsoft Word while change tracking was enabled. More... | |
bool | get_IsInsertRevision () |
Returns true if this object was inserted in Microsoft Word while change tracking was enabled. More... | |
bool | get_IsMoveFromRevision () |
Returns true if this object was moved (deleted) in Microsoft Word while change tracking was enabled. More... | |
bool | get_IsMoveToRevision () |
Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled. More... | |
SharedPtr< Paragraph > | get_LastParagraph () |
Gets the last paragraph in the story. More... | |
SharedPtr< ParagraphCollection > | get_Paragraphs () |
Gets a collection of paragraphs that are immediate children of the story. More... | |
SharedPtr< Paragraph > | get_ParentParagraph () |
Retrieves the parent Paragraph of this node. More... | |
virtual StoryType | get_StoryType ()=0 |
Returns the type of the story. More... | |
SharedPtr< TableCollection > | get_Tables () |
Gets a collection of tables that are immediate children of the story. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
![]() | |
SharedPtr< Node > | AppendChild (const SharedPtr< Node > &newChild) |
Adds the specified node to the end of the list of child nodes for this node. More... | |
SharedPtr< NodeCollection > | get_ChildNodes () |
Gets all immediate child nodes of this node. More... | |
int32_t | get_Count () |
Gets the number of immediate children of this node. More... | |
SharedPtr< Node > | get_FirstChild () const |
Gets the first child of the node. More... | |
bool | get_HasChildNodes () |
Returns true if this node has any child nodes. More... | |
bool | get_IsComposite () override |
Returns true as this node can have child nodes. More... | |
SharedPtr< Node > | get_LastChild () const |
Gets the last child of the node. More... | |
SharedPtr< Node > | GetChild (NodeType nodeType, int32_t index, bool isDeep) |
Returns an Nth child node that matches the specified type. More... | |
SharedPtr< NodeCollection > | GetChildNodes (NodeType nodeType, bool isDeep) |
Returns a live collection of child nodes that match the specified type. More... | |
SharedPtr< IEnumerator< SharedPtr< Node > > > | GetEnumerator () override |
Provides support for the for each style iteration over the child nodes of this node. More... | |
String | GetText () override |
Gets the text of this node and of all its children. More... | |
virtual const TypeInfo & | GetType () const override |
int32_t | IndexOf (const SharedPtr< Node > &child) |
Returns the index of the specified child node in the child node array. More... | |
SharedPtr< Node > | InsertAfter (const SharedPtr< Node > &newChild, const SharedPtr< Node > &refChild) |
Inserts the specified node immediately after the specified reference node. More... | |
SharedPtr< Node > | InsertBefore (const SharedPtr< Node > &newChild, const SharedPtr< Node > &refChild) |
Inserts the specified node immediately before the specified reference node. More... | |
virtual bool | Is (const TypeInfo &target) const override |
SharedPtr< Node > | PrependChild (const SharedPtr< Node > &newChild) |
Adds the specified node to the beginning of the list of child nodes for this node. More... | |
void | RemoveAllChildren () |
Removes all the child nodes of the current node. More... | |
SharedPtr< Node > | RemoveChild (const SharedPtr< Node > &oldChild) |
Removes the specified child node. More... | |
void | RemoveSmartTags () |
Removes all SmartTag descendant nodes of the current node. More... | |
SharedPtr< NodeList > | SelectNodes (const String &xpath) |
Selects a list of nodes matching the XPath expression. More... | |
SharedPtr< Node > | SelectSingleNode (const String &xpath) |
Selects the first Node that matches the XPath expression. More... | |
void | SetTemplateWeakPtr (uint32_t argument) override |
![]() | |
virtual bool | Accept (SharedPtr< DocumentVisitor > visitor)=0 |
Accepts a visitor. More... | |
SharedPtr< Node > | Clone (bool isCloneChildren) |
Creates a duplicate of the node. More... | |
int32_t | get_CustomNodeId () const |
Specifies custom node identifier. More... | |
virtual SharedPtr< DocumentBase > | get_Document () const |
Gets the document to which this node belongs. More... | |
virtual bool | get_IsComposite () |
Returns true if this node can contain other nodes. More... | |
SharedPtr< Node > | get_NextSibling () |
Gets the node immediately following this node. More... | |
virtual NodeType | get_NodeType () const =0 |
Gets the type of this node. More... | |
SharedPtr< CompositeNode > | get_ParentNode () |
Gets the immediate parent of this node. More... | |
SharedPtr< Node > | get_PreviousSibling () |
Gets the node immediately preceding this node. More... | |
SharedPtr< Range > | get_Range () |
Returns a Range object that represents the portion of a document that is contained in this node. More... | |
SharedPtr< CompositeNode > | GetAncestor (NodeType ancestorType) |
Gets the first ancestor of the specified NodeType. More... | |
template<typename T > | |
T | GetAncestorOf () |
virtual String | GetText () |
Gets the text of this node and of all its children. More... | |
virtual const TypeInfo & | GetType () const override |
virtual bool | Is (const TypeInfo &target) const override |
SharedPtr< Node > | NextPreOrder (const SharedPtr< Node > &rootNode) |
Gets next node according to the pre-order tree traversal algorithm. More... | |
SharedPtr< Node > | PreviousPreOrder (const SharedPtr< Node > &rootNode) |
Gets the previous node according to the pre-order tree traversal algorithm. More... | |
void | Remove () |
Removes itself from the parent. More... | |
void | set_CustomNodeId (int32_t value) |
Setter for get_CustomNodeId. More... | |
String | ToString (SaveFormat saveFormat) |
Exports the content of the node into a string in the specified format. More... | |
String | ToString (const SharedPtr< SaveOptions > &saveOptions) |
Exports the content of the node into a string using the specified save options. More... | |
Static Public Member Functions | |
static const TypeInfo & | Type () |
![]() | |
static const TypeInfo & | Type () |
![]() | |
static String | NodeTypeToString (NodeType nodeType) |
A utility method that converts a node type enum value into a user friendly string. More... | |
static const TypeInfo & | Type () |
void Aspose::Words::InlineStory::EnsureMinimum | ( | ) |
If the last child is not a paragraph, creates and appends one empty paragraph.
Shows how to insert InlineStory nodes.
System::SharedPtr< Aspose::Words::Paragraph > Aspose::Words::InlineStory::get_FirstParagraph | ( | ) |
Gets the first paragraph in the story.
Shows how to insert and customize footnotes.
Shows how to add a comment to a paragraph.
System::SharedPtr< Aspose::Words::Font > Aspose::Words::InlineStory::get_Font | ( | ) |
Provides access to the font formatting of the anchor character of this object.
Shows how to insert InlineStory nodes.
bool Aspose::Words::InlineStory::get_IsDeleteRevision | ( | ) |
Returns true if this object was deleted in Microsoft Word while change tracking was enabled.
Shows how to view revision-related properties of InlineStory nodes.
bool Aspose::Words::InlineStory::get_IsInsertRevision | ( | ) |
Returns true if this object was inserted in Microsoft Word while change tracking was enabled.
Shows how to view revision-related properties of InlineStory nodes.
bool Aspose::Words::InlineStory::get_IsMoveFromRevision | ( | ) |
Returns true if this object was moved (deleted) in Microsoft Word while change tracking was enabled.
Shows how to view revision-related properties of InlineStory nodes.
bool Aspose::Words::InlineStory::get_IsMoveToRevision | ( | ) |
Returns true if this object was moved (inserted) in Microsoft Word while change tracking was enabled.
Shows how to view revision-related properties of InlineStory nodes.
System::SharedPtr< Aspose::Words::Paragraph > Aspose::Words::InlineStory::get_LastParagraph | ( | ) |
Gets the last paragraph in the story.
Shows how to insert InlineStory nodes.
System::SharedPtr< Aspose::Words::ParagraphCollection > Aspose::Words::InlineStory::get_Paragraphs | ( | ) |
Gets a collection of paragraphs that are immediate children of the story.
Shows how to insert and customize footnotes.
Shows how to add a comment to a paragraph.
System::SharedPtr< Aspose::Words::Paragraph > Aspose::Words::InlineStory::get_ParentParagraph | ( | ) |
Retrieves the parent Paragraph of this node.
Shows how to insert InlineStory nodes.
|
pure virtual |
Returns the type of the story.
Shows how to insert InlineStory nodes.
Implemented in Aspose::Words::Comment, and Aspose::Words::Notes::Footnote.
System::SharedPtr< Aspose::Words::Tables::TableCollection > Aspose::Words::InlineStory::get_Tables | ( | ) |
Gets a collection of tables that are immediate children of the story.
Shows how to insert InlineStory nodes.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
Reimplemented in Aspose::Words::Comment, and Aspose::Words::Notes::Footnote.
|
overridevirtual |
Reimplemented from Aspose::Words::CompositeNode.
Reimplemented in Aspose::Words::Comment, and Aspose::Words::Notes::Footnote.
|
static |