summaryrefslogtreecommitdiff
path: root/include/svx/paraprev.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/svx/paraprev.hxx')
-rw-r--r--include/svx/paraprev.hxx119
1 files changed, 88 insertions, 31 deletions
diff --git a/include/svx/paraprev.hxx b/include/svx/paraprev.hxx
index 6a1e785fd3fe..018395331984 100644
--- a/include/svx/paraprev.hxx
+++ b/include/svx/paraprev.hxx
@@ -23,8 +23,6 @@
#include <editeng/svxenum.hxx>
#include <svx/svxdllapi.h>
-// enum ------------------------------------------------------------------
-
enum SvxPrevLineSpace
{
SVX_PREV_LINESPACE_1 = 0,
@@ -35,8 +33,6 @@ enum SvxPrevLineSpace
SVX_PREV_LINESPACE_DURCH
};
-// class SvxParaPrevWindow -----------------------------------------------
-
class SVX_DLLPUBLIC SvxParaPrevWindow : public vcl::Window
{
using Window::Draw;
@@ -62,39 +58,100 @@ private:
Rectangle Lines[9];
protected:
- virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE;
+ virtual void Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect) SAL_OVERRIDE;
virtual Size GetOptimalSize() const SAL_OVERRIDE;
- void DrawParagraph( bool bAll );
+ void DrawParagraph(vcl::RenderContext& rRenderContext, bool bAll);
public:
SvxParaPrevWindow( vcl::Window* pParent, WinBits nBits);
- void SetFirstLineOfst( short nNew ) { nFirstLineOfst = nNew; }
- void SetLeftMargin( long nNew ) { nLeftMargin = nNew; }
- void SetRightMargin( long nNew ) { nRightMargin = nNew; }
- void SetUpper( sal_uInt16 nNew ) { nUpper = nNew; }
- void SetLower( sal_uInt16 nNew ) { nLower = nNew; }
- void SetAdjust( SvxAdjust eNew ) { eAdjust = eNew; }
- void SetLastLine( SvxAdjust eNew ) { eLastLine = eNew; }
- void SetLineSpace( SvxPrevLineSpace eNew, sal_uInt16 nNew = 0 )
- { eLine = eNew; nLineVal = nNew; }
- void SetText( const OUString& rStr ) SAL_OVERRIDE { aText = rStr; }
- void SetSize( Size aNew ) { aSize = aNew; }
-
- short GetFirstLineOfst() const { return nFirstLineOfst; }
- long GetLeftMargin() const { return nLeftMargin; }
- long GetRightMargin() const { return nRightMargin; }
- sal_uInt16 GetUpper() const { return nUpper; }
- sal_uInt16 GetLower() const { return nLower; }
- SvxAdjust GetAdjust() const { return eAdjust; }
-
- SvxPrevLineSpace GetLineEnum() const { return eLine; }
- sal_uInt16 GetLineValue() const { return nLineVal; }
- OUString GetText() const SAL_OVERRIDE { return aText; }
- Size GetSize() const { return aSize; }
-
- void Draw( bool bAll ) { DrawParagraph( bAll ); }
+ void SetFirstLineOfst( short nNew )
+ {
+ nFirstLineOfst = nNew;
+ }
+ void SetLeftMargin( long nNew )
+ {
+ nLeftMargin = nNew;
+ }
+ void SetRightMargin( long nNew )
+ {
+ nRightMargin = nNew;
+ }
+ void SetUpper( sal_uInt16 nNew )
+ {
+ nUpper = nNew;
+ }
+ void SetLower( sal_uInt16 nNew )
+ {
+ nLower = nNew;
+ }
+ void SetAdjust( SvxAdjust eNew )
+ {
+ eAdjust = eNew;
+ }
+ void SetLastLine( SvxAdjust eNew )
+ {
+ eLastLine = eNew;
+ }
+ void SetLineSpace( SvxPrevLineSpace eNew, sal_uInt16 nNew = 0 )
+ {
+ eLine = eNew; nLineVal = nNew;
+ }
+ void SetText( const OUString& rStr ) SAL_OVERRIDE
+ {
+ aText = rStr;
+ }
+ void SetSize( Size aNew )
+ {
+ aSize = aNew;
+ }
+
+ short GetFirstLineOfst() const
+ {
+ return nFirstLineOfst;
+ }
+ long GetLeftMargin() const
+ {
+ return nLeftMargin;
+ }
+ long GetRightMargin() const
+ {
+ return nRightMargin;
+ }
+ sal_uInt16 GetUpper() const
+ {
+ return nUpper;
+ }
+ sal_uInt16 GetLower() const
+ {
+ return nLower;
+ }
+ SvxAdjust GetAdjust() const
+ {
+ return eAdjust;
+ }
+ SvxPrevLineSpace GetLineEnum() const
+ {
+ return eLine;
+ }
+ sal_uInt16 GetLineValue() const
+ {
+ return nLineVal;
+ }
+ OUString GetText() const SAL_OVERRIDE
+ {
+ return aText;
+ }
+ Size GetSize() const
+ {
+ return aSize;
+ }
+
+ void Draw(vcl::RenderContext& rRenderContext, bool bAll)
+ {
+ DrawParagraph(rRenderContext, bAll);
+ }
};
#endif