CaretAnnotation.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/aspose_pdf_api_defs.h"
6 
7 namespace Aspose
8 {
9 namespace Pdf
10 {
11 namespace Annotations
12 {
13 class Annotation;
14 class AnnotationSelector;
15 enum class AnnotationType;
16 enum class CaretSymbol;
17 } // namespace Annotations
18 class Document;
19 namespace Engine
20 {
21 namespace Data
22 {
23 class IPdfObject;
24 } // namespace Data
25 } // namespace Engine
26 class Page;
27 class Rectangle;
28 namespace Tests
29 {
30 namespace Annotations
31 {
32 class CaretAnnotationTests;
33 } // namespace Annotations
34 } // namespace Tests
35 } // namespace Pdf
36 } // namespace Aspose
37 namespace System
38 {
39 namespace Xml
40 {
41 class XmlReader;
42 class XmlWriter;
43 } // namespace Xml
44 } // namespace System
45 
46 namespace Aspose {
47 
48 namespace Pdf {
49 
50 namespace Annotations {
51 
55 class ASPOSE_PDF_SHARED_CLASS CaretAnnotation final : public Aspose::Pdf::Annotations::MarkupAnnotation
56 {
57  typedef CaretAnnotation ThisType;
59 
60  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
61  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
62 
64  friend class Aspose::Pdf::Tests::Annotations::CaretAnnotationTests;
65 
66 public:
67 
71  ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::AnnotationType get_AnnotationType() override;
75  ASPOSE_PDF_SHARED_API System::SharedPtr<Rectangle> get_Frame();
79  ASPOSE_PDF_SHARED_API void set_Frame(System::SharedPtr<Rectangle> value);
84  ASPOSE_PDF_SHARED_API CaretSymbol get_Symbol();
89  ASPOSE_PDF_SHARED_API void set_Symbol(CaretSymbol value);
90 
95  ASPOSE_PDF_SHARED_API void Accept(System::SharedPtr<AnnotationSelector> visitor) override;
96 
101  ASPOSE_PDF_SHARED_API CaretAnnotation(System::SharedPtr<Document> document);
108 
109 protected:
110 
111  ASPOSE_PDF_SHARED_API void WriteXfdf(System::SharedPtr<System::Xml::XmlWriter> writer) override;
112  ASPOSE_PDF_SHARED_API void ReadXfdf(System::SharedPtr<System::Xml::XmlReader> reader) override;
113 
120 
121  MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(CaretAnnotation, CODEPORTING_ARGS(System::SharedPtr<Aspose::Pdf::Engine::Data::IPdfObject> engineAnnot, System::SharedPtr<Document> document));
122 
123  virtual ASPOSE_PDF_SHARED_API ~CaretAnnotation();
124 
125 };
126 
127 } // namespace Annotations
128 } // namespace Pdf
129 } // namespace Aspose
130 
131 
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
CaretSymbol
A symbol to be associated with the caret.
Definition: CaretSymbol.h:22
Class representing Caret annotation.
Definition: CaretAnnotation.h:55
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.