FieldTC.h
1 // Copyright 2001-2022 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 <cstdint>
12 
13 #include <Aspose.Words.Cpp/Fields/ITocEntry.h>
14 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
15 #include <Aspose.Words.Cpp/Fields/Field.h>
16 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
17 
18 namespace Aspose
19 {
20 
21 namespace Words
22 {
23 namespace Fields
24 {
25 
26 class FieldEnd;
27 class FieldSeparator;
28 class FieldStart;
29 enum class FieldSwitchType;
30 
31 }
32 class Node;
33 class NodeRange;
34 class Paragraph;
35 }
36 }
37 namespace System
38 {
39 class String;
40 }
41 
42 namespace Aspose {
43 
44 namespace Words {
45 
46 namespace Fields {
47 
97 class ASPOSE_WORDS_SHARED_CLASS FieldTC final : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider, public Aspose::Words::Fields::ITocEntry
98 {
99  typedef FieldTC ThisType;
101  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
102  typedef Aspose::Words::Fields::ITocEntry BaseType2;
103 
104  typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2> ThisTypeBaseTypesInfo;
105  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
106 
107 public:
108 
158  ASPOSE_WORDS_SHARED_API System::String get_Text();
159 
161  ASPOSE_WORDS_SHARED_API void set_Text(const System::String& value);
162 
212  ASPOSE_WORDS_SHARED_API System::String get_TypeIdentifier();
213 
215  ASPOSE_WORDS_SHARED_API void set_TypeIdentifier(const System::String& value);
216 
266  ASPOSE_WORDS_SHARED_API System::String get_EntryLevel();
267 
269  ASPOSE_WORDS_SHARED_API void set_EntryLevel(const System::String& value);
270 
320  ASPOSE_WORDS_SHARED_API bool get_OmitPageNumber() override;
321 
323  ASPOSE_WORDS_SHARED_API void set_OmitPageNumber(bool value);
324 
325  ASPOSE_WORDS_SHARED_API FieldTC();
326 
327 protected:
328 
330 
331 private:
332 
334 
335  System::SharedPtr<Aspose::Words::Paragraph> get_Paragraph() override;
336  int32_t get_Level() override;
337  bool get_IsInFieldCode() override;
338  bool get_HasBookmark() override;
339 
340  __TypeStub<4,4,4,4>::type mField1;
341  __TypeStub<1,1,1,1>::type mField2;
342 
343  Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String ) override;
345  System::String GetDocumentOutlineTitle() override;
346  System::SharedPtr<Aspose::Words::NodeRange> GetLabelRange() override;
347  int32_t GetSequenceValue(System::String ) override;
348  int32_t GetPageNumber() override;
349 
350 };
351 
352 }
353 }
354 }