![]() |
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_MARKUP 00007 #define H_PDFTRON_PDF_CPPWRAP_MARKUP 00008 00009 #include <PDF/Annots/Popup.h> 00010 #include <PDF/Date.h> 00011 00012 namespace pdftron { 00013 namespace PDF { 00014 namespace Annots { 00044 class Markup : public Annot 00045 { 00046 public: 00047 00053 Markup(SDF::Obj d = 0); 00054 00060 Markup(const Annot& ann) : Annot(ann.GetSDFObj()) {} 00061 00074 UString GetTitle(); 00075 00087 void SetTitle(const UString& title); 00099 void SetTitle(const char* title); 00100 00108 Popup GetPopup() const; 00109 00118 void SetPopup(const Popup& bs); 00119 00131 double GetOpacity() const; 00132 00147 void SetOpacity(double op); 00148 00157 UString GetSubject() const; 00158 00167 void SetSubject(const UString& subj); 00168 00172 Date GetCreationDates() const; 00173 00180 void SetCreationDates(const Date& dt); 00181 00185 enum BorderEffect 00186 { 00187 e_None, 00188 e_Cloudy 00189 }; 00190 00202 BorderEffect GetBorderEffect() const; 00203 00217 void SetBorderEffect(BorderEffect effect = e_None); 00218 00230 double GetBorderEffectIntensity() const; 00231 00245 void SetBorderEffectIntensity(double intensity = 0); 00246 00260 ColorPt GetInteriorColor() const; 00261 00269 int GetInteriorColorCompNum() const; 00270 00292 void SetInteriorColor(const ColorPt& c, int CompNum); 00293 00310 Rect GetContentRect() const; 00311 00327 void SetContentRect(const Rect& cr); 00328 00345 Rect GetPadding() const; 00346 00364 void SetPadding(const Rect& rd); 00365 void SetPadding(double x); // this creates 'x' amount of space between the content and the outer rectangle 00366 00367 00368 00369 00371 Markup(TRN_Annot markup); 00373 00374 };//class Markup 00375 };//namespace Annot 00376 };//namespace PDF 00377 };//namespace pdftron 00378 #include <Impl/Markup.inl> 00379 #endif