00001
00002
00003
00004
00005
00006 #ifndef H_PDFTRON_PDF_CPPWRAP_FREETEXT
00007 #define H_PDFTRON_PDF_CPPWRAP_FREETEXT
00008
00009 #include <PDF/Annots/Line.h>
00010 #include <PDF/QuadPoint.h>
00011
00012 namespace pdftron {
00013 namespace PDF {
00014 namespace Annots {
00021 class FreeText : public Markup
00022 {
00023 public:
00029 FreeText(SDF::Obj d = 0);
00030
00036 FreeText(const Annot& ann) : Markup(ann.GetSDFObj()) {}
00037
00046 static FreeText Create(SDF::SDFDoc& doc, const Rect& pos);
00047
00057 UString GetDefaultAppearance() const;
00058
00068 void SetDefaultAppearance(const char* app_str);
00069
00080 int GetQuaddingFormat() const;
00081
00094 void SetQuaddingFormat(const int app_qform);
00095
00096
00110 void GetCalloutLinePoints(Point& p1, Point& p2, Point& p3) const;
00111
00121 void SetCalloutLinePoints(const Point& p1, const Point& p2, const Point& p3);
00122
00131 void SetCalloutLinePoints(const Point& p1, const Point& p2);
00132
00133
00137 enum IntentName
00138 {
00139 e_FreeText,
00140 e_FreeTextCallout,
00141 e_FreeTextTypeWriter,
00142 e_Unknown
00143 };
00144
00152 IntentName GetIntentName() const;
00153
00161 void SetIntentName(IntentName mode=e_FreeText);
00162
00163
00164
00175 Line::EndingStyle GetEndingStyle() const;
00176
00189 void SetEndingStyle( Line::EndingStyle est);
00190
00202 void SetEndingStyle(const char* est);
00203
00216 void SetTextColor( const ColorPt& color, int col_comp );
00217
00229 void GetTextColor( ColorPt& color, int& col_comp );
00230
00243 void SetLineColor( const ColorPt& color, int col_comp );
00244
00256 void GetLineColor( ColorPt& color, int& col_comp );
00257
00259 FreeText(TRN_Annot freetext);
00261
00262 };
00263
00264 }
00265 }
00266 }
00267 #include <Impl/Page.inl>
00268 #endif
00269
00270
00271
00272
00273