Aspose.Tasks for C++
XlsxOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="XlsxOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include "aspose.tasks.cpp/Saving/SimpleSaveOptions.h"
9 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Tasks
14 {
15 class IWriter;
16 namespace Visualization
17 {
18 class ProjectView;
19 } // namespace Visualization
20 } // namespace Tasks
21 } // namespace Aspose
22 namespace System
23 {
24 namespace Text
25 {
26 class Encoding;
27 } // namespace Text
28 } // namespace System
29 
30 namespace Aspose {
31 
32 namespace Tasks {
33 
34 namespace Saving {
35 
36 /// <summary>
37 /// Allows to specify additional options when rendering project pages to XLSX.
38 /// </summary>
39 class ASPOSE_TASKS_SHARED_CLASS XlsxOptions : public Aspose::Tasks::Saving::SimpleSaveOptions
40 {
41  typedef XlsxOptions ThisType;
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 
47 public:
48 
49  /// <summary>
50  /// Gets a list of the resource view columns to render (<see cref="ResourceViewColumn"></see>).
51  /// </summary>
52  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& get_ResourceView() const;
53  /// <summary>
54  /// Sets a list of the resource view columns to render (<see cref="ResourceViewColumn"></see>).
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API void set_ResourceView(const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& value);
57  /// <summary>
58  /// Gets a list of the assignments view columns to render (<see cref="AssignmentViewColumn"></see>).
59  /// </summary>
60  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& get_AssignmentView() const;
61  /// <summary>
62  /// Sets a list of the assignments view columns to render (<see cref="AssignmentViewColumn"></see>).
63  /// </summary>
64  ASPOSE_TASKS_SHARED_API void set_AssignmentView(const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& value);
65  /// <summary>
66  /// Gets the encoding of the resulting XLSX file. The default value is <see cref="System::Text::Encoding::UTF8"></see>.
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Text::Encoding>& get_Encoding() const;
69  /// <summary>
70  /// Sets the encoding of the resulting XLSX file. The default value is <see cref="System::Text::Encoding::UTF8"></see>.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API void set_Encoding(const System::SharedPtr<System::Text::Encoding>& value);
73  /// <summary>
74  /// Gets a list of the view columns (<see cref="GanttChartColumn"></see>) to save to XLSX format.
75  /// If not set then default columns are saved.
76  /// </summary>
77  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& get_View() const;
78  /// <summary>
79  /// Sets a list of the view columns (<see cref="GanttChartColumn"></see>) to save to XLSX format.
80  /// If not set then default columns are saved.
81  /// </summary>
82  ASPOSE_TASKS_SHARED_API void set_View(const System::SharedPtr<Aspose::Tasks::Visualization::ProjectView>& value);
83 
84  /// <summary>
85  /// Initializes a new instance of the <see cref="XlsxOptions"></see> class that can be used to save project in XLSX format.
86  /// </summary>
87  ASPOSE_TASKS_SHARED_API XlsxOptions();
88 
89 protected:
90 
91  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
92 
93  virtual ASPOSE_TASKS_SHARED_API ~XlsxOptions();
94 
95  #ifdef ASPOSE_GET_SHARED_MEMBERS
96  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
97  #endif
98 
99 
100 private:
101 
102  System::SharedPtr<Aspose::Tasks::Visualization::ProjectView> pr_ResourceView;
103  System::SharedPtr<Aspose::Tasks::Visualization::ProjectView> pr_AssignmentView;
104  System::SharedPtr<System::Text::Encoding> pr_Encoding;
105  System::SharedPtr<Aspose::Tasks::Visualization::ProjectView> pr_View;
106 
107  static System::SharedPtr<Aspose::Tasks::Visualization::ProjectView> GetDefaultTasksViewForXlsx();
108 
109 };
110 
111 } // namespace Saving
112 } // namespace Tasks
113 } // namespace Aspose
114 
115 
This is an abstract base class that allow the user to specify basic options when saving a project int...
Definition: SimpleSaveOptions.h:52
Allows to specify additional options when rendering project pages to XLSX.
Definition: XlsxOptions.h:40
const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > & get_View() const
Gets a list of the view columns (GanttChartColumn) to save to XLSX format. If not set then default co...
const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > & get_AssignmentView() const
Gets a list of the assignments view columns to render (AssignmentViewColumn).
void set_Encoding(const System::SharedPtr< System::Text::Encoding > &value)
Sets the encoding of the resulting XLSX file. The default value is System::Text::Encoding::UTF8.
XlsxOptions()
Initializes a new instance of the XlsxOptions class that can be used to save project in XLSX format.
void set_ResourceView(const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > &value)
Sets a list of the resource view columns to render (ResourceViewColumn).
const System::SharedPtr< System::Text::Encoding > & get_Encoding() const
Gets the encoding of the resulting XLSX file. The default value is System::Text::Encoding::UTF8.
void set_AssignmentView(const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > &value)
Sets a list of the assignments view columns to render (AssignmentViewColumn).
const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > & get_ResourceView() const
Gets a list of the resource view columns to render (ResourceViewColumn).
void set_View(const System::SharedPtr< Aspose::Tasks::Visualization::ProjectView > &value)
Sets a list of the view columns (GanttChartColumn) to save to XLSX format. If not set then default co...
Definition: Asn.h:13