![]() |
00001 //--------------------------------------------------------------------------------------- 00002 // Copyright (c) 2001-2010 by PDFTron Systems Inc. All Rights Reserved. 00003 // Consult legal.txt regarding legal and license information. 00004 //--------------------------------------------------------------------------------------- 00005 00006 #ifndef H_PDFTRON_PDF_CPPWRAP_LINK 00007 #define H_PDFTRON_PDF_CPPWRAP_LINK 00008 00009 #include <PDF/Annot.h> 00010 #include <PDF/QuadPoint.h> 00011 00012 namespace pdftron { 00013 namespace PDF { 00014 namespace Annots { 00015 00020 class Link : public Annot 00021 { 00022 public: 00028 Link(SDF::Obj d = 0); 00029 00035 Link(const Annot& ann) : Annot(ann.GetSDFObj()) {} 00036 00045 static Link Create(SDF::SDFDoc& doc, const Rect& pos); 00046 00056 static Link Create(SDF::SDFDoc& doc, const Rect& pos, const Action& action); 00057 00061 void RemoveAction(); 00062 00070 Action GetAction() const; 00071 00080 void SetAction(const Action& action); 00081 00093 enum HighlightingMode 00094 { 00095 e_none, 00096 e_invert, 00097 e_outline, 00098 e_push 00099 }; 00100 00108 HighlightingMode GetHighlightingMode() const; 00109 00118 void SetHighlightingMode(HighlightingMode mode); 00119 00130 int GetQuadPointCount() const; 00131 00144 QuadPoint GetQuadPoint(int idx) const; 00145 00158 void SetQuadPoint(int idx, const QuadPoint& qp); 00159 00161 Link(TRN_Annot link); 00163 00164 };//class Link 00165 };//namespace Annot 00166 };//namespace PDF 00167 };//namespace pdftron 00168 #include <Impl/Page.inl> 00169 #endif