Aspose.Tasks for C++
VbaProject.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="VbaProject.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <cstdint>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace IO
18 {
19 namespace MSProject
20 {
21 class MPPWriter;
22 } // namespace MSProject
23 } // namespace IO
24 class Project;
25 namespace Util
26 {
27 template <typename, typename> class Tup2;
28 } // namespace Util
29 namespace Vba
30 {
31 class VbaModuleReader;
32 class VbaProjectFolderBuilder;
33 class VbaProjectInformationReader;
34 class VbaProjectModulesInfoReader;
35 class VbaProjectPropertiesWriter;
36 class VbaProjectReader;
37 class VbaProjectWriter;
38 class VbaUtils;
39 } // namespace Vba
40 class VbaInternalModule;
41 class VbaModuleCollection;
42 class VbaReferenceCollection;
43 } // namespace Tasks
44 } // namespace Aspose
45 namespace System
46 {
47 namespace Collections
48 {
49 namespace Generic
50 {
51 template <typename> class List;
52 } // namespace Generic
53 } // namespace Collections
54 } // namespace System
55 
56 namespace Aspose {
57 
58 namespace Tasks {
59 
60 /// <summary>
61 /// Represents <see cref="VbaProject"></see>.
62 /// </summary>
63 class ASPOSE_TASKS_SHARED_CLASS VbaProject : public System::Object
64 {
65  typedef VbaProject ThisType;
66  typedef System::Object BaseType;
67 
68  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
69  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
70 
71  friend class Aspose::Tasks::Vba::VbaProjectFolderBuilder;
72  friend class Aspose::Tasks::Vba::VbaProjectPropertiesWriter;
73  friend class Aspose::Tasks::Vba::VbaProjectWriter;
74  friend class Aspose::Tasks::Project;
75  friend class Aspose::Tasks::IO::MSProject::MPPWriter;
76  friend class Aspose::Tasks::Vba::VbaModuleReader;
77  friend class Aspose::Tasks::Vba::VbaProjectInformationReader;
78  friend class Aspose::Tasks::Vba::VbaProjectModulesInfoReader;
79  friend class Aspose::Tasks::Vba::VbaProjectReader;
80  friend class Aspose::Tasks::Vba::VbaUtils;
81 
82 public:
83 
84  /// <summary>
85  /// Gets conditional Compilation Arguments
86  /// </summary>
87  ASPOSE_TASKS_SHARED_API System::String get_CompilationArguments() const;
88  /// <summary>
89  /// Gets a project description.
90  /// </summary>
91  ASPOSE_TASKS_SHARED_API System::String get_Description() const;
92  /// <summary>
93  /// Gets a project Help Context Id
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API int32_t get_HelpContextId() const;
96  /// <summary>
97  /// Gets a help file name
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API System::String get_HelpFile() const;
100  /// <summary>
101  /// Gets a collection of <see cref="VbaModuleCollection"></see>
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API const System::SharedPtr<VbaModuleCollection>& get_Modules() const;
104  /// <summary>
105  /// Gets project name
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API System::String get_Name() const;
108  /// <summary>
109  /// Gets a collection of <see cref="VbaReferenceCollection"></see>
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API const System::SharedPtr<VbaReferenceCollection>& get_References() const;
112 
113 protected:
114 
115  /// <summary>
116  /// Gets conditional Compilation Arguments
117  /// </summary>
118  ASPOSE_TASKS_SHARED_API void set_CompilationArguments(const System::String& value);
119  /// <summary>
120  /// Gets a project description.
121  /// </summary>
122  ASPOSE_TASKS_SHARED_API void set_Description(const System::String& value);
123  /// <summary>
124  /// Gets a project Help Context Id
125  /// </summary>
126  ASPOSE_TASKS_SHARED_API void set_HelpContextId(int32_t value);
127  /// <summary>
128  /// Gets project name
129  /// </summary>
130  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
131  ASPOSE_TASKS_SHARED_API int32_t get_CodePage() const;
132  ASPOSE_TASKS_SHARED_API void set_CodePage(int32_t value);
133  ASPOSE_TASKS_SHARED_API System::String get_ConstantsUnicode() const;
134  ASPOSE_TASKS_SHARED_API void set_ConstantsUnicode(const System::String& value);
135  ASPOSE_TASKS_SHARED_API System::String get_DescriptionUnicode() const;
136  ASPOSE_TASKS_SHARED_API void set_DescriptionUnicode(const System::String& value);
137  ASPOSE_TASKS_SHARED_API System::String get_HelpFile1();
138  ASPOSE_TASKS_SHARED_API void set_HelpFile1(const System::String& value);
139  ASPOSE_TASKS_SHARED_API System::String get_HelpFile2() const;
140  ASPOSE_TASKS_SHARED_API void set_HelpFile2(const System::String& value);
141  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<VbaInternalModule>>>& get_InternalModules() const;
142  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Util::Tup2<System::String, System::String>>>>& get_Properties() const;
143  ASPOSE_TASKS_SHARED_API void set_Properties(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Util::Tup2<System::String, System::String>>>>& value);
144  ASPOSE_TASKS_SHARED_API int32_t get_ModulesCount() const;
145  ASPOSE_TASKS_SHARED_API void set_ModulesCount(int32_t value);
146  ASPOSE_TASKS_SHARED_API int32_t get_VersionMajor() const;
147  ASPOSE_TASKS_SHARED_API void set_VersionMajor(int32_t value);
148  ASPOSE_TASKS_SHARED_API int32_t get_VersionMinor() const;
149  ASPOSE_TASKS_SHARED_API void set_VersionMinor(int32_t value);
150  ASPOSE_TASKS_SHARED_API bool get_HasAddedModules();
151 
152  ASPOSE_TASKS_SHARED_API VbaProject();
153 
154  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(VbaProject, CODEPORTING_ARGS());
155  ASPOSE_TASKS_SHARED_API void RemoveProperty(const System::String& key, const System::String& value);
156  #ifdef ASPOSE_GET_SHARED_MEMBERS
157  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
158  #endif
159 
160 
161 private:
162 
163  System::String pr_CompilationArguments;
164  System::String pr_Description;
165  int32_t pr_HelpContextId;
166  System::String pr_HelpFile;
167 
168  /// <summary>
169  /// Gets a help file name
170  /// </summary>
171  ASPOSE_TASKS_SHARED_API void set_HelpFile(const System::String& value);
172 
173  System::SharedPtr<VbaModuleCollection> pr_Modules;
174 
175  /// <summary>
176  /// Gets a collection of <see cref="VbaModuleCollection"></see>
177  /// </summary>
178  ASPOSE_TASKS_SHARED_API void set_Modules(const System::SharedPtr<VbaModuleCollection>& value);
179 
180  System::String pr_Name;
181  System::SharedPtr<VbaReferenceCollection> pr_References;
182 
183  /// <summary>
184  /// Gets a collection of <see cref="VbaReferenceCollection"></see>
185  /// </summary>
186  ASPOSE_TASKS_SHARED_API void set_References(const System::SharedPtr<VbaReferenceCollection>& value);
187 
188  int32_t pr_CodePage;
189  System::String pr_ConstantsUnicode;
190  System::String pr_DescriptionUnicode;
191  System::String pr_HelpFile2;
192  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<VbaInternalModule>>> pr_InternalModules;
193 
194  ASPOSE_TASKS_SHARED_API void set_InternalModules(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<VbaInternalModule>>>& value);
195 
196  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Util::Tup2<System::String, System::String>>>> pr_Properties;
197  int32_t pr_ModulesCount;
198  int32_t pr_VersionMajor;
199  int32_t pr_VersionMinor;
200 
201 };
202 
203 } // namespace Tasks
204 } // namespace Aspose
205 
206 
Definition: Asn.h:12
Represents a project.
Definition: Project.h:550
Represents VbaProject.
Definition: VbaProject.h:63