Aspose::Words::DocumentVisitor Class Reference

Detailed Description

Base class for custom document visitors.

With DocumentVisitor you can define and execute custom operations that require enumeration over the document tree.

For example, Aspose.Words uses DocumentVisitor internally for saving Document in various formats and for other operations like finding fields or bookmarks over a fragment of a document.

To use DocumentVisitor:

  1. Create a class derived from DocumentVisitor.
  2. Override and provide implementations for some or all of the VisitXXX methods to perform some custom operations.
  3. Call Node.Accept on the Node that you want to start the enumeration from.

DocumentVisitor provides default implementations for all of the VisitXXX methods to make it easier to create new document visitors as only the methods required for the particular visitor need to be overridden. It is not necessary to override all of the visitor methods.

For more information see the Visitor design pattern.

#include <Aspose.Words.Cpp/Model/Document/DocumentVisitor.h>

+ Inheritance diagram for Aspose::Words::DocumentVisitor:

Public Member Functions

virtual const TypeInfoGetType () const override
 
virtual bool Is (const TypeInfo &target) const override
 
virtual VisitorAction VisitAbsolutePositionTab (SharedPtr< AbsolutePositionTab > tab)
 Called when a AbsolutePositionTab node is encountered in the document. More...
 
virtual VisitorAction VisitBodyEnd (SharedPtr< Body > body)
 Called when enumeration of the main text story in a section has ended. More...
 
virtual VisitorAction VisitBodyStart (SharedPtr< Body > body)
 Called when enumeration of the main text story in a section has started. More...
 
virtual VisitorAction VisitBookmarkEnd (SharedPtr< BookmarkEnd > bookmarkEnd)
 Called when an end of a bookmark is encountered in the document. More...
 
virtual VisitorAction VisitBookmarkStart (SharedPtr< BookmarkStart > bookmarkStart)
 Called when a start of a bookmark is encountered in the document. More...
 
virtual VisitorAction VisitBuildingBlockEnd (SharedPtr< BuildingBlock > block)
 Called when enumeration of a building block has ended. More...
 
virtual VisitorAction VisitBuildingBlockStart (SharedPtr< BuildingBlock > block)
 Called when enumeration of a building block has started. More...
 
virtual VisitorAction VisitCellEnd (SharedPtr< Cell > cell)
 Called when enumeration of a table cell has ended. More...
 
virtual VisitorAction VisitCellStart (SharedPtr< Cell > cell)
 Called when enumeration of a table cell has started. More...
 
virtual VisitorAction VisitCommentEnd (SharedPtr< Comment > comment)
 Called when enumeration of a comment text has ended. More...
 
virtual VisitorAction VisitCommentRangeEnd (SharedPtr< CommentRangeEnd > commentRangeEnd)
 Called when the end of a commented range of text is encountered. More...
 
virtual VisitorAction VisitCommentRangeStart (SharedPtr< CommentRangeStart > commentRangeStart)
 Called when the start of a commented range of text is encountered. More...
 
virtual VisitorAction VisitCommentStart (SharedPtr< Comment > comment)
 Called when enumeration of a comment text has started. More...
 
virtual VisitorAction VisitDocumentEnd (SharedPtr< Document > doc)
 Called when enumeration of the document has finished. More...
 
virtual VisitorAction VisitDocumentStart (SharedPtr< Document > doc)
 Called when enumeration of the document has started. More...
 
virtual VisitorAction VisitEditableRangeEnd (SharedPtr< EditableRangeEnd > editableRangeEnd)
 Called when an end of an editable range is encountered in the document. More...
 
virtual VisitorAction VisitEditableRangeStart (SharedPtr< EditableRangeStart > editableRangeStart)
 Called when a start of an editable range is encountered in the document. More...
 
virtual VisitorAction VisitFieldEnd (SharedPtr< FieldEnd > fieldEnd)
 Called when a field ends in the document. More...
 
virtual VisitorAction VisitFieldSeparator (SharedPtr< FieldSeparator > fieldSeparator)
 Called when a field separator is encountered in the document. More...
 
virtual VisitorAction VisitFieldStart (SharedPtr< FieldStart > fieldStart)
 Called when a field starts in the document. More...
 
virtual VisitorAction VisitFootnoteEnd (SharedPtr< Footnote > footnote)
 Called when enumeration of a footnote or endnote text has ended. More...
 
