diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-18 13:36:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-20 09:52:08 +0200 |
commit | 25a47c5cd54c73e754de988bde8ec8a202d27717 (patch) | |
tree | 479c07ba52f718f03770fba60121d2a0ef3a3b08 /include/vcl/pdfwriter.hxx | |
parent | 7a0af37989d1f1b508a61f28e785c5b1f27d58af (diff) |
convert TEXT_DRAW constants to scoped enum
Change-Id: Ic0f7f8fa236bb478b3598ae3fd3c1b30ebbf1a01
Diffstat (limited to 'include/vcl/pdfwriter.hxx')
-rw-r--r-- | include/vcl/pdfwriter.hxx | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx index d8c64c483963..05679575d125 100644 --- a/include/vcl/pdfwriter.hxx +++ b/include/vcl/pdfwriter.hxx @@ -29,6 +29,7 @@ #include <vcl/font.hxx> #include <vcl/graphictools.hxx> #include <vcl/outdevstate.hxx> +#include <vcl/outdev.hxx> #include <com/sun/star/io/XOutputStream.hpp> #include <com/sun/star/beans/XMaterialHolder.hpp> @@ -225,10 +226,10 @@ public: protected: WidgetType Type; // primitive RTTI public: - OUString Name; // a distinct name to identify the control - OUString Description;// descriptive text for the contro (e.g. for tool tip) - OUString Text; // user text to appear on the control - sal_uInt16 TextStyle; // style flags + OUString Name; // a distinct name to identify the control + OUString Description;// descriptive text for the contro (e.g. for tool tip) + OUString Text; // user text to appear on the control + DrawTextFlags TextStyle; // style flags bool ReadOnly; Rectangle Location; // describes the area filled by the control bool Border; // true: widget should have a border, false: no border @@ -242,9 +243,9 @@ public: /* style flags for text are those for OutputDevice::DrawText allowed values are: - TEXT_DRAW_LEFT, TEXT_DRAW_CENTER, TEXT_DRAW_RIGHT, TEXT_DRAW_TOP, - TEXT_DRAW_VCENTER, TEXT_DRAW_BOTTOM, - TEXT_DRAW_MULTILINE, TEXT_DRAW_WORDBREAK + DrawTextFlags::Left, DrawTextFlags::Center, DrawTextFlags::Right, DrawTextFlags::Top, + DrawTextFlags::VCenter, DrawTextFlags::Bottom, + DrawTextFlags::MultiLine, DrawTextFlags::WordBreak if TextStyle is 0, then each control will fill in default values */ @@ -257,7 +258,7 @@ public: AnyWidget( WidgetType eType ) : Type( eType ), - TextStyle( 0 ), + TextStyle( DrawTextFlags::NONE ), ReadOnly( false ), Border( false ), BorderColor( COL_TRANSPARENT ), @@ -779,7 +780,7 @@ The following structure describes the permissions used in PDF security const OUString& rStr, sal_Int32 nIndex, sal_Int32 nLen ); void DrawText( const Rectangle& rRect, - const OUString& rStr, sal_uInt16 nStyle = 0 ); + const OUString& rStr, DrawTextFlags nStyle = DrawTextFlags::NONE ); void DrawPixel( const Point& rPt, const Color& rColor ); void DrawPixel( const Point& rPt ) |