search/mag_sel search/close
FieldBarcode.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/string.h>
12 #include <cstdint>
13 
14 #include <Aspose.Words.Cpp/Fields/FieldSwitchType.h>
15 #include <Aspose.Words.Cpp/Fields/IFieldCodeTokenInfoProvider.h>
16 #include <Aspose.Words.Cpp/Fields/Field.h>
17 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
18 
19 namespace Aspose { namespace Words { namespace Fields { class FieldBarcodeUtil; } } }
20 namespace Aspose { namespace Words { namespace Fields { class BarcodeParameters; } } }
21 namespace Aspose { namespace Words { class NodeRange; } }
22 
23 namespace Aspose {
24 
25 namespace Words {
26 
27 namespace Fields {
28 
69 class ASPOSE_WORDS_SHARED_CLASS FieldBarcode : public Aspose::Words::Fields::Field, public Aspose::Words::Fields::IFieldCodeTokenInfoProvider
70 {
71  typedef FieldBarcode ThisType;
73  typedef Aspose::Words::Fields::IFieldCodeTokenInfoProvider BaseType1;
74 
75  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
76  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
77 
78  friend class Aspose::Words::Fields::FieldBarcodeUtil;
79 
80 public:
81 
122  ASPOSE_WORDS_SHARED_API System::String get_PostalAddress();
123 
125  ASPOSE_WORDS_SHARED_API void set_PostalAddress(System::String value);
126 
167  ASPOSE_WORDS_SHARED_API bool get_IsBookmark();
168 
170  ASPOSE_WORDS_SHARED_API void set_IsBookmark(bool value);
171 
212  ASPOSE_WORDS_SHARED_API System::String get_FacingIdentificationMark();
213 
215  ASPOSE_WORDS_SHARED_API void set_FacingIdentificationMark(System::String value);
216 
257  ASPOSE_WORDS_SHARED_API bool get_IsUSPostalAddress();
258 
260  ASPOSE_WORDS_SHARED_API void set_IsUSPostalAddress(bool value);
261 
262  ASPOSE_WORDS_SHARED_API Aspose::Words::Fields::FieldSwitchType GetSwitchType(System::String switchName) override;
263 
264 protected:
265 
266  void SetBarcodeParameters(System::SharedPtr<Aspose::Words::Fields::BarcodeParameters> pars);
267  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::NodeRange> GetFakeResult() override;
268 
269  virtual ASPOSE_WORDS_SHARED_API ~FieldBarcode();
270 
271 private:
272 
273  static const int32_t PostalAddressArgumentIndex;
274 
275  static const System::String& IsBookmarkSwitch();
276  static const System::String& FacingIdentificationMarkSwitch();
277  static const System::String& IsUSPostalAddressSwitch();
278 
279 };
280 
281 }
282 }
283 }