00001
00002
00003
00004
00005
00006 #ifndef H_PDFTRON_PDF_CPPWRAP_RUBBERSTAMP
00007 #define H_PDFTRON_PDF_CPPWRAP_RUBBERSTAMP
00008
00009
00010 #include <PDF/Annots/Markup.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014 namespace Annots {
00019 class RubberStamp : public Markup
00020 {
00021 public:
00027 RubberStamp(SDF::Obj d = 0);
00028
00034 RubberStamp(const Annot& ann) : Markup(ann.GetSDFObj()) {}
00035
00039 enum Icon
00040 {
00041 e_Approved,
00042 e_Experimental,
00043 e_NotApproved,
00044 e_AsIs,
00045 e_Expired,
00046 e_NotForPublicRelease,
00047 e_Confidential,
00048 e_Final,
00049 e_Sold,
00050 e_Departmental,
00051 e_ForComment,
00052 e_TopSecret,
00053 e_ForPublicRelease,
00054 e_Draft,
00055 e_Unknown
00056 };
00057
00066 static RubberStamp Create(SDF::SDFDoc& doc, const Rect& pos, Icon icon= e_Draft);
00067
00075 Icon GetIcon() const;
00076
00084 void SetIcon(Icon type = e_Draft);
00085
00110 const char* GetIconName() const;
00111
00136 void SetIcon(const char* icon);
00137
00139 RubberStamp(TRN_Annot rubberstamp);
00141
00142 };
00143 };
00144 };
00145 };
00146 #include <Impl/Page.inl>
00147 #endif