SpecialChar.h
1 // Copyright 2001-2020 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include "Aspose.Words.Cpp/Model/Text/Inline.h"
12 
13 namespace Aspose { namespace Words { class PageExtractor; } }
14 namespace Aspose { namespace Words { namespace RW { namespace Nrx { namespace Reader { class NrxRunReaderBase; } } } } }
15 namespace Aspose { namespace Words { namespace Layout { namespace Core { class DocumentLayout; } } } }
16 namespace Aspose { namespace Words { class AbsolutePositionTab; } }
17 namespace Aspose { namespace Words { namespace Fields { class FormField; } } }
18 namespace Aspose { namespace Words { namespace Fields { class FieldChar; } } }
19 namespace Aspose { namespace Words { class DocumentBuilder; } }
20 namespace Aspose { namespace Words { class Comment; } }
21 namespace Aspose { namespace Words { namespace RW { namespace Odt { namespace Reader { class OdtParagraphReader; } } } } }
22 namespace Aspose { namespace Words { namespace RW { namespace Doc { namespace Reader { class ModelBuilder; } } } } }
23 namespace Aspose { namespace Words { namespace RW { namespace Html { namespace Reader { class HtmlReader; } } } } }
24 namespace Aspose { namespace Words { namespace RW { namespace Rtf { namespace Reader { class RtfModelBuilder; } } } } }
25 namespace Aspose { namespace Words { class DocumentBase; } }
26 namespace Aspose { namespace Words { class RunPr; } }
27 namespace Aspose { namespace Words { class DocumentVisitor; } }
28 
29 namespace Aspose {
30 
31 namespace Words {
32 
45 class ASPOSE_WORDS_SHARED_CLASS SpecialChar : public Aspose::Words::Inline
46 {
47  typedef SpecialChar ThisType;
49 
50  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
51  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
52 
53  FRIEND_FUNCTION_System_MakeObject;
54  friend class Aspose::Words::PageExtractor;
55  friend class Aspose::Words::RW::Nrx::Reader::NrxRunReaderBase;
56  friend class Aspose::Words::Layout::Core::DocumentLayout;
60  friend class Aspose::Words::DocumentBuilder;
61  friend class Aspose::Words::Comment;
62  friend class Aspose::Words::RW::Odt::Reader::OdtParagraphReader;
63  friend class Aspose::Words::RW::Doc::Reader::ModelBuilder;
64  friend class Aspose::Words::RW::Html::Reader::HtmlReader;
65  friend class Aspose::Words::RW::Rtf::Reader::RtfModelBuilder;
66 
67 public:
68 
70  ASPOSE_WORDS_SHARED_API Aspose::Words::NodeType get_NodeType() const override;
71 
81  ASPOSE_WORDS_SHARED_API bool Accept(System::SharedPtr<Aspose::Words::DocumentVisitor> visitor) override;
85  ASPOSE_WORDS_SHARED_API System::String GetText() override;
86 
87 protected:
88 
90 
91  virtual ASPOSE_WORDS_SHARED_API ~SpecialChar();
92 
93 private:
94 
95  System::String mText;
96 
97  ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
98 
99 };
100 
101 }
102 }
@ Doc
Microsoft Word 95 or Word 97 - 2003 Document.
@ Odt
ODF Text Document.
@ Html
Base class for all nodes of a Word document.
Definition: Node.h:287
@ Nrx
Common modules that are shared between DOCX/WML reader/writer modules.
@ Comment
Base class for special characters in the document.
Definition: SpecialChar.h:46
@ Rtf
RTF format.
@ Words
Base class for nodes that represent field characters in a document.
Definition: FieldChar.h:112
An absolute position tab is a character which is used to advance the position on the current line of ...
Definition: AbsolutePositionTab.h:40
Provides methods to insert text, images and other content, specify font, paragraph and section format...
Definition: DocumentBuilder.h:257
NodeType
Specifies the type of a Word document node.
Definition: NodeType.h:45
Base class for inline-level nodes that can have character formatting associated with them,...
Definition: Inline.h:167
@ FormField
@ Layout
Module that builds a document layout.
System::String GetText() override
Gets the special character that this node represents.
Represents a single form field.
Definition: FormField.h:94
Aspose::Words::NodeType get_NodeType() const override
Returns NodeType.SpecialChar.
Represents a container for text of a comment.
Definition: Comment.h:102
bool Accept(System::SharedPtr< Aspose::Words::DocumentVisitor > visitor) override
Accepts a visitor.