virtual VisitorAction VisitFootnoteStart (SharedPtr< Footnote > footnote)
 Called when enumeration of a footnote or endnote text has started. More...
 
virtual VisitorAction VisitFormField (SharedPtr< FormField > formField)
 Called when a form field is encountered in the document. More...
 
virtual VisitorAction VisitGlossaryDocumentEnd (SharedPtr< GlossaryDocument > glossary)
 Called when enumeration of a glossary document has ended. More...
 
virtual VisitorAction VisitGlossaryDocumentStart (SharedPtr< GlossaryDocument > glossary)
 Called when enumeration of a glossary document has started. More...
 
virtual VisitorAction VisitGroupShapeEnd (SharedPtr< GroupShape > groupShape)
 Called when enumeration of a group shape has ended. More...
 
virtual VisitorAction VisitGroupShapeStart (SharedPtr< GroupShape > groupShape)
 Called when enumeration of a group shape has started. More...
 
virtual VisitorAction VisitHeaderFooterEnd (SharedPtr< HeaderFooter > headerFooter)
 Called when enumeration of a header or footer in a section has ended. More...
 
virtual VisitorAction VisitHeaderFooterStart (SharedPtr< HeaderFooter > headerFooter)
 Called when enumeration of a header or footer in a section has started. More...
 
virtual VisitorAction VisitOfficeMathEnd (SharedPtr< OfficeMath > officeMath)
 Called when enumeration of a Office Math object has ended. More...
 
virtual VisitorAction VisitOfficeMathStart (SharedPtr< OfficeMath > officeMath)
 Called when enumeration of a Office Math object has started. More...
 
virtual VisitorAction VisitParagraphEnd (SharedPtr< Paragraph > paragraph)
 Called when enumeration of a paragraph has ended. More...
 
virtual VisitorAction VisitParagraphStart (SharedPtr< Paragraph > paragraph)
 Called when enumeration of a paragraph has started. More...
 
virtual VisitorAction VisitRowEnd (SharedPtr< Row > row)
 Called when enumeration of a table row has ended. More...
 
virtual VisitorAction VisitRowStart (SharedPtr< Row > row)
 Called when enumeration of a table row has started. More...
 
virtual VisitorAction VisitRun (SharedPtr< Run > run)
 Called when a run of text in the is encountered. More...
 
virtual VisitorAction VisitSectionEnd (SharedPtr< Section > section)
 Called when enumeration of a section has ended. More...
 
virtual VisitorAction VisitSectionStart (SharedPtr< Section > section)
 Called when enumeration of a section has started. More...
 
virtual VisitorAction VisitShapeEnd (SharedPtr< Shape > shape)
 Called when enumeration of a shape has ended. More...
 
virtual VisitorAction VisitShapeStart (SharedPtr< Shape > shape)
 Called when enumeration of a shape has started. More...
 
virtual VisitorAction VisitSmartTagEnd (SharedPtr< SmartTag > smartTag)
 Called when enumeration of a smart tag has ended. More...
 
virtual VisitorAction VisitSmartTagStart (SharedPtr< SmartTag > smartTag)
 Called when enumeration of a smart tag has started. More...
 
virtual VisitorAction VisitSpecialChar (SharedPtr< SpecialChar > specialChar)
 Called when a SpecialChar node is encountered in the document. More...
 
virtual VisitorAction VisitStructuredDocumentTagEnd (SharedPtr< StructuredDocumentTag > sdt)
 Called when enumeration of a structured document tag has ended. More...
 
virtual VisitorAction VisitStructuredDocumentTagRangeEnd (SharedPtr< StructuredDocumentTagRangeEnd > sdtRangeEnd)
 
virtual VisitorAction VisitStructuredDocumentTagRangeStart (SharedPtr< StructuredDocumentTagRangeStart > sdtRangeStart)
 
virtual VisitorAction VisitStructuredDocumentTagStart (SharedPtr< StructuredDocumentTag > sdt)
 Called when enumeration of a structured document tag has started. More...
 
virtual VisitorAction VisitSubDocument (SharedPtr< SubDocument > subDocument)
 Called when a subDocument is encountered. More...
 
virtual VisitorAction VisitTableEnd (SharedPtr< Table > table)
 Called when enumeration of a table has ended. More...
 
virtual VisitorAction VisitTableStart (SharedPtr< Table > table)
 Called when enumeration of a table has started. More...
 
