Aspose.Tasks for C++
XpsOptions.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="XpsOptions.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/shared_ptr.h>
9 
10 #include "aspose.tasks.cpp/Saving/ICloneableSaveOptions.h"
11 #include "aspose.tasks.cpp/Saving/SaveOptions.h"
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Rendering
17 {
18 namespace Xps
19 {
20 class XpsOptionsCore;
21 } // namespace Xps
22 } // namespace Rendering
23 namespace Tasks
24 {
25 class IWriter;
26 namespace Saving
27 {
28 class XpsWriter;
29 } // namespace Saving
30 } // namespace Tasks
31 } // namespace Aspose
32 
33 namespace Aspose {
34 
35 namespace Tasks {
36 
37 namespace Saving {
38 
39 /// <summary>
40 /// Allows to specify additional options when rendering project pages to XPS.
41 /// </summary>
42 class ASPOSE_TASKS_SHARED_CLASS XpsOptions : public Aspose::Tasks::Saving::SaveOptions, public Aspose::Tasks::Saving::ICloneableSaveOptions
43 {
44  typedef XpsOptions ThisType;
45  typedef Aspose::Tasks::Saving::SaveOptions BaseType;
46  typedef Aspose::Tasks::Saving::ICloneableSaveOptions BaseType1;
47 
48  typedef ::System::BaseTypesInfo<BaseType, BaseType1> ThisTypeBaseTypesInfo;
49  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
50 
51  friend class Aspose::Tasks::Saving::XpsWriter;
52 
53 public:
54 
55  /// <summary>
56  /// Gets a value indicating whether a metafile should be rendered as bitmap.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API bool get_RenderMetafileAsBitmap();
59  /// <summary>
60  /// Sets a value indicating whether a metafile should be rendered as bitmap.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API void set_RenderMetafileAsBitmap(bool value);
63 
64  /// <summary>
65  /// Initializes a new instance of the <see cref="XpsOptions"></see> class.
66  /// </summary>
67  ASPOSE_TASKS_SHARED_API XpsOptions();
68 
69 protected:
70 
71  ASPOSE_TASKS_SHARED_API System::SharedPtr<IWriter> GetWriter() override;
72  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Rendering::Xps::XpsOptionsCore> GetXpsOptionsCore();
73 
74  virtual ASPOSE_TASKS_SHARED_API ~XpsOptions();
75 
76  #ifdef ASPOSE_GET_SHARED_MEMBERS
77  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
78  #endif
79 
80 
81 private:
82 
83  System::SharedPtr<Aspose::Rendering::Xps::XpsOptionsCore> optionsCore;
84 
85  XpsOptions(const System::SharedPtr<SaveOptions>& options);
86 
87  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XpsOptions, CODEPORTING_ARGS(const System::SharedPtr<SaveOptions>& options));
88  System::SharedPtr<SaveOptions> Clone() override;
89  void CopyOutputPropertiesFrom(System::SharedPtr<SaveOptions> source) override;
90 
91 };
92 
93 } // namespace Saving
94 } // namespace Tasks
95 } // namespace Aspose
96 
97 
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 XPS.
Definition: XpsOptions.h:43
XpsOptions()
Initializes a new instance of the XpsOptions class.
bool get_RenderMetafileAsBitmap()
Gets a value indicating whether a metafile should be rendered as bitmap.
void set_RenderMetafileAsBitmap(bool value)
Sets a value indicating whether a metafile should be rendered as bitmap.
Definition: Asn.h:13