AnnotationFlags.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 #include <system/object_ext.h>
5 #include <system/enum_helpers.h>
6 #include <system/enum.h>
7 
8 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
9 
10 namespace Aspose {
11 
12 namespace Pdf {
13 
14 namespace Annotations {
15 
19 enum class AnnotationFlags
20 {
24  Default = 0,
30  Invisible = 1,
38  Hidden = 2,
44  Print = 4,
50  NoZoom = 8,
56  NoRotate = 16,
62  NoView = 32,
69  ReadOnly = 64,
75  Locked = 128,
80  ToggleNoView = 256,
86  LockedContents = 512
87 };
88 
90 DECLARE_USING_GLOBAL_OPERATORS
91 
93 {
95  typedef System::Object BaseType;
96 
97  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
98  RTTI_INFO_DECL();
99 
100 public:
101 
102  static System::String ToString(AnnotationFlags value);
103  static System::String ToXfdfString(AnnotationFlags value);
104  static AnnotationFlags ToEnum(System::String value);
105 
106 };
107 
108 } // namespace Annotations
109 } // namespace Pdf
110 } // namespace Aspose
111 
112 DECLARE_USING_ENUM_OPERATORS(Aspose::Pdf::Annotations);
113 template<>
114 struct EnumMetaInfo<Aspose::Pdf::Annotations::AnnotationFlags>
115 {
116  typedef void Flags;
117  static const ASPOSE_PDF_SHARED_API std::array<std::pair<Aspose::Pdf::Annotations::AnnotationFlags, const char_t*>, 11>& values();
118 };
119 
120 
121 
If set, print the annotation when the page is printed. If clear, never print the annotation, regardless of whether it is displayed on the screen. This can be useful, for example, for annotations representing interactive pushbuttons, which would serve no meaningful purpose on the printed page.
String class used across the library. Is a substitute for C# System.String when translating code...
Definition: string.h:121
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:64
If set, do not scale the annotation�s appearance to match the magnification of the page...
If set, do not display or print the annotation or allow it to interact with the user, regardless of its annotation type or whether an annotation handler is available. In cases where screen space is limited, the ability to hide and show annotations selectively can be used in combination with appearance streams to display auxiliary pop-up information similar in function to online help systems.
If set, invert the interpretation of the NoView flag for certain events. A typical use is to have an ...
If set, do not allow the annotation to be deleted or its properties (including position and size) to ...
If set, do not display the annotation if it does not belong to one of the standard annotation types a...
If set, do not allow the annotation to interact with the user. The annotation may be displayed or pri...
If set, do not rotate the annotation�s appearance to match the rotation of the page. The upper-left corner of the annotation rectangle remains in a fixed location on the page, regardless of the page rotation.
DECLARE_ENUM_OPERATORS(Aspose::Pdf::Annotations::AnnotationFlags)
Definition: AFRelationship.h:4
Definition: BaseActionCollection.h:12
AnnotationFlags
A set of flags specifying various characteristics of the annotation.
Definition: AnnotationFlags.h:19
If set, do not display the annotation on the screen or allow it to interact with the user...
If set, do not allow the contents of the annotation to be modified by the user. This flag does not re...
Whole PDF file will be submitted.