Aspose.Tasks for C++
ProjectDisplayOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="ProjectDisplayOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/array.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 enum class DayLabelDisplay;
18 enum class HourLabelDisplay;
19 namespace IO
20 {
21 namespace MSProject
22 {
23 class MPPProjectPropsReader;
24 } // namespace MSProject
25 } // namespace IO
26 enum class MinuteLabelDisplay;
27 enum class MonthLabelDisplay;
28 namespace Util
29 {
30 namespace Fields
31 {
32 class ProjectFieldToValue;
33 } // namespace Fields
34 } // namespace Util
35 enum class WeekLabelDisplay;
36 enum class YearLabelDisplay;
37 } // namespace Tasks
38 } // namespace Aspose
39 
40 namespace Aspose {
41 
42 namespace Tasks {
43 
44 /// <summary>
45 /// Represents the display options for a project instance.
46 /// </summary>
47 class ASPOSE_TASKS_SHARED_CLASS ProjectDisplayOptions : public System::Object
48 {
50  typedef System::Object BaseType;
51 
52  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
53  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
54 
55  friend class Aspose::Tasks::IO::MSProject::MPPProjectPropsReader;
56  friend class Aspose::Tasks::Util::Fields::ProjectFieldToValue;
57 
58 public:
59 
60  /// <summary>
61  /// Gets a value indicating whether to add a space before the number value and the time abbreviation (1 wk as opposed to 1wk).
62  /// </summary>
63  ASPOSE_TASKS_SHARED_API bool get_AddSpaceBeforeLabel() const;
64  /// <summary>
65  /// Sets a value indicating whether to add a space before the number value and the time abbreviation (1 wk as opposed to 1wk).
66  /// </summary>
67  ASPOSE_TASKS_SHARED_API void set_AddSpaceBeforeLabel(bool value);
68  /// <summary>
69  /// Gets a value indicating whether to underline hyperlinks.
70  /// </summary>
71  ASPOSE_TASKS_SHARED_API bool get_UnderlineHyperlinks() const;
72  /// <summary>
73  /// Sets a value indicating whether to underline hyperlinks.
74  /// </summary>
75  ASPOSE_TASKS_SHARED_API void set_UnderlineHyperlinks(bool value);
76  /// <summary>
77  /// Gets a value indicating whether to show warnings when Project identifies a possible scheduling conflict with a manually scheduled task.
78  /// <remarks>This option is available for Project 2010 version and later.</remarks>
79  /// </summary>
80  ASPOSE_TASKS_SHARED_API bool get_ShowTaskScheduleWarnings() const;
81  /// <summary>
82  /// Sets a value indicating whether to show warnings when Project identifies a possible scheduling conflict with a manually scheduled task.
83  /// <remarks>This option is available for Project 2010 version and later.</remarks>
84  /// </summary>
85  ASPOSE_TASKS_SHARED_API void set_ShowTaskScheduleWarnings(bool value);
86  /// <summary>
87  /// Gets a value indicating whether to show suggestions when Project identifies a possible scheduling conflict with a manually scheduled task.
88  /// <remarks>This option is available for Project 2010 version and later.</remarks>
89  /// </summary>
90  ASPOSE_TASKS_SHARED_API bool get_ShowTaskScheduleSuggestions() const;
91  /// <summary>
92  /// Sets a value indicating whether to show suggestions when Project identifies a possible scheduling conflict with a manually scheduled task.
93  /// <remarks>This option is available for Project 2010 version and later.</remarks>
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API void set_ShowTaskScheduleSuggestions(bool value);
96  /// <summary>
97  /// Gets a value indicating whether to display summary information about an entire project on a single row with its own summary task bar at the top of the Gantt Chart view.
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API bool get_ShowProjectSummaryTask() const;
100  /// <summary>
101  /// Sets a value indicating whether to display summary information about an entire project on a single row with its own summary task bar at the top of the Gantt Chart view.
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API void set_ShowProjectSummaryTask(bool value);
104  /// <summary>
105  /// Gets how the minute label displays.
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API MinuteLabelDisplay get_MinuteLabel() const;
108  /// <summary>
109  /// Sets how the minute label displays.
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API void set_MinuteLabel(MinuteLabelDisplay value);
112  /// <summary>
113  /// Gets how the hour label displays.
114  /// </summary>
115  ASPOSE_TASKS_SHARED_API HourLabelDisplay get_HourLabel() const;
116  /// <summary>
117  /// Sets how the hour label displays.
118  /// </summary>
119  ASPOSE_TASKS_SHARED_API void set_HourLabel(HourLabelDisplay value);
120  /// <summary>
121  /// Gets how the day label displays.
122  /// </summary>
123  ASPOSE_TASKS_SHARED_API DayLabelDisplay get_DayLabel() const;
124  /// <summary>
125  /// Sets how the day label displays.
126  /// </summary>
127  ASPOSE_TASKS_SHARED_API void set_DayLabel(DayLabelDisplay value);
128  /// <summary>
129  /// Gets how the week label displays.
130  /// </summary>
131  ASPOSE_TASKS_SHARED_API WeekLabelDisplay get_WeekLabel() const;
132  /// <summary>
133  /// Sets how the week label displays.
134  /// </summary>
135  ASPOSE_TASKS_SHARED_API void set_WeekLabel(WeekLabelDisplay value);
136  /// <summary>
137  /// Gets how the month label displays.
138  /// </summary>
139  ASPOSE_TASKS_SHARED_API MonthLabelDisplay get_MonthLabel() const;
140  /// <summary>
141  /// Sets how the month label displays.
142  /// </summary>
143  ASPOSE_TASKS_SHARED_API void set_MonthLabel(MonthLabelDisplay value);
144  /// <summary>
145  /// Gets how the year label displays.
146  /// </summary>
147  ASPOSE_TASKS_SHARED_API YearLabelDisplay get_YearLabel() const;
148  /// <summary>
149  /// Sets how the year label displays.
150  /// </summary>
151  ASPOSE_TASKS_SHARED_API void set_YearLabel(YearLabelDisplay value);
152 
153  /// <summary>Initializes a new instance of the <see cref="ProjectDisplayOptions"></see> class.</summary>
154  ASPOSE_TASKS_SHARED_API ProjectDisplayOptions();
155 
156 protected:
157 
158  ASPOSE_TASKS_SHARED_API const System::ArrayPtr<uint8_t>& get_ExternallyPassedWatermark() const;
159  ASPOSE_TASKS_SHARED_API void set_ExternallyPassedWatermark(const System::ArrayPtr<uint8_t>& value);
160 
161  #ifdef ASPOSE_GET_SHARED_MEMBERS
162  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
163  #endif
164 
165 
166 private:
167 
168  bool pr_AddSpaceBeforeLabel;
169  bool pr_UnderlineHyperlinks;
170  bool pr_ShowTaskScheduleWarnings;
171  bool pr_ShowTaskScheduleSuggestions;
172  bool pr_ShowProjectSummaryTask;
173  MinuteLabelDisplay pr_MinuteLabel;
174  HourLabelDisplay pr_HourLabel;
175  DayLabelDisplay pr_DayLabel;
176  WeekLabelDisplay pr_WeekLabel;
177  MonthLabelDisplay pr_MonthLabel;
178  YearLabelDisplay pr_YearLabel;
179  System::ArrayPtr<uint8_t> pr_ExternallyPassedWatermark;
180 
181 };
182 
183 } // namespace Tasks
184 } // namespace Aspose
185 
186 
Represents the display options for a project instance.
Definition: ProjectDisplayOptions.h:48
void set_UnderlineHyperlinks(bool value)
Sets a value indicating whether to underline hyperlinks.
ProjectDisplayOptions()
Initializes a new instance of the ProjectDisplayOptions class.
void set_HourLabel(HourLabelDisplay value)
Sets how the hour label displays.
WeekLabelDisplay get_WeekLabel() const
Gets how the week label displays.
void set_YearLabel(YearLabelDisplay value)
Sets how the year label displays.
bool get_ShowTaskScheduleSuggestions() const
Gets a value indicating whether to show suggestions when Project identifies a possible scheduling con...
void set_WeekLabel(WeekLabelDisplay value)
Sets how the week label displays.
YearLabelDisplay get_YearLabel() const
Gets how the year label displays.
void set_ShowProjectSummaryTask(bool value)
Sets a value indicating whether to display summary information about an entire project on a single ro...
bool get_ShowTaskScheduleWarnings() const
Gets a value indicating whether to show warnings when Project identifies a possible scheduling confli...
void set_ShowTaskScheduleSuggestions(bool value)
Sets a value indicating whether to show suggestions when Project identifies a possible scheduling con...
void set_DayLabel(DayLabelDisplay value)
Sets how the day label displays.
void set_AddSpaceBeforeLabel(bool value)
Sets a value indicating whether to add a space before the number value and the time abbreviation (1 w...
void set_MinuteLabel(MinuteLabelDisplay value)
Sets how the minute label displays.
MinuteLabelDisplay get_MinuteLabel() const
Gets how the minute label displays.
MonthLabelDisplay get_MonthLabel() const
Gets how the month label displays.
bool get_ShowProjectSummaryTask() const
Gets a value indicating whether to display summary information about an entire project on a single ro...
void set_ShowTaskScheduleWarnings(bool value)
Sets a value indicating whether to show warnings when Project identifies a possible scheduling confli...
DayLabelDisplay get_DayLabel() const
Gets how the day label displays.
bool get_UnderlineHyperlinks() const
Gets a value indicating whether to underline hyperlinks.
void set_MonthLabel(MonthLabelDisplay value)
Sets how the month label displays.
HourLabelDisplay get_HourLabel() const
Gets how the hour label displays.
bool get_AddSpaceBeforeLabel() const
Gets a value indicating whether to add a space before the number value and the time abbreviation (1 w...
Definition: Asn.h:13