TextAnnotation.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/MarkupAnnotation.h"
5 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/Annotation.h"
6 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
7 
8 namespace Aspose
9 {
10 namespace Pdf
11 {
12 namespace Annotations
13 {
14 class AnnotationSelector;
15 enum class AnnotationState;
16 enum class AnnotationStateModel;
17 enum class AnnotationType;
18 enum class TextIcon;
19 } // namespace Annotations
20 class Document;
21 namespace Engine
22 {
23 namespace Data
24 {
25 class IPdfObject;
26 } // namespace Data
27 } // namespace Engine
28 class Matrix;
29 class Operator;
30 class Page;
31 class Rectangle;
32 namespace Tests
33 {
34 namespace Annotations
35 {
36 class TextAnnotationTests;
37 } // namespace Annotations
38 namespace Facades
39 {
40 class DocumentTest;
41 } // namespace Facades
42 class MergePagesTests;
43 namespace OriginalKit
44 {
45 namespace Old
46 {
47 namespace TestWei
48 {
49 class Wei_PdfContentEditor;
50 } // namespace TestWei
51 } // namespace Old
52 } // namespace OriginalKit
53 class RegressionTests_v22_07;
54 } // namespace Tests
55 } // namespace Pdf
56 } // namespace Aspose
57 namespace System
58 {
59 namespace Collections
60 {
61 namespace Generic
62 {
63 template <typename> class List;
64 } // namespace Generic
65 } // namespace Collections
66 namespace Xml
67 {
68 class XmlReader;
69 class XmlWriter;
70 } // namespace Xml
71 } // namespace System
72 
73 namespace Aspose {
74 
75 namespace Pdf {
76 
77 namespace Annotations {
78 
82 class ASPOSE_PDF_SHARED_CLASS TextAnnotation final : public Aspose::Pdf::Annotations::MarkupAnnotation
83 {
84  typedef TextAnnotation ThisType;
86 
87  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
88  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
89 
92  friend class Aspose::Pdf::Tests::Annotations::TextAnnotationTests;
93  friend class Aspose::Pdf::Tests::OriginalKit::Old::TestWei::Wei_PdfContentEditor;
94  friend class Aspose::Pdf::Tests::Facades::DocumentTest;
95  friend class Aspose::Pdf::Tests::MergePagesTests;
96  friend class Aspose::Pdf::Tests::RegressionTests_v22_07;
97 
98 public:
99 
103  ASPOSE_PDF_SHARED_API bool get_Open();
107  ASPOSE_PDF_SHARED_API void set_Open(bool value);
111  ASPOSE_PDF_SHARED_API TextIcon get_Icon();
115  ASPOSE_PDF_SHARED_API void set_Icon(TextIcon value);
119  ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::AnnotationType get_AnnotationType() override;
120 
125  ASPOSE_PDF_SHARED_API void Accept(System::SharedPtr<AnnotationSelector> visitor) override;
126 
131  ASPOSE_PDF_SHARED_API TextAnnotation(System::SharedPtr<Document> document);
138 
143  ASPOSE_PDF_SHARED_API void ChangeAfterResize(System::SharedPtr<Matrix> transform) override;
144 
145 protected:
146 
150  AnnotationState get_State();
154  void set_State(AnnotationState value);
155  AnnotationStateModel get_StateModel();
156  void set_StateModel(AnnotationStateModel value);
157 
158  ASPOSE_PDF_SHARED_API void WriteXfdf(System::SharedPtr<System::Xml::XmlWriter> writer) override;
159  ASPOSE_PDF_SHARED_API void ReadXfdf(System::SharedPtr<System::Xml::XmlReader> reader) override;
160 
167 
168  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(TextAnnotation, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> engineAnnot, System::SharedPtr<Document> document));
169  ASPOSE_PDF_SHARED_API bool AppearanceSupported() override;
171 
172  virtual ASPOSE_PDF_SHARED_API ~TextAnnotation();
173 
174 private:
175 
187 
188 };
189 
190 } // namespace Annotations
191 } // namespace Pdf
192 } // namespace Aspose
193 
194 
Abstract class representing markup annotation.
Definition: MarkupAnnotation.h:82
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Definition: Artifact.h:67
AnnotationStateModel
The state model corresponding to state of annotation.
Definition: AnnotationStateModel.h:22
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
AnnotationState
The enumeration of states to which the original annotation can be set.
Definition: AnnotationState.h:22
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
Represents a text annotation that is a �sticky note� attached to a point in the PDF document...
Definition: TextAnnotation.h:82
The coordinates are in the page coordinate context.
Class representing annotation object.
Definition: Annotation.h:303
TextIcon
Enumerates the icons to be used in displaying the annotation.
Definition: TextIcon.h:22
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Whole PDF file will be submitted.