PaperSize.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 PaperKind;
16 class PaperSizes;
17 } // namespace Printing
18 } // namespace Pdf
19 } // namespace Aspose
20 
21 namespace Aspose {
22 
23 namespace Pdf {
24 
25 namespace Printing {
26 
30 class ASPOSE_PDF_SHARED_CLASS PaperSize : public System::Object
31 {
32  typedef PaperSize ThisType;
33  typedef System::Object BaseType;
34 
35  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
37 
39 
40 public:
41 
45  ASPOSE_PDF_SHARED_API int32_t get_Height() const;
49  ASPOSE_PDF_SHARED_API void set_Height(int32_t value);
53  ASPOSE_PDF_SHARED_API PaperKind get_Kind();
57  ASPOSE_PDF_SHARED_API System::String get_PaperName() const;
61  ASPOSE_PDF_SHARED_API void set_PaperName(System::String value);
65  ASPOSE_PDF_SHARED_API int32_t get_Width() const;
69  ASPOSE_PDF_SHARED_API void set_Width(int32_t value);
70 
74  ASPOSE_PDF_SHARED_API PaperSize();
81  ASPOSE_PDF_SHARED_API PaperSize(System::String name, int32_t width, int32_t height);
82 
87  ASPOSE_PDF_SHARED_API System::String ToString() const override;
88 
89 protected:
90 
98  PaperSize(PaperKind kind, System::String name, int32_t width, int32_t height);
99 
100  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PaperSize, CODEPORTING_ARGS(PaperKind kind, System::String name, int32_t width, int32_t height));
101 
102 private:
103 
104  static const int32_t ReservedPaperKind48;
105  static const int32_t ReservedPaperKind49;
106  static const System::String PaperSizeNotCustom;
107  PaperKind _kind;
108  System::String _name;
109  int32_t _width;
110  int32_t _height;
111  bool _createdByDefaultConstructor;
112 
113  System::String ToString_NonConst();
114 
115 };
116 
117 } // namespace Printing
118 } // namespace Pdf
119 } // namespace Aspose
120 
121 
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
Specifies the size of a piece of paper.
Definition: PaperSize.h:30
Definition: AFRelationship.h:4
PaperKind
Specifies the standard paper sizes.
Definition: PaperKind.h:13
Represents the standard paper sizes.
Definition: PaperSizes.h:28
Whole PDF file will be submitted.