PopupAnnotation.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 class MarkupAnnotation;
18 } // namespace Annotations
19 class Document;
20 namespace Engine
21 {
22 namespace Data
23 {
24 class IPdfObject;
25 } // namespace Data
26 } // namespace Engine
27 class Page;
28 class Rectangle;
29 namespace Tests
30 {
31 namespace Annotations
32 {
33 class AnnotationTests;
34 class PopupAnnotationTests;
35 } // namespace Annotations
36 } // namespace Tests
37 } // namespace Pdf
38 } // namespace Aspose
39 namespace System
40 {
41 namespace Xml
42 {
43 class XmlReader;
44 class XmlWriter;
45 } // namespace Xml
46 } // namespace System
47 
48 namespace Aspose {
49 
50 namespace Pdf {
51 
52 namespace Annotations {
53 
57 class ASPOSE_PDF_SHARED_CLASS PopupAnnotation final : public Aspose::Pdf::Annotations::Annotation
58 {
59  typedef PopupAnnotation ThisType;
61 
62  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
63  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
64 
67  friend class Aspose::Pdf::Tests::Annotations::PopupAnnotationTests;
68  friend class Aspose::Pdf::Tests::Annotations::AnnotationTests;
69 
70 public:
71 
75  ASPOSE_PDF_SHARED_API bool get_Open();
79  ASPOSE_PDF_SHARED_API void set_Open(bool value);
84  ASPOSE_PDF_SHARED_API System::SharedPtr<Annotation> get_Parent();
89  ASPOSE_PDF_SHARED_API void set_Parent(System::SharedPtr<Annotation> value);
93  ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::AnnotationType get_AnnotationType() override;
94 
99  ASPOSE_PDF_SHARED_API void Accept(System::SharedPtr<AnnotationSelector> visitor) override;
100 
105  ASPOSE_PDF_SHARED_API PopupAnnotation(System::SharedPtr<Document> document);
112 
113 protected:
114 
115  ASPOSE_PDF_SHARED_API void WriteXfdf(System::SharedPtr<System::Xml::XmlWriter> writer) override;
116  ASPOSE_PDF_SHARED_API void ReadXfdf(System::SharedPtr<System::Xml::XmlReader> reader) override;
117 
124 
125  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(PopupAnnotation, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> engineAnnot, System::SharedPtr<Document> document));
126 
127  virtual ASPOSE_PDF_SHARED_API ~PopupAnnotation();
128 
129 private:
130 
132 
133 };
134 
135 } // namespace Annotations
136 } // namespace Pdf
137 } // namespace Aspose
138 
139 
Abstract class representing markup annotation.
Definition: MarkupAnnotation.h:82
Definition: Artifact.h:67
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
means saving in XML format
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
Represents the pop-up annotation that displays text in a pop-up window for entry and editing...
Definition: PopupAnnotation.h:57
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.