- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Link.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsLink
6 #define PDFTRON_H_CPPPDFAnnotsLink
7
8 #include <PDF/Annot.h>
9 #include <PDF/QuadPoint.h>
10
11 namespace pdftron {
12 namespace PDF {
13 namespace Annots {
14
19 class Link : public Annot
20 {
21 public:
28 Link(SDF::Obj d = 0);
29
36 Link(const Annot& ann) : Annot(ann.GetSDFObj()) {}
37
46 static Link Create(SDF::SDFDoc& doc, const Rect& pos);
47 static Link CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
48
58 static Link Create(SDF::SDFDoc& doc, const Rect& pos, const Action& action);
59 static Link CreateAnnot(SDF::SDFDoc& doc, const Rect& pos, const Action& action);
60
64 void RemoveAction();
65
73 Action GetAction() const;
74
83 void SetAction(const Action& action);
84
96 enum HighlightingMode
97 {
98 e_none,
99 e_invert,
100 e_outline,
101 e_push
102 };
103
111 HighlightingMode GetHighlightingMode() const;
112
121 void SetHighlightingMode(HighlightingMode mode);
122
133 int GetQuadPointCount() const;
134
147 QuadPoint GetQuadPoint(int idx) const;
148
161 void SetQuadPoint(int idx, const QuadPoint& qp);
162
170 static UString GetNormalizedUrl(const UString& url);
171
172 // @cond PRIVATE_DOC
173 #ifndef SWIGHIDDEN
174 Link(TRN_Annot link);
175 #endif
176 // @endcond
177
178 };//class Link
179 };//namespace Annot
180 };//namespace PDF
181 };//namespace pdftron
182
183 #include <Impl/Page.inl>
184
185 #endif // PDFTRON_H_CPPPDFAnnotsLink
pdftron::PDF::Annot::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Annots::Link::GetHighlightingMode
HighlightingMode GetHighlightingMode() const
pdftron::PDF::Annots::Link
Definition: Link.h:19
pdftron::PDF::Annots::Link::GetNormalizedUrl
static UString GetNormalizedUrl(const UString &url)
pdftron::PDF::Annots::Link::e_outline
Definition: Link.h:100
pdftron::PDF::Annots::Link::Link
Link(const Annot &ann)
Definition: Link.h:36
pdftron::PDF::Annots::Link::GetQuadPoint
QuadPoint GetQuadPoint(int idx) const
pdftron::PDF::Annots::Link::e_push
Definition: Link.h:101
pdftron::PDF::QuadPoint
Definition: QuadPoint.h:14
pdftron::PDF::Annots::Link::SetHighlightingMode
void SetHighlightingMode(HighlightingMode mode)
pdftron::PDF::Rect
Definition: Rect.h:28
pdftron::PDF::Annots::Link::Create
static Link Create(SDF::SDFDoc &doc, const Rect &pos)
pdftron::SDF::SDFDoc
Definition: SDFDoc.h:67
pdftron::PDF::Annots::Link::GetAction
Action GetAction() const
pdftron::PDF::Annots::Link::e_invert
Definition: Link.h:99
pdftron::PDF::Annots::Link::e_none
Definition: Link.h:98
pdftron::PDF::Annots::Link::RemoveAction
void RemoveAction()
pdftron::PDF::Annots::Link::GetQuadPointCount
int GetQuadPointCount() const
QuadPoint.h
pdftron::PDF::Annots::Link::SetAction
void SetAction(const Action &action)
pdftron::PDF::Annots::Link::Link
Link(SDF::Obj d=0)
pdftron::PDF::Annot
Definition: Annot.h:33
pdftron::PDF::Action
Definition: Action.h:31
pdftron::PDF::Annots::Link::SetQuadPoint
void SetQuadPoint(int idx, const QuadPoint &qp)
pdftron::SDF::Obj
Definition: Obj.h:40
Annot.h
pdftron::PDF::Annots::Link::HighlightingMode
HighlightingMode
Definition: Link.h:96
pdftron::UString
Definition: UString.h:27
pdftron::PDF::Annots::Link::CreateAnnot
static Link CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)