FieldSeparator.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/Nodes/NodeType.h"
12 #include "Aspose.Words.Cpp/Model/Fields/Nodes/FieldChar.h"
13 
14 namespace Aspose { namespace Words { namespace RW { namespace Nrx { namespace Reader { class NrxFldCharReaderBase; } } } } }
15 namespace Aspose { namespace Words { namespace Fields { class FieldAppender; } } }
16 namespace Aspose { namespace Words { namespace Fields { class FieldEndFieldBuildingBlock; } } }
17 namespace Aspose { namespace Words { namespace Fields { class Field; } } }
18 namespace Aspose { namespace Words { class ShapeFieldRemover; } }
19 namespace Aspose { namespace Words { namespace Validation { class DocumentValidator; } } }
20 namespace Aspose { namespace Words { namespace Validation { class RubyConverter; } } }
21 namespace Aspose { namespace Words { namespace RW { namespace Nrx { namespace Reader { class NrxFldSimpleReader; } } } } }
22 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Writer { class DocxDocumentWriterBase; } } } } }
23 namespace Aspose { namespace Words { namespace RW { class MiscRwUtil; } } }
24 namespace Aspose { namespace Words { namespace RW { namespace Odt { namespace Reader { class OdtParagraphReader; } } } } }
25 namespace Aspose { namespace Words { namespace RW { namespace Odt { namespace Reader { class OdtFieldReader; } } } } }
26 namespace Aspose { namespace Words { namespace RW { namespace Wml { namespace Reader { class WmlHyperlinkReader; } } } } }
27 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Reader { class DocxHyperlinkReader; } } } } }
28 namespace Aspose { namespace Words { namespace RW { namespace Doc { namespace Reader { class ModelBuilder; } } } } }
29 namespace Aspose { namespace Words { namespace RW { namespace Doc { namespace Writer { class DocWriter; } } } } }
30 namespace Aspose { namespace Words { namespace RW { namespace Rtf { namespace Reader { class RtfModelBuilder; } } } } }
31 namespace Aspose { namespace Words { namespace RW { namespace Rtf { namespace Writer { class RtfWriter; } } } } }
32 namespace Aspose { namespace Words { namespace Drawing { namespace Core { class OleObject; } } } }
33 namespace Aspose { namespace Words { class DocumentBase; } }
34 namespace Aspose { namespace Words { class RunPr; } }
35 namespace Aspose { namespace Words { namespace Fields { enum class FieldType; } } }
36 namespace Aspose { namespace Words { class DocumentVisitor; } }
37 
38 namespace Aspose {
39 
40 namespace Words {
41 
42 namespace Fields {
43 
57 class ASPOSE_WORDS_SHARED_CLASS FieldSeparator : public Aspose::Words::Fields::FieldChar
58 {
59  typedef FieldSeparator ThisType;
61 
62  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
63  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
64 
65  FRIEND_FUNCTION_System_MakeObject;
66  friend class Aspose::Words::RW::Nrx::Reader::NrxFldCharReaderBase;
67  friend class Aspose::Words::Fields::FieldAppender;
68  friend class Aspose::Words::Fields::FieldEndFieldBuildingBlock;
69  friend class Aspose::Words::Fields::Field;
70  friend class Aspose::Words::ShapeFieldRemover;
71  friend class Aspose::Words::Validation::DocumentValidator;
72  friend class Aspose::Words::Validation::RubyConverter;
73  friend class Aspose::Words::RW::Nrx::Reader::NrxFldSimpleReader;
74  friend class Aspose::Words::RW::Docx::Writer::DocxDocumentWriterBase;
75  friend class Aspose::Words::RW::MiscRwUtil;
76  friend class Aspose::Words::RW::Odt::Reader::OdtParagraphReader;
77  friend class Aspose::Words::RW::Odt::Reader::OdtFieldReader;
78  friend class Aspose::Words::RW::Wml::Reader::WmlHyperlinkReader;
79  friend class Aspose::Words::RW::Docx::Reader::DocxHyperlinkReader;
80  friend class Aspose::Words::RW::Doc::Reader::ModelBuilder;
81  friend class Aspose::Words::RW::Doc::Writer::DocWriter;
82  friend class Aspose::Words::RW::Rtf::Reader::RtfModelBuilder;
83  friend class Aspose::Words::RW::Rtf::Writer::RtfWriter;
84 
85 public:
86 
88  ASPOSE_WORDS_SHARED_API Aspose::Words::NodeType get_NodeType() const override;
89 
99  ASPOSE_WORDS_SHARED_API bool Accept(System::SharedPtr<Aspose::Words::DocumentVisitor> visitor) override;
100 
101 protected:
102 
104 
107 
108  virtual ASPOSE_WORDS_SHARED_API ~FieldSeparator();
109 
110  ASPOSE_WORDS_SHARED_API System::Object::shared_members_type GetSharedMembers() override;
111 
112 private:
113 
115 
116  ThisType* CppMemberwiseClone() const override { return new ThisType(*this); }
117 
118 };
119 
120 }
121 }
122 }
@ Doc
Microsoft Word 95 or Word 97 - 2003 Document.
System::Details::SharedMembersType shared_members_type
@ Odt
ODF Text Document.
@ Nrx
Common modules that are shared between DOCX/WML reader/writer modules.
Base class for special characters in the document.
Definition: SpecialChar.h:46
@ Rtf
RTF format.
@ OleObject
The shape is an OLE object. You cannot create shapes of this type in the document.
@ Field
@ Words
Base class for nodes that represent field characters in a document.
Definition: FieldChar.h:112
bool Accept(System::SharedPtr< Aspose::Words::DocumentVisitor > visitor) override
Accepts a visitor.
Represents a Microsoft Word document field.
Definition: Field.h:169
FieldType
Specifies Microsoft Word field types.
Definition: FieldType.h:78
@ Docx
Office Open XML WordprocessingML Document (macro-free).
NodeType
Specifies the type of a Word document node.
Definition: NodeType.h:45
Represents a Word field separator that separates the field code from the field result.
Definition: FieldSeparator.h:58
Aspose::Words::NodeType get_NodeType() const override
Returns FieldSeparator.