GoToAction.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/array.h>
5 #include <cstdint>
6 
7 #include "Aspose.PDF.Cpp/InteractiveFeatures/PdfAction.h"
8 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
9 
10 namespace Aspose
11 {
12 namespace Pdf
13 {
14 namespace Annotations
15 {
16 class ExplicitDestination;
17 enum class ExplicitDestinationType;
18 class GoToRemoteAction;
19 class IAppointment;
20 } // namespace Annotations
21 class Document;
22 namespace Engine
23 {
24 namespace Data
25 {
26 class IPdfDictionary;
27 } // namespace Data
28 } // namespace Engine
29 class Page;
30 } // namespace Pdf
31 } // namespace Aspose
32 
33 namespace Aspose {
34 
35 namespace Pdf {
36 
37 namespace Annotations {
38 
42 class ASPOSE_PDF_SHARED_CLASS GoToAction : public Aspose::Pdf::Annotations::PdfAction
43 {
44  typedef GoToAction ThisType;
46 
47  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
49 
52 
53 public:
54 
58  virtual ASPOSE_PDF_SHARED_API System::SharedPtr<IAppointment> get_Destination();
62  virtual ASPOSE_PDF_SHARED_API void set_Destination(System::SharedPtr<IAppointment> value);
63 
69  ASPOSE_PDF_SHARED_API GoToAction(int32_t page);
74  ASPOSE_PDF_SHARED_API GoToAction(System::SharedPtr<Page> page);
81  ASPOSE_PDF_SHARED_API GoToAction(System::SharedPtr<Page> page, ExplicitDestinationType type, const System::ArrayPtr<double>& values);
86  ASPOSE_PDF_SHARED_API GoToAction(System::SharedPtr<ExplicitDestination> destination);
91  ASPOSE_PDF_SHARED_API GoToAction();
97  ASPOSE_PDF_SHARED_API GoToAction(System::SharedPtr<Document> doc, System::String name);
98 
99 protected:
100 
102 
104 
105 };
106 
107 } // namespace Annotations
108 } // namespace Pdf
109 } // namespace Aspose
110 
111 
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Represents a go-to action that changes the view to a specified destination (page, location...
Definition: GoToAction.h:42
Represents a remote go-to action that is similar to an ordinary go-to action but jumps to a destinati...
Definition: GoToRemoteAction.h:42
ASPOSE_PDF_SHARED_API GoToAction()
Constructor.
ExplicitDestinationType
Enumerates the types of explicit destinations.
Definition: ExplicitDestinationType.h:22
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(GoToRemoteAction, CODEPORTING_ARGS(System::SharedPtr< Aspose::Pdf::Engine::Data::IPdfDictionary > action))
ASPOSE_PDF_SHARED_API void set_Destination(System::SharedPtr< IAppointment > value) override
Sets the destination to jump to.
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
Represents Action in PDF document
Definition: PdfAction.h:75
The coordinates are in the page coordinate context.
ASPOSE_PDF_SHARED_API System::SharedPtr< IAppointment > get_Destination() override
Gets the destination to jump to.
Whole PDF file will be submitted.