search/mag_sel search/close
FieldDocVariable.h
1 // Copyright 2001-2021 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 <system/shared_ptr.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/Fields/Field.h>
15 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
16 
17 namespace System { class String; }
18 namespace Aspose { namespace Words { namespace Fields { class FieldUpdateAction; } } }
19 namespace Aspose { namespace Words { class VariableCollection; } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Fields {
26 
63 class ASPOSE_WORDS_SHARED_CLASS FieldDocVariable : public Aspose::Words::Fields::Field
64 {
65  typedef FieldDocVariable ThisType;
67 
68  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
69  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
70 
71 public:
72 
109  ASPOSE_WORDS_SHARED_API System::String get_VariableName();
110 
112  ASPOSE_WORDS_SHARED_API void set_VariableName(System::String value);
113 
114 protected:
115 
116  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Fields::FieldUpdateAction> UpdateCore() override;
117 
118  virtual ASPOSE_WORDS_SHARED_API ~FieldDocVariable();
119 
120 private:
121 
122  static const int32_t VariableNameArgumentIndex;
123 
124  static bool IsAnyNotEmpty(System::SharedPtr<Aspose::Words::VariableCollection> variables);
125 
126 };
127 
128 }
129 }
130 }