search/mag_sel search/close
FieldAddressBlock.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/array.h>
12 #include <mutex>
13 #include <memory>
14 
15 #include <Aspose.Words.Cpp/Fields/FieldSwitchType.h>
16 #include <Aspose.Words.Cpp/Fields/IFormattableMergeField.h>
17 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
18 #include <Aspose.Words.Cpp/Fields/Field.h>
19 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
20 
21 namespace Aspose { namespace Collections { template <typename> class StringToObjDictionary; } }
22 namespace Aspose { namespace Words { namespace Fields { class FieldUpdateAction; } } }
23 namespace Aspose { namespace Words { class Document; } }
24 namespace Aspose { namespace Words { namespace Fields { class IMergeFormatContext; } } }
25 namespace Aspose { namespace Words { namespace Fields { class MergeFormatPlaceholder; } } }
26 
27 namespace Aspose {
28 
29 namespace Words {
30 
31 namespace Fields {
32 
47 class ASPOSE_WORDS_SHARED_CLASS FieldAddressBlock : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider, public Aspose::Words::Fields::IFormattableMergeField
48 {
51  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
52  typedef Aspose::Words::Fields::IFormattableMergeField BaseType2;
53 
54  typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2> ThisTypeBaseTypesInfo;
55  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
56 
57 public:
58 
88  ASPOSE_WORDS_SHARED_API bool get_FormatAddressOnCountryOrRegion();
89 
91  ASPOSE_WORDS_SHARED_API void set_FormatAddressOnCountryOrRegion(bool value);
92 
122 
124  ASPOSE_WORDS_SHARED_API void set_IncludeCountryOrRegionName(System::String value);
125 
155 
157  ASPOSE_WORDS_SHARED_API void set_ExcludedCountryOrRegionName(System::String value);
158 
187  ASPOSE_WORDS_SHARED_API System::String get_NameAndAddressFormat();
188 
190  ASPOSE_WORDS_SHARED_API void set_NameAndAddressFormat(System::String value);
191 
220  ASPOSE_WORDS_SHARED_API System::String get_LanguageId();
221 
223  ASPOSE_WORDS_SHARED_API void set_LanguageId(System::String value);
224  ASPOSE_WORDS_SHARED_API System::String get_MergeFormat() override;
226 
241  ASPOSE_WORDS_SHARED_API System::ArrayPtr<System::String> GetFieldNames() override;
242  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
245 
246  ASPOSE_WORDS_SHARED_API FieldAddressBlock();
247 
248 protected:
249 
250  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Fields::FieldUpdateAction> UpdateCore() override;
251 
252  virtual ASPOSE_WORDS_SHARED_API ~FieldAddressBlock();
253 
254 private:
255 
256  static const System::String& FormatAddressOnCountryOrRegionSwitch();
257  static const System::String& IncludeCountryOrRegionNameSwitch();
258  static const System::String& ExcludedCountryOrRegionNameSwitch();
259  static const System::String& NameAndAddressFormatSwitch();
260  static const System::String& LanguageIdSwitch();
262 
263  static void __StaticConstructor__();
264 
265 };
266 
267 }
268 }
269 }