![]() |
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_REDACTION 00007 #define H_PDFTRON_PDF_CPPWRAP_REDACTION 00008 00009 #include <PDF/Annots/Markup.h> 00010 #include <PDF/QuadPoint.h> 00011 00012 namespace pdftron { 00013 namespace PDF { 00014 namespace Annots { 00048 class Redaction : public Markup 00049 { 00050 public: 00056 Redaction(SDF::Obj d = 0); 00057 00063 Redaction(const Annot& ann) : Markup(ann.GetSDFObj()) {} 00064 00073 static Redaction Create(SDF::SDFDoc& doc, const Rect& pos); 00074 00083 int GetQuadPointCount(); 00084 00095 QuadPoint GetQuadPoint(int idx) const; 00096 00107 void SetQuadPoint(int idx, const QuadPoint& qp); 00108 00120 SDF::Obj GetAppFormXO()const; 00121 00122 00135 void SetAppFormXO(SDF::Obj formxo); 00136 00146 UString GetOverlayText() const; 00147 00157 void SetOverlayText(const UString& title); 00158 00169 bool GetUseRepeat() const; 00170 00181 void SetUseRepeat(bool repeat=false); 00182 00192 UString GetOverlayTextAppearance() const; 00193 00203 void SetOverlayTextAppearance(const UString& app); 00204 00209 enum QuadForm 00210 { 00211 e_LeftJustified, 00212 e_Centered, 00213 e_RightJustified, 00214 e_None 00215 }; 00216 00223 QuadForm GetQuadForm() const; 00224 00233 void SetQuadForm(QuadForm form=e_LeftJustified); 00234 00236 Redaction(TRN_Annot redaction); 00238 00239 }; //class Redaction 00240 }; //namespace Annot 00241 }; //namespace PDF 00242 }; //namespace pdftron 00243 #include <Impl/Page.inl> 00244 #endif