- Public Member Functions inherited from Object
ASPOSECPP_SHARED_API Object ()
 
ASPOSECPP_SHARED_API Object (Object const &x)
 
virtual ASPOSECPP_SHARED_API ~Object ()
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 
Detail::SmartPtrCounter * GetCounter ()
 
virtual ASPOSECPP_SHARED_API int GetHashCode () const
 
ASPOSECPP_SHARED_API void Lock ()
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 
Objectoperator= (Object const &x)
 
bool ReferenceEquals (String const &str, std::nullptr_t)
 
bool ReferenceEquals (String const &str1, String const &str2)
 
int RemovedSharedRefs (int count)
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (unsigned int argument)
 
int SharedCount () const
 
ObjectSharedRefAdded ()
 
int SharedRefRemovedSafe ()
 
virtual ASPOSECPP_SHARED_API String ToString () const
 
ASPOSECPP_SHARED_API void Unlock ()
 
Detail::SmartPtrCounter * WeakRefAdded ()
 
void WeakRefRemoved ()
 

Static Public Member Functions

static const TypeInfoType ()
 
- Static Public Member Functions inherited from Object
bool Equals (double const &objA, double const &objB)
 
bool Equals (float const &objA, float const &objB)
 
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 
static const TypeInfoType ()
 

Additional Inherited Members

- Public Types inherited from Object
typedef SmartPtr< Objectptr
 
typedef System::Details::SharedMembersType shared_members_type
 

Member Function Documentation

◆ GetType()

virtual const System::TypeInfo& Aspose::Words::DocumentVisitor::GetType ( ) const
overridevirtual

Reimplemented from System::Object.

◆ Is()

virtual bool Aspose::Words::DocumentVisitor::Is ( const System::TypeInfo target) const
overridevirtual

Reimplemented from System::Object.

◆ Type()

static const System::TypeInfo& Aspose::Words::DocumentVisitor::Type ( )
static

◆ VisitAbsolutePositionTab()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitAbsolutePositionTab ( System::SharedPtr< Aspose::Words::AbsolutePositionTab tab)
virtual

Called when a AbsolutePositionTab node is encountered in the document.

Parameters
tabThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBodyEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBodyEnd ( System::SharedPtr< Aspose::Words::Body body)
virtual

Called when enumeration of the main text story in a section has ended.

Parameters
bodyThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBodyStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBodyStart ( System::SharedPtr< Aspose::Words::Body body)
virtual

Called when enumeration of the main text story in a section has started.

Parameters
bodyThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBookmarkEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBookmarkEnd ( System::SharedPtr< Aspose::Words::BookmarkEnd bookmarkEnd)
virtual

Called when an end of a bookmark is encountered in the document.

Parameters
bookmarkEndThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBookmarkStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBookmarkStart ( System::SharedPtr< Aspose::Words::BookmarkStart bookmarkStart)
virtual

Called when a start of a bookmark is encountered in the document.

Parameters
bookmarkStartThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBuildingBlockEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBuildingBlockEnd ( System::SharedPtr< Aspose::Words::BuildingBlocks::BuildingBlock block)
virtual

Called when enumeration of a building block has ended.

Note: A building block node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a building block, you need to execute the visitor over GlossaryDocument or call Accept().

Parameters
blockThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitBuildingBlockStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitBuildingBlockStart ( System::SharedPtr< Aspose::Words::BuildingBlocks::BuildingBlock block)
virtual

Called when enumeration of a building block has started.

Note: A building block node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a building block, you need to execute the visitor over GlossaryDocument or call Accept().

Parameters
blockThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCellEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCellEnd ( System::SharedPtr< Aspose::Words::Tables::Cell cell)
virtual

Called when enumeration of a table cell has ended.

Parameters
cellThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCellStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCellStart ( System::SharedPtr< Aspose::Words::Tables::Cell cell)
virtual

Called when enumeration of a table cell has started.

Parameters
cellThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCommentEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCommentEnd ( System::SharedPtr< Aspose::Words::Comment comment)
virtual

Called when enumeration of a comment text has ended.

Parameters
commentThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCommentRangeEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCommentRangeEnd ( System::SharedPtr< Aspose::Words::CommentRangeEnd commentRangeEnd)
virtual

Called when the end of a commented range of text is encountered.

