OdsoFieldMapDataCollection.h
1 #pragma once
2 // Copyright (c) 2001-2020 Aspose Pty Ltd. All Rights Reserved.
3 // 03/10/2009 by Roman Korchagin
4 
5 #include <system/shared_ptr.h>
6 #include <system/collections/list.h>
7 #include <system/collections/ienumerator.h>
8 #include <system/collections/ienumerable.h>
9 
10 #include "Aspose.Words.Cpp/Model/Settings/OdsoFieldMapData.h"
11 
12 namespace Aspose { namespace Words { namespace Fields { class FormattableMergeFieldMerger; } } }
13 namespace Aspose { namespace Words { namespace Validation { class DocumentValidator; } } }
14 namespace Aspose { namespace Words { namespace RW { namespace Doc { namespace Writer { class MailMergePrWriter; } } } } }
15 
16 namespace Aspose {
17 
18 namespace Words {
19 
20 namespace Settings {
21 
22 /// <summary>
23 /// A typed collection of the <see cref="OdsoFieldMapData"/> objects.
24 /// </summary>
25 /// <remarks>
26 /// <seealso cref="OdsoFieldMapData"/>
27 /// <seealso cref="Odso.FieldMapDatas"/>
28 /// </remarks>
29 class OdsoFieldMapDataCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>>
30 {
31  typedef OdsoFieldMapDataCollection ThisType;
32  typedef System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>> BaseType;
33 
34  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36 
37  friend class Aspose::Words::Fields::FormattableMergeFieldMerger;
38  friend class Aspose::Words::Validation::DocumentValidator;
39  friend class Aspose::Words::RW::Doc::Writer::MailMergePrWriter;
40 
41 public:
42 
44 
46  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData> value);
47 
48  ASPOSE_WORDS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>>> GetEnumerator();
51  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
52 
54 
55 protected:
56 
57  static const int32_t ValidMapLength;
58 
59  void MakeValid();
60 
61  virtual ASPOSE_WORDS_SHARED_API ~OdsoFieldMapDataCollection();
62 
63  ASPOSE_WORDS_SHARED_API System::Object::shared_members_type GetSharedMembers() override;
64 
65 private:
66 
67  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapData>>> mItems;
68 
69 };
70 
71 } // namespace Settings
72 } // namespace Words
73 } // namespace Aspose
Definition: Hyphenation.h:12
Definition: Hyphenation.h:12
OdsoFieldMapDataCollection()
void idx_set(int32_t index, System::SharedPtr< Aspose::Words::Settings::OdsoFieldMapData > value)
@ InsertLineBreaks
Insert line breaks after every 76th character.
Definition: Bookmark.h:12
#define ASPOSE_WORDS_SHARED_API
Definition: aspose_words_api_defs.h:3
Definition: Document.h:165
void RemoveAt(int32_t index)
void Clear()
System::Details::SharedMembersType shared_members_type
structure to keep list of shared pointers contained in object.
Definition: object.h:68
System::SharedPtr< Aspose::Words::Settings::OdsoFieldMapData > idx_get(int32_t index)
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Aspose::Words::Settings::OdsoFieldMapData > > > GetEnumerator()
A typed collection of the OdsoFieldMapData objects.
Definition: OdsoFieldMapDataCollection.h:29
#define ASPOSE_WORDS_SHARED_RTTI_INFO_DECL()
Definition: aspose_words_api_defs.h:5
int32_t Add(System::SharedPtr< Aspose::Words::Settings::OdsoFieldMapData > value)
Definition: ienumerable.h:18
Definition: ienumerator.h:20
Specifies how a column in the external data source shall be mapped to the predefined merge fields wit...
Definition: OdsoFieldMapData.h:37
int32_t get_Count()