PrinterSettings.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Printing
14 {
15 enum class Duplex;
16 class PageSettings;
17 enum class PrintRange;
18 } // namespace Printing
19 } // namespace Pdf
20 } // namespace Aspose
21 namespace System
22 {
23 class Uri;
24 } // namespace System
25 
26 namespace Aspose {
27 
28 namespace Pdf {
29 
30 namespace Printing {
31 
35 class ASPOSE_PDF_SHARED_CLASS PrinterSettings : public System::Object
36 {
37  typedef PrinterSettings ThisType;
38  typedef System::Object BaseType;
39 
40  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
41  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
42 
43 public:
44 
48  ASPOSE_PDF_SHARED_API int16_t get_Copies() const;
52  ASPOSE_PDF_SHARED_API void set_Copies(int16_t value);
56  ASPOSE_PDF_SHARED_API bool get_Collate() const;
60  ASPOSE_PDF_SHARED_API void set_Collate(bool value);
64  ASPOSE_PDF_SHARED_API System::SharedPtr<PageSettings> get_DefaultPageSettings() const;
68  ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::Duplex get_Duplex() const;
72  ASPOSE_PDF_SHARED_API void set_Duplex(Aspose::Pdf::Printing::Duplex value);
76  ASPOSE_PDF_SHARED_API int32_t get_FromPage() const;
80  ASPOSE_PDF_SHARED_API void set_FromPage(int32_t value);
84  ASPOSE_PDF_SHARED_API int32_t get_MaximumPage() const;
88  ASPOSE_PDF_SHARED_API void set_MaximumPage(int32_t value);
92  ASPOSE_PDF_SHARED_API int32_t get_MinimumPage() const;
96  ASPOSE_PDF_SHARED_API void set_MinimumPage(int32_t value);
100  ASPOSE_PDF_SHARED_API System::String get_PrintFileName() const;
104  ASPOSE_PDF_SHARED_API void set_PrintFileName(System::String value);
108  ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::PrintRange get_PrintRange() const;
112  ASPOSE_PDF_SHARED_API void set_PrintRange(Aspose::Pdf::Printing::PrintRange value);
116  ASPOSE_PDF_SHARED_API bool get_PrintToFile() const;
120  ASPOSE_PDF_SHARED_API void set_PrintToFile(bool value);
124  ASPOSE_PDF_SHARED_API System::String get_PrinterName() const;
128  ASPOSE_PDF_SHARED_API void set_PrinterName(System::String value);
132  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Uri> get_PrinterUri() const;
136  ASPOSE_PDF_SHARED_API void set_PrinterUri(System::SharedPtr<System::Uri> value);
140  ASPOSE_PDF_SHARED_API int32_t get_ToPage() const;
144  ASPOSE_PDF_SHARED_API void set_ToPage(int32_t value);
145 
149  ASPOSE_PDF_SHARED_API PrinterSettings();
150 
155  ASPOSE_PDF_SHARED_API System::String ToString() const override;
156 
157 protected:
158 
159  bool get_IsDefaultPrinterName() const;
160 
161  virtual ASPOSE_PDF_SHARED_API ~PrinterSettings();
162 
163 private:
164 
165  static const System::String InvalidLowBoundArgumentEx;
166  System::String _printerName;
167  System::String _printFileName;
168  int16_t _copies;
170  System::SharedPtr<PageSettings> _defaultPageSettings;
171  int32_t _fromPage;
172  int32_t _toPage;
173  int32_t _maxPage;
174  int32_t _minPage;
176  System::SharedPtr<System::Uri> _printerUri;
177  bool pr_Collate;
178  bool pr_PrintToFile;
179  bool pr_IsDefaultPrinterName;
180 
181  void set_IsDefaultPrinterName(bool value);
182 
183  System::String ToString_NonConst();
184 
185 };
186 
187 } // namespace Printing
188 } // namespace Pdf
189 } // namespace Aspose
190 
191 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
Definition: Artifact.h:67
PrintRange
Specifies the option that designate the part of the document to print.
Definition: PrintRange.h:18
Specifies information about how a document is printed, including the printer that prints it...
Definition: PrinterSettings.h:35
Duplex
Specifies the printer&#39;s duplex setting.
Definition: Duplex.h:13
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
Definition: AFRelationship.h:4
Whole PDF file will be submitted.