Aspose.Tasks for C++
VbaModule.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="VbaModule.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 
10 #include "aspose.tasks.cpp/Vba/IVbaModule.h"
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 namespace Vba
18 {
19 class VbaModuleReader;
20 } // namespace Vba
21 class VbaModuleAttributeCollection;
22 } // namespace Tasks
23 } // namespace Aspose
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 /// <summary>
30 /// Represents a VBA module.
31 /// </summary>
32 class ASPOSE_TASKS_SHARED_CLASS VbaModule : public Aspose::Tasks::IVbaModule
33 {
34  typedef VbaModule ThisType;
35  typedef Aspose::Tasks::IVbaModule BaseType;
36 
37  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
38  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
39 
40  friend class Aspose::Tasks::Vba::VbaModuleReader;
41 
42 public:
43 
44  /// <inheritdoc ></inheritdoc>
45  ASPOSE_TASKS_SHARED_API System::SharedPtr<VbaModuleAttributeCollection> get_Attributes() override;
46  /// <inheritdoc ></inheritdoc>
47  ASPOSE_TASKS_SHARED_API System::String get_Name() override;
48  /// <inheritdoc ></inheritdoc>
49  ASPOSE_TASKS_SHARED_API System::String get_SourceCode() override;
50 
51 protected:
52 
53  /// <inheritdoc ></inheritdoc>
54  ASPOSE_TASKS_SHARED_API void set_Attributes(const System::SharedPtr<VbaModuleAttributeCollection>& value);
55  /// <inheritdoc ></inheritdoc>
56  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
57  /// <inheritdoc ></inheritdoc>
58  ASPOSE_TASKS_SHARED_API void set_SourceCode(const System::String& value);
59 
60  /// <summary>
61  /// Initializes a new instance of the <see cref="VbaModule"></see> class.
62  /// </summary>
63  ASPOSE_TASKS_SHARED_API VbaModule();
64 
65  ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(VbaModule, CODEPORTING_ARGS());
66  #ifdef ASPOSE_GET_SHARED_MEMBERS
67  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
68  #endif
69 
70 
71 private:
72 
73  System::SharedPtr<VbaModuleAttributeCollection> pr_Attributes;
74  System::String pr_Name;
75  System::String pr_SourceCode;
76 
77 };
78 
79 } // namespace Tasks
80 } // namespace Aspose
81 
82 
Represents a VBA module.
Definition: VbaModule.h:32
Represents a module with VBA code.
Definition: IVbaModule.h:31