Aspose.Tasks for C++
SvgOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="SvgOptions.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/ICloneableSaveOptions.h"
9 #include "aspose.tasks.cpp/Saving/SaveOptions.h"
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 class IWriter;
17 namespace Saving
18 {
19 class IPageSavingCallback;
20 } // namespace Saving
21 } // namespace Tasks
22 } // namespace Aspose
23 
24 namespace Aspose {
25 
26 namespace Tasks {
27 
28 namespace Saving {
29 
30 /// <summary>
31 /// Allows to specify additional options when rendering project pages to SVG.
32 /// </summary>
33 class ASPOSE_TASKS_SHARED_CLASS SvgOptions : public Aspose::Tasks::Saving::SaveOptions, public Aspose::Tasks::Saving::ICloneableSaveOptions
34 {
35  typedef SvgOptions ThisType;
36  typedef Aspose::Tasks::Saving::SaveOptions BaseType;
37  typedef Aspose::Tasks::Saving::ICloneableSaveOptions BaseType1;
38 
39  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
40  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
41 
42 public:
43 
44  /// <summary>
45  /// Determines whether to use gradient brush when rendering project layout.
46  /// <remarks>Currently using of gradient brush is not supported for rendering to SVG.</remarks>
47  /// </summary>
48  ASPOSE_TASKS_SHARED_API bool get_UseGradientBrush() override;
49  /// <summary>
50  /// Determines whether to use gradient brush when rendering project layout.
51  /// <remarks>Currently using of gradient brush is not supported for rendering to SVG.</remarks>
52  /// </summary>
53  ASPOSE_TASKS_SHARED_API void set_UseGradientBrush(bool value) override;
54  /// <summary>
55  /// Gets a user-defined implementation callback which is used to get an output stream for each rendered page.
56  /// </summary>
57  ASPOSE_TASKS_SHARED_API const System::SharedPtr<IPageSavingCallback>& get_PageSavingCallback() const;
58  /// <summary>
59  /// Sets a user-defined implementation callback which is used to get an output stream for each rendered page.
60  /// </summary>
61  ASPOSE_TASKS_SHARED_API void set_PageSavingCallback(const System::SharedPtr<IPageSavingCallback>& value);
62 
63  /// <summary>
64  /// Initializes a new instance of the <see cref="SvgOptions"></see> class that can be used to save project in SVG format.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API SvgOptions();
67 
68 protected:
69 
70  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
71 
72  virtual ASPOSE_TASKS_SHARED_API ~SvgOptions();
73 
74  #ifdef ASPOSE_GET_SHARED_MEMBERS
75  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
76  #endif
77 
78 
79 private:
80 
81  System::SharedPtr<IPageSavingCallback> pr_PageSavingCallback;
82 
83  SvgOptions(const System::SharedPtr<SvgOptions>& options);
84 
85  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(SvgOptions, CODEPORTING_ARGS(const System::SharedPtr<SvgOptions>& options));
86  System::SharedPtr<SaveOptions> Clone() override;
87  void CopyOutputPropertiesFrom(System::SharedPtr<SaveOptions> source) override;
88 
89 };
90 
91 } // namespace Saving
92 } // namespace Tasks
93 } // namespace Aspose
94 
95 
This is an abstract base class for classes that allow the user to specify additional options when sav...
Definition: SaveOptions.h:95
Allows to specify additional options when rendering project pages to SVG.
Definition: SvgOptions.h:34
bool get_UseGradientBrush() override
Determines whether to use gradient brush when rendering project layout.
SvgOptions()
Initializes a new instance of the SvgOptions class that can be used to save project in SVG format.
void set_PageSavingCallback(const System::SharedPtr< IPageSavingCallback > &value)
Sets a user-defined implementation callback which is used to get an output stream for each rendered p...
void set_UseGradientBrush(bool value) override
Determines whether to use gradient brush when rendering project layout.
const System::SharedPtr< IPageSavingCallback > & get_PageSavingCallback() const
Gets a user-defined implementation callback which is used to get an output stream for each rendered p...
Definition: Asn.h:13