Parameters
commentRangeEndThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCommentRangeStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCommentRangeStart ( System::SharedPtr< Aspose::Words::CommentRangeStart commentRangeStart)
virtual

Called when the start of a commented range of text is encountered.

Parameters
commentRangeStartThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitCommentStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitCommentStart ( System::SharedPtr< Aspose::Words::Comment comment)
virtual

Called when enumeration of a comment text has started.

Parameters
commentThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitDocumentEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitDocumentEnd ( System::SharedPtr< Aspose::Words::Document doc)
virtual

Called when enumeration of the document has finished.

Parameters
docThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitDocumentStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitDocumentStart ( System::SharedPtr< Aspose::Words::Document doc)
virtual

Called when enumeration of the document has started.

Parameters
docThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitEditableRangeEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitEditableRangeEnd ( System::SharedPtr< Aspose::Words::EditableRangeEnd editableRangeEnd)
virtual

Called when an end of an editable range is encountered in the document.

Parameters
editableRangeEndThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitEditableRangeStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitEditableRangeStart ( System::SharedPtr< Aspose::Words::EditableRangeStart editableRangeStart)
virtual

Called when a start of an editable range is encountered in the document.

Parameters
editableRangeStartThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFieldEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFieldEnd ( System::SharedPtr< Aspose::Words::Fields::FieldEnd fieldEnd)
virtual

Called when a field ends in the document.

For more info see VisitFieldStart()

Parameters
fieldEndThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFieldSeparator()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFieldSeparator ( System::SharedPtr< Aspose::Words::Fields::FieldSeparator fieldSeparator)
virtual

Called when a field separator is encountered in the document.

The field separator separates field code from field value in the document. Note that some fields have only field code and do not have field separator and field value.

For more info see VisitFieldStart()

Parameters
fieldSeparatorThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFieldStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFieldStart ( System::SharedPtr< Aspose::Words::Fields::FieldStart fieldStart)
virtual

Called when a field starts in the document.

A field in a Word Word document consists of a field code and field value.

For example, a field that displays a page number can be represented as follows:

[FieldStart]PAGE[FieldSeparator]98[FieldEnd]

The field separator separates field code from field value in the document. Note that some fields have only field code and do not have field separator and field value.

Fields can be nested.

Parameters
fieldStartThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFootnoteEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFootnoteEnd ( System::SharedPtr< Aspose::Words::Footnote footnote)
virtual

Called when enumeration of a footnote or endnote text has ended.

Parameters
footnoteThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFootnoteStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFootnoteStart ( System::SharedPtr< Aspose::Words::Footnote footnote)
virtual

Called when enumeration of a footnote or endnote text has started.

Parameters
footnoteThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitFormField()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitFormField ( System::SharedPtr< Aspose::Words::Fields::FormField formField)
virtual

Called when a form field is encountered in the document.

Parameters
formFieldThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitGlossaryDocumentEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitGlossaryDocumentEnd ( System::SharedPtr< Aspose::Words::BuildingBlocks::GlossaryDocument glossary)
virtual

Called when enumeration of a glossary document has ended.

Note: A glossary document node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a glossary document, you need to call Accept().

Parameters
glossaryThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitGlossaryDocumentStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitGlossaryDocumentStart ( System::SharedPtr< Aspose::Words::BuildingBlocks::GlossaryDocument glossary)
virtual

Called when enumeration of a glossary document has started.

Note: A glossary document node and its children are not visited when you execute a Visitor over a Document. If you want to execute a Visitor over a glossary document, you need to call Accept().

Parameters
glossaryThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitGroupShapeEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitGroupShapeEnd ( System::SharedPtr< Aspose::Words::Drawing::GroupShape groupShape)
virtual

Called when enumeration of a group shape has ended.

Parameters
groupShapeThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitGroupShapeStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitGroupShapeStart ( System::SharedPtr< Aspose::Words::Drawing::GroupShape groupShape)
virtual

Called when enumeration of a group shape has started.

Parameters
groupShapeThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitHeaderFooterEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitHeaderFooterEnd ( System::SharedPtr< Aspose::Words::HeaderFooter headerFooter)
virtual

Called when enumeration of a header or footer in a section has ended.

Parameters
headerFooterThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitHeaderFooterStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitHeaderFooterStart ( System::SharedPtr< Aspose::Words::HeaderFooter headerFooter)
virtual

Called when enumeration of a header or footer in a section has started.

