8 #include <system/collections/ilist.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
22 class MppOleObjectWriter;
27 class MppVisualObjectPlacementWriter;
41 template <
typename>
class IEnumerable;
42 template <
typename>
class IEnumerator;
43 template <
typename>
class List;
55 class ASPOSE_TASKS_SHARED_CLASS
OleObjectCollection final :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::OleObject>>
58 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::OleObject>> BaseType;
60 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
61 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
63 friend class Aspose::Tasks::IO::MSProject::Writers::MppVisualObjectPlacementWriter;
65 friend class Aspose::Tasks::IO::MSProject::MppOleObjectWriter;
66 friend class Aspose::Tasks::IO::MSProject::MPPReader;
67 friend class Aspose::Tasks::IO::MSProject::MPPWriter;
75 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<OleObject>>> GetEnumerator()
override;
80 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<OleObject>>> ToList();
92 ASPOSE_TASKS_SHARED_API
void Clear()
override;
96 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& get_RemovedObjects()
const;
97 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& get_AddedObjects()
const;
101 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OleObjectCollection, CODEPORTING_ARGS());
103 ASPOSE_TASKS_SHARED_API OleObjectCollection(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& objects);
105 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(OleObjectCollection, CODEPORTING_ARGS(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& objects));
106 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<OleObject>>>& list);
107 ASPOSE_TASKS_SHARED_API System::SharedPtr<OleObject> GetById(int32_t oleObjectId);
109 virtual ASPOSE_TASKS_SHARED_API ~OleObjectCollection();
111 #ifdef ASPOSE_GET_SHARED_MEMBERS
112 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
118 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>> oleObjects;
120 int32_t get_Count()
const override;
121 bool get_IsReadOnly()
const override;
123 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>> pr_RemovedObjects;
125 ASPOSE_TASKS_SHARED_API
void set_RemovedObjects(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& value);
127 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>> pr_AddedObjects;
129 ASPOSE_TASKS_SHARED_API
void set_AddedObjects(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<OleObject>>>& value);
131 System::SharedPtr<OleObject> idx_get(int32_t index)
const override;
132 void idx_set(int32_t index, System::SharedPtr<OleObject> value)
override;
134 bool Contains(
const System::SharedPtr<OleObject>& item)
const override;
135 void CopyTo(System::ArrayPtr<System::SharedPtr<OleObject>> array, int32_t arrayIndex)
override;
136 bool Remove(
const System::SharedPtr<OleObject>& item)
override;
137 void Add(
const System::SharedPtr<OleObject>& item)
override;
138 int32_t IndexOf(
const System::SharedPtr<OleObject>& item)
const override;
139 void Insert(int32_t index,
const System::SharedPtr<OleObject>& item)
override;
140 void RemoveAt(int32_t index)
override;
Represents a project.
Definition: Project.h:551
Represents a collection containing the instances of the OleObject class.
Definition: OleObjectCollection.h:55