Aspose.Tasks for C++
PageInfo.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PageInfo.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/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 namespace IO
17 {
18 namespace MSProject
19 {
20 class MPPViewReader;
21 } // namespace MSProject
22 } // namespace IO
23 namespace Visualization
24 {
25 class HeaderFooterInfo;
26 class PageLegend;
27 class PageMargins;
28 class PageSettings;
29 class PageViewSettings;
30 } // namespace Visualization
31 } // namespace Tasks
32 } // namespace Aspose
33 
34 namespace Aspose {
35 
36 namespace Tasks {
37 
38 namespace Visualization {
39 
40 /// <summary>
41 /// Represents page setup data which is present in MPP file format and used for printing.
42 /// </summary>
43 class ASPOSE_TASKS_SHARED_CLASS PageInfo : public System::Object
44 {
45  typedef PageInfo ThisType;
46  typedef System::Object BaseType;
47 
48  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
49  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
50 
51  friend class Aspose::Tasks::IO::MSProject::MPPViewReader;
52 
53 public:
54 
55  /// <summary>
56  /// Gets the instance of the <see cref="HeaderFooterInfo"></see> class which represents a header data.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API const System::SharedPtr<HeaderFooterInfo>& get_Header() const;
59  /// <summary>
60  /// Sets the instance of the <see cref="HeaderFooterInfo"></see> class which represents a header data.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API void set_Header(const System::SharedPtr<HeaderFooterInfo>& value);
63  /// <summary>
64  /// Gets an instance of the <see cref="HeaderFooterInfo"></see> class which represents a footer data.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API const System::SharedPtr<HeaderFooterInfo>& get_Footer() const;
67  /// <summary>
68  /// Sets an instance of the <see cref="HeaderFooterInfo"></see> class which represents a footer data.
69  /// </summary>
70  ASPOSE_TASKS_SHARED_API void set_Footer(const System::SharedPtr<HeaderFooterInfo>& value);
71  /// <summary>
72  /// Gets the name of the view for which set-up data is used.
73  /// </summary>
74  ASPOSE_TASKS_SHARED_API System::String get_Name() const;
75  /// <summary>
76  /// Gets an instance of the <see cref="PageSettings"></see> class which specifies page printing settings.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Tasks::Visualization::PageSettings> get_PageSettings() const;
79  /// <summary>
80  /// Gets an instance of the <see cref="PageViewSettings"></see> class which specifies page view printing settings.
81  /// </summary>
82  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Tasks::Visualization::PageViewSettings> get_PageViewSettings() const;
83  /// <summary>
84  /// Gets an instance of the <see cref="PageMargins"></see> class which specifies page margins.
85  /// </summary>
86  ASPOSE_TASKS_SHARED_API System::SharedPtr<PageMargins> get_Margins() const;
87  /// <summary>
88  /// Gets an instance of the <see cref="PageLegend"></see> class which specifies rendering options of page legend.
89  /// </summary>
90  /// <remarks>Currently is applicable only to Gantt Chart views.</remarks>
91  ASPOSE_TASKS_SHARED_API const System::SharedPtr<PageLegend>& get_Legend() const;
92  /// <summary>
93  /// Sets an instance of the <see cref="PageLegend"></see> class which specifies rendering options of page legend.
94  /// </summary>
95  /// <remarks>Currently is applicable only to Gantt Chart views.</remarks>
96  ASPOSE_TASKS_SHARED_API void set_Legend(const System::SharedPtr<PageLegend>& value);
97 
98  /// <summary>
99  /// Initializes a new instance of the <see cref="PageInfo"></see> class.
100  /// Represents page setup data which is present in MPP file format and used for printing.
101  /// </summary>
102  ASPOSE_TASKS_SHARED_API PageInfo();
103 
104 protected:
105 
106  /// <summary>
107  /// Gets the name of the view for which set-up data is used.
108  /// </summary>
109  ASPOSE_TASKS_SHARED_API void set_Name(const System::String& value);
110 
111  #ifdef ASPOSE_GET_SHARED_MEMBERS
112  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
113  #endif
114 
115 
116 private:
117 
118  System::SharedPtr<PageMargins> margins;
119  System::SharedPtr<Aspose::Tasks::Visualization::PageSettings> pageSettings;
120  System::SharedPtr<Aspose::Tasks::Visualization::PageViewSettings> pageViewSettings;
121  System::SharedPtr<HeaderFooterInfo> pr_Header;
122  System::SharedPtr<HeaderFooterInfo> pr_Footer;
123  System::String pr_Name;
124  System::SharedPtr<PageLegend> pr_Legend;
125 
126 };
127 
128 } // namespace Visualization
129 } // namespace Tasks
130 } // namespace Aspose
131 
132 
Represents page setup data which is present in MPP file format and used for printing.
Definition: PageInfo.h:44
void set_Footer(const System::SharedPtr< HeaderFooterInfo > &value)
Sets an instance of the HeaderFooterInfo class which represents a footer data.
const System::SharedPtr< PageLegend > & get_Legend() const
Gets an instance of the PageLegend class which specifies rendering options of page legend.
System::String get_Name() const
Gets the name of the view for which set-up data is used.
void set_Header(const System::SharedPtr< HeaderFooterInfo > &value)
Sets the instance of the HeaderFooterInfo class which represents a header data.
void set_Legend(const System::SharedPtr< PageLegend > &value)
Sets an instance of the PageLegend class which specifies rendering options of page legend.
System::SharedPtr< PageMargins > get_Margins() const
Gets an instance of the PageMargins class which specifies page margins.
const System::SharedPtr< HeaderFooterInfo > & get_Footer() const
Gets an instance of the HeaderFooterInfo class which represents a footer data.
const System::SharedPtr< HeaderFooterInfo > & get_Header() const
Gets the instance of the HeaderFooterInfo class which represents a header data.
System::SharedPtr< Aspose::Tasks::Visualization::PageViewSettings > get_PageViewSettings() const
Gets an instance of the PageViewSettings class which specifies page view printing settings.
System::SharedPtr< Aspose::Tasks::Visualization::PageSettings > get_PageSettings() const
Gets an instance of the PageSettings class which specifies page printing settings.
PageInfo()
Initializes a new instance of the PageInfo class. Represents page setup data which is present in MPP ...
Definition: Asn.h:13