Parameters
headerFooterThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitOfficeMathEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitOfficeMathEnd ( System::SharedPtr< Aspose::Words::Math::OfficeMath officeMath)
virtual

Called when enumeration of a Office Math object has ended.

Parameters
officeMathThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitOfficeMathStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitOfficeMathStart ( System::SharedPtr< Aspose::Words::Math::OfficeMath officeMath)
virtual

Called when enumeration of a Office Math object has started.

Parameters
officeMathThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitParagraphEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitParagraphEnd ( System::SharedPtr< Aspose::Words::Paragraph paragraph)
virtual

Called when enumeration of a paragraph has ended.

Parameters
paragraphThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitParagraphStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitParagraphStart ( System::SharedPtr< Aspose::Words::Paragraph paragraph)
virtual

Called when enumeration of a paragraph has started.

Parameters
paragraphThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitRowEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitRowEnd ( System::SharedPtr< Aspose::Words::Tables::Row row)
virtual

Called when enumeration of a table row has ended.

Parameters
rowThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitRowStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitRowStart ( System::SharedPtr< Aspose::Words::Tables::Row row)
virtual

Called when enumeration of a table row has started.

Parameters
rowThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitRun()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitRun ( System::SharedPtr< Aspose::Words::Run run)
virtual

Called when a run of text in the is encountered.

Parameters
runThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSectionEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSectionEnd ( System::SharedPtr< Aspose::Words::Section section)
virtual

Called when enumeration of a section has ended.

Parameters
sectionThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSectionStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSectionStart ( System::SharedPtr< Aspose::Words::Section section)
virtual

Called when enumeration of a section has started.

Parameters
sectionThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitShapeEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitShapeEnd ( System::SharedPtr< Aspose::Words::Drawing::Shape shape)
virtual

Called when enumeration of a shape has ended.

Parameters
shapeThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitShapeStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitShapeStart ( System::SharedPtr< Aspose::Words::Drawing::Shape shape)
virtual

Called when enumeration of a shape has started.

Parameters
shapeThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSmartTagEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSmartTagEnd ( System::SharedPtr< Aspose::Words::Markup::SmartTag smartTag)
virtual

Called when enumeration of a smart tag has ended.

Parameters
smartTagThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSmartTagStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSmartTagStart ( System::SharedPtr< Aspose::Words::Markup::SmartTag smartTag)
virtual

Called when enumeration of a smart tag has started.

Parameters
smartTagThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSpecialChar()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSpecialChar ( System::SharedPtr< Aspose::Words::SpecialChar specialChar)
virtual

Called when a SpecialChar node is encountered in the document.

Parameters
specialCharThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitStructuredDocumentTagEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitStructuredDocumentTagEnd ( System::SharedPtr< Aspose::Words::Markup::StructuredDocumentTag sdt)
virtual

Called when enumeration of a structured document tag has ended.

Parameters
sdtThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitStructuredDocumentTagRangeEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitStructuredDocumentTagRangeEnd ( System::SharedPtr< Aspose::Words::Markup::StructuredDocumentTagRangeEnd sdtRangeEnd)
virtual

◆ VisitStructuredDocumentTagRangeStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitStructuredDocumentTagRangeStart ( System::SharedPtr< Aspose::Words::Markup::StructuredDocumentTagRangeStart sdtRangeStart)
virtual

◆ VisitStructuredDocumentTagStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitStructuredDocumentTagStart ( System::SharedPtr< Aspose::Words::Markup::StructuredDocumentTag sdt)
virtual

Called when enumeration of a structured document tag has started.

Parameters
sdtThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitSubDocument()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitSubDocument ( System::SharedPtr< Aspose::Words::SubDocument subDocument)
virtual

Called when a subDocument is encountered.

Parameters
subDocumentThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitTableEnd()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitTableEnd ( System::SharedPtr< Aspose::Words::Tables::Table table)
virtual

Called when enumeration of a table has ended.

Parameters
tableThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.

◆ VisitTableStart()

virtual Aspose::Words::VisitorAction Aspose::Words::DocumentVisitor::VisitTableStart ( System::SharedPtr< Aspose::Words::Tables::Table table)
virtual

Called when enumeration of a table has started.

Parameters
tableThe object that is being visited.
Returns
A VisitorAction value that specifies how to continue the enumeration.