Aspose.Tasks for C++
SimpleSaveOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="SimpleSaveOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 class IWriter;
17 class Project;
18 namespace Saving
19 {
20 class MPPSaveOptions;
21 enum class SaveFileFormat;
22 class SaveManager;
23 } // namespace Saving
24 class Task;
25 namespace Util
26 {
27 template <typename> class ICondition;
28 } // namespace Util
29 } // namespace Tasks
30 } // namespace Aspose
31 namespace System
32 {
33 namespace Collections
34 {
35 namespace Generic
36 {
37 template <typename> class IComparer;
38 } // namespace Generic
39 } // namespace Collections
40 } // namespace System
41 
42 namespace Aspose {
43 
44 namespace Tasks {
45 
46 namespace Saving {
47 
48 /// <summary>
49 /// This is an abstract base class that allow the user to specify basic options when saving a project into a particular format.
50 /// </summary>
51 class ASPOSE_TASKS_SHARED_CLASS SimpleSaveOptions : public virtual System::Object
52 {
54  typedef System::Object BaseType;
55 
56  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
57  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
58 
59  friend class Aspose::Tasks::Project;
61  friend class Aspose::Tasks::Saving::SaveManager;
62 
63 public:
64 
65  /// <summary>
66  /// Gets the format in which the document will be saved if this save options object is used.
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API SaveFileFormat get_SaveFormat() const;
69  /// <summary>
70  /// Gets the comparer to sort tasks on Gantt chart and Task Sheet chart.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Collections::Generic::IComparer<System::SharedPtr<Task>>>& get_TasksComparer() const;
73  /// <summary>
74  /// Sets the comparer to sort tasks on Gantt chart and Task Sheet chart.
75  /// </summary>
76  ASPOSE_TASKS_SHARED_API void set_TasksComparer(const System::SharedPtr<System::Collections::Generic::IComparer<System::SharedPtr<Task>>>& value);
77  /// <summary>
78  /// Gets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
79  /// </summary>
80  /// <remarks>
81  /// If value is not specified the default filter is used which removes non-visible tasks -- i.e. descendant tasks of collapsed tasks.
82  /// </remarks>
83  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Aspose::Tasks::Util::ICondition<System::SharedPtr<Task>>>& get_TasksFilter() const;
84  /// <summary>
85  /// Sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
86  /// </summary>
87  /// <remarks>
88  /// If value is not specified the default filter is used which removes non-visible tasks -- i.e. descendant tasks of collapsed tasks.
89  /// </remarks>
90  ASPOSE_TASKS_SHARED_API void set_TasksFilter(const System::SharedPtr<Aspose::Tasks::Util::ICondition<System::SharedPtr<Task>>>& value);
91 
92  ASPOSE_TASKS_SHARED_API SimpleSaveOptions();
93 
94 protected:
95 
96  /// <summary>
97  /// Gets or sets the project to save.
98  /// </summary>
99  System::WeakPtr<Aspose::Tasks::Project> project;
100 
101  /// <summary>
102  /// Sets the format in which the document will be saved if this save options object is used.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API void set_SaveFormat(SaveFileFormat value);
105  virtual ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Tasks::Project> get_Project();
106  virtual ASPOSE_TASKS_SHARED_API void set_Project(System::SharedPtr<Aspose::Tasks::Project> value);
107 
108  virtual ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() = 0;
109  #ifdef ASPOSE_GET_SHARED_MEMBERS
110  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
111  #endif
112 
113 
114 private:
115 
116  SaveFileFormat pr_SaveFormat;
117  System::SharedPtr<System::Collections::Generic::IComparer<System::SharedPtr<Task>>> pr_TasksComparer;
118  System::SharedPtr<Aspose::Tasks::Util::ICondition<System::SharedPtr<Task>>> pr_TasksFilter;
119 
120 };
121 
122 } // namespace Saving
123 } // namespace Tasks
124 } // namespace Aspose
125 
126 
Represents a project.
Definition: Project.h:545
Allows to specify additional options when saving project data to MPP.
Definition: MPPSaveOptions.h:32
This is an abstract base class that allow the user to specify basic options when saving a project int...
Definition: SimpleSaveOptions.h:52
void set_TasksComparer(const System::SharedPtr< System::Collections::Generic::IComparer< System::SharedPtr< Task >>> &value)
Sets the comparer to sort tasks on Gantt chart and Task Sheet chart.
void set_TasksFilter(const System::SharedPtr< Aspose::Tasks::Util::ICondition< System::SharedPtr< Task >>> &value)
Sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
const System::SharedPtr< Aspose::Tasks::Util::ICondition< System::SharedPtr< Task > > > & get_TasksFilter() const
Gets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
const System::SharedPtr< System::Collections::Generic::IComparer< System::SharedPtr< Task > > > & get_TasksComparer() const
Gets the comparer to sort tasks on Gantt chart and Task Sheet chart.
SaveFileFormat get_SaveFormat() const
Gets the format in which the document will be saved if this save options object is used.
Represents a condition which can be used by filters or search methods.
Definition: ICondition.h:22
Definition: Asn.h:13