search/mag_sel search/close
OdsoFieldMapDataCollection.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 <system/collections/list.h>
13 #include <system/collections/ienumerable.h>
14 #include <cstdint>
15 
16 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
17 
18 namespace System { namespace Collections { namespace Generic { template <typename> class IEnumerator; } } }
19 namespace Aspose { namespace Words { namespace Settings { class OdsoFieldMapData; } } }
20 namespace Aspose { namespace Words { namespace Fields { class FormattableMergeFieldMerger; } } }
21 namespace Aspose { namespace Words { namespace Validation { class DocumentValidator; } } }
22 namespace Aspose { namespace Words { namespace RW { namespace Doc { namespace Writer { class MailMergePrWriter; } } } } }
23 
24 namespace Aspose {
25 
26 namespace Words {
27 
28 namespace Settings {
29 
34 class ASPOSE_WORDS_SHARED_CLASS OdsoFieldMapDataCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>>
35 {
38 
39  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
41 
42  friend class Aspose::Words::Fields::FormattableMergeFieldMerger;
43  friend class Aspose::Words::Validation::DocumentValidator;
44  friend class Aspose::Words::RW::Doc::Writer::MailMergePrWriter;
45 
46 public:
47 
49 
51 
53 
54 public:
55 
57  ASPOSE_WORDS_SHARED_API int32_t get_Count();
58 
61 
63  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData> value);
64 
67 
71  ASPOSE_WORDS_SHARED_API int32_t Add(System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData> value);
72 
74  ASPOSE_WORDS_SHARED_API void Clear();
75 
79  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
80 
81  ASPOSE_WORDS_SHARED_API OdsoFieldMapDataCollection();
82 
83  ASPOSE_WORDS_SHARED_API iterator begin() noexcept;
84 
85  ASPOSE_WORDS_SHARED_API iterator end() noexcept;
86 
87  ASPOSE_WORDS_SHARED_API const_iterator begin() const noexcept;
88 
89  ASPOSE_WORDS_SHARED_API const_iterator end() const noexcept;
90 
91  ASPOSE_WORDS_SHARED_API const_iterator cbegin() const noexcept;
92 
93  ASPOSE_WORDS_SHARED_API const_iterator cend() const noexcept;
94 
95 protected:
96 
97  static const int32_t ValidMapLength;
98 
99  void MakeValid();
100 
101  virtual ASPOSE_WORDS_SHARED_API ~OdsoFieldMapDataCollection();
102 
103 private:
104 
105  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>>> mItems;
106 
107 };
108 
109 }
110 }
111 }