LinkAnnotation.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/shared_ptr.h>
5 
6 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/Annotation.h"
7 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
8 
9 namespace Aspose
10 {
11 namespace Pdf
12 {
13 namespace Annotations
14 {
15 class AnnotationSelector;
16 enum class AnnotationType;
17 enum class HighlightingMode;
18 class IAppointment;
19 class PdfAction;
20 } // namespace Annotations
21 class Document;
22 namespace Engine
23 {
24 namespace Data
25 {
26 class IPdfObject;
27 } // namespace Data
28 } // namespace Engine
29 class Page;
30 class Rectangle;
31 namespace Tests
32 {
33 namespace OriginalKit
34 {
35 namespace Old
36 {
37 namespace TestWei
38 {
39 class Wei_PdfContentEditor;
40 } // namespace TestWei
41 } // namespace Old
42 } // namespace OriginalKit
43 } // namespace Tests
44 } // namespace Pdf
45 } // namespace Aspose
46 
47 namespace Aspose {
48 
49 namespace Pdf {
50 
51 namespace Annotations {
52 
56 class ASPOSE_PDF_SHARED_CLASS LinkAnnotation final : public Aspose::Pdf::Annotations::Annotation
57 {
58  typedef LinkAnnotation ThisType;
60 
61  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
62  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
63 
65  friend class Aspose::Pdf::Tests::OriginalKit::Old::TestWei::Wei_PdfContentEditor;
66 
67 public:
68 
72  ASPOSE_PDF_SHARED_API System::SharedPtr<PdfAction> get_Action() const;
76  ASPOSE_PDF_SHARED_API void set_Action(System::SharedPtr<PdfAction> value);
80  ASPOSE_PDF_SHARED_API System::SharedPtr<IAppointment> get_Destination() const;
84  ASPOSE_PDF_SHARED_API void set_Destination(System::SharedPtr<IAppointment> value);
88  ASPOSE_PDF_SHARED_API HighlightingMode get_Highlighting();
92  ASPOSE_PDF_SHARED_API void set_Highlighting(HighlightingMode value);
96  ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::AnnotationType get_AnnotationType() override;
97 
102  ASPOSE_PDF_SHARED_API void Accept(System::SharedPtr<AnnotationSelector> visitor) override;
103 
110 
111 protected:
112 
119 
120  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(LinkAnnotation, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> engineAnnot, System::SharedPtr<Document> document));
121  ASPOSE_PDF_SHARED_API bool AppearanceSupported() override;
122 
123  virtual ASPOSE_PDF_SHARED_API ~LinkAnnotation();
124 
125 private:
126 
128  System::SharedPtr<IAppointment> _destination;
129 
130 };
131 
132 } // namespace Annotations
133 } // namespace Pdf
134 } // namespace Aspose
135 
136 
HighlightingMode
Enumerates the annotation�s highlighting mode, the visual effect to be used when the mouse button is...
Definition: HighlightingMode.h:18
Definition: signed_info.h:13
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
AnnotationType
Enumeration of annotation types.
Definition: AnnotationType.h:18
Definition: AFRelationship.h:4
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
The coordinates are in the page coordinate context.
Class representing annotation object.
Definition: Annotation.h:303
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Whole PDF file will be submitted.