XYZExplicitDestination.h
1 #pragma once
2 // Copyright (c) 2001-2022 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/string.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/InteractiveFeatures/ExplicitDestination.h"
8 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
9 
10 namespace Aspose
11 {
12 namespace Pdf
13 {
14 class Document;
15 namespace Engine
16 {
17 namespace Data
18 {
19 class IPdfArray;
20 } // namespace Data
21 } // namespace Engine
22 class Page;
23 class Point;
24 } // namespace Pdf
25 } // namespace Aspose
26 
27 namespace Aspose {
28 
29 namespace Pdf {
30 
31 namespace Annotations {
32 
38 class ASPOSE_PDF_SHARED_CLASS XYZExplicitDestination final : public Aspose::Pdf::Annotations::ExplicitDestination
39 {
42 
43  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
44  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
45 
47 
48 public:
49 
53  ASPOSE_PDF_SHARED_API double get_Left();
57  ASPOSE_PDF_SHARED_API double get_Top();
61  ASPOSE_PDF_SHARED_API double get_Zoom();
62 
70  ASPOSE_PDF_SHARED_API XYZExplicitDestination(System::SharedPtr<Aspose::Pdf::Page> page, double left, double top, double zoom);
71 
81  static ASPOSE_PDF_SHARED_API System::SharedPtr<XYZExplicitDestination> CreateDestination(System::SharedPtr<Aspose::Pdf::Page> page, double left, double top, double zoom, bool considerRotation);
88  static ASPOSE_PDF_SHARED_API System::SharedPtr<XYZExplicitDestination> CreateDestinationToUpperLeftCorner(System::SharedPtr<Aspose::Pdf::Page> page, double zoom);
94  static ASPOSE_PDF_SHARED_API System::SharedPtr<XYZExplicitDestination> CreateDestinationToUpperLeftCorner(System::SharedPtr<Aspose::Pdf::Page> page);
95 
105  ASPOSE_PDF_SHARED_API XYZExplicitDestination(System::SharedPtr<Document> document, int32_t pageNumber, double left, double top, double zoom);
113  ASPOSE_PDF_SHARED_API XYZExplicitDestination(int32_t pageNumber, double left, double top, double zoom);
114 
119  ASPOSE_PDF_SHARED_API System::String ToString() const override;
120 
121 protected:
122 
128 
129  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(XYZExplicitDestination, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfArray> engineDest));
130 
131 private:
132 
134  System::String ToString_NonConst();
135 
136 };
137 
138 } // namespace Annotations
139 } // namespace Pdf
140 } // namespace Aspose
141 
142 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Represents explicit destination that displays the page with the coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by the factor zoom. A null value for any of the parameters left, top, or zoom specifies that the current value of that parameter is to be retained unchanged. A zoom value of 0 has the same meaning as a null value.
Definition: XYZExplicitDestination.h:38
Represents general interface for actions and destinations.
Definition: IAppointment.h:17
Represents the base class for explicit destinations in PDF document.
Definition: ExplicitDestination.h:64
Definition: reflection.h:29
ASPOSE_PDF_SHARED_API System::String ToString() const override=0
Returns string representation of ExplicitDestination object.
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
A printer&#39;s point (1/72 of an inch).
The coordinates are in the page coordinate context.
static ASPOSE_PDF_SHARED_API System::SharedPtr< ExplicitDestination > CreateDestination(System::SharedPtr< Aspose::Pdf::Page > page, ExplicitDestinationType type, const System::ArrayPtr< double > &values)
Creates instances of ExplicitDestination descendant classes.
Whole PDF file will be submitted.