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
00070 static Text Create(SDF::SDFDoc& doc, const Point& pos, const UString& contents = UString("") );
00071
00072
00080 bool IsOpen() const;
00081
00090 void SetOpen(bool isopen);
00091
00097 enum Icon
00098 {
00099 e_Comment,
00100 e_Key,
00101 e_Help,
00102 e_NewParagraph,
00103 e_Paragraph,
00104 e_Insert,
00105 e_Note,
00106 e_Unknown
00107 };
00108
00117 Icon GetIcon() const;
00118
00137 const char* GetIconName() const;
00138
00148 void SetIcon(Icon icon=e_Note);
00149
00169 void SetIcon(const char* icon);
00170
00178 UString GetState() const;
00179
00187 void SetState(const UString& state="");
00188
00195 UString GetStateModel() const;
00196
00203 void SetStateModel(const UString& sm );
00204
00206 #ifndef SWIGHIDDEN
00207 Text(TRN_Annot text);
00208 #endif
00210
00211 };
00212 };
00213 };
00214 };
00215 #include <Impl/Page.inl>
00216 #endif