RegistrationMarkAnnotation.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include "Aspose.PDF.Cpp/InteractiveFeatures/Annotations/PrinterMarkAnnotation.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 AnnotationType;
16 enum class PrinterMarkSidePosition;
17 } // namespace Annotations
18 class Operator;
19 class Page;
20 class Point;
21 class Rectangle;
22 } // namespace Pdf
23 } // namespace Aspose
24 namespace System
25 {
26 namespace Collections
27 {
28 namespace Generic
29 {
30 template <typename> class List;
31 } // namespace Generic
32 } // namespace Collections
33 } // namespace System
34 
35 namespace Aspose {
36 
37 namespace Pdf {
38 
39 namespace Annotations {
40 
48 {
51 
52  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
53  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
54 
55 public:
56 
60  ASPOSE_PDF_SHARED_API PrinterMarkSidePosition get_Position() const;
64  ASPOSE_PDF_SHARED_API void set_Position(PrinterMarkSidePosition value);
68  ASPOSE_PDF_SHARED_API Aspose::Pdf::Annotations::AnnotationType get_AnnotationType() override;
69 
76 
81  ASPOSE_PDF_SHARED_API void Accept(System::SharedPtr<AnnotationSelector> visitor) override;
82 
83 protected:
84 
85  ASPOSE_PDF_SHARED_API void UpdateAppearances() override;
97  ASPOSE_PDF_SHARED_API void MoveOutsideOfPageBox() override;
98 
99  virtual ASPOSE_PDF_SHARED_API ~RegistrationMarkAnnotation();
100 
101 private:
102 
103  static const double LineWidth;
104  static const double MarkOffset;
105  static const double CrossSize;
106  static const double OuterCircleRadius;
107  static const double InnerCircleRadius;
108  static const double MarkSize;
109  PrinterMarkSidePosition _position;
110 
112  System::SharedPtr<Point> CalculateMarkCenter();
113 
114 };
115 
116 } // namespace Annotations
117 } // namespace Pdf
118 } // namespace Aspose
119 
120 
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:17
Abstract class representing printer mark annotation.
Definition: PrinterMarkAnnotation.h:36
Definition: Artifact.h:67
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
PrinterMarkSidePosition
Represents a position of a registration mark on a page.
Definition: PrinterMarkSidePosition.h:13
A printer&#39;s point (1/72 of an inch).
The coordinates are in the page coordinate context.
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Represents a Registration Mark annotation.
Definition: RegistrationMarkAnnotation.h:47
Whole PDF file will be submitted.