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-2018 by PDFTron Systems 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 
57  static Link Create(SDF::SDFDoc& doc, const Rect& pos, const Action& action);
58 
62  void RemoveAction();
63 
71  Action GetAction() const;
72 
81  void SetAction(const Action& action);
82 
95  {
100  };
101 
110 
120 
131  int GetQuadPointCount() const;
132 
145  QuadPoint GetQuadPoint(int idx) const;
146 
159  void SetQuadPoint(int idx, const QuadPoint& qp);
160 
168  static UString GetNormalizedUrl(const UString& url);
169 
171  #ifndef SWIGHIDDEN
172  Link(TRN_Annot link);
173  #endif
174 
176 };//class Link
177  };//namespace Annot
178  };//namespace PDF
179 };//namespace pdftron
180 
181 #include <Impl/Page.inl>
182 
183 #endif // PDFTRON_H_CPPPDFAnnotsLink
SDF::Obj GetSDFObj() const

© 2002-2014 PDFTron Systems Inc.