00001
00002
00003
00004
00005
00006 #ifndef H_PDFTRON_PDF_CPPWRAP_TEXT
00007 #define H_PDFTRON_PDF_CPPWRAP_TEXT
00008
00009 #include <PDF/Annots/Markup.h>
00010
00011 namespace pdftron {
00012 namespace PDF {
00013 namespace Annots {
00022 class Text : public Markup
00023 {
00024 public:
00030 Text(SDF::Obj d = 0);
00031
00037 Text(const Annot& mku) : Markup(mku.GetSDFObj()) {}
00038
00047
00048
00058 static Text Create(SDF::SDFDoc& doc, const Rect& pos, const UString& contents = UString("") );
00059
00069 static Text Create(SDF::SDFDoc& doc, const Point& pos, const UString& contents = UString("") );
00070
00071
00079 bool IsOpen() const;
00080
00089 void SetOpen(bool isopen);
00090
00096 enum Icon
00097 {
00098 e_Comment,
00099 e_Key,
00100 e_Help,
00101 e_NewParagraph,
00102 e_Paragraph,
00103 e_Insert,
00104 e_Note,
00105 e_Unknown
00106 };
00107
00116 Icon GetIcon() const;
00117
00136 const char* GetIconName() const;
00137
00147 void SetIcon(Icon icon=e_Note);
00148
00168 void SetIcon(const char* icon);
00169
00177 UString GetState() const;
00178
00186 void SetState(const UString& state="");
00187
00194 UString GetStateModel() const;
00195
00202 void SetStateModel(const UString& sm );
00203
00205 Text(TRN_Annot text);
00207
00208 };
00209 };
00210 };
00211 };
00212 #include <Impl/Page.inl>
00213 #endif