From df311b82a3df1576732dcf74a45c47316d31f7ee Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 16 Mar 2013 16:35:34 -0300 Subject: Widget UI for Calc cell alignment page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Format - cell, alignment tab Change-Id: I78e4252064671720d41ad3af086b41d2efe06ac1 Reviewed-on: https://gerrit.libreoffice.org/2773 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- svx/source/dialog/dialcontrol.cxx | 13 +++++++++++++ svx/source/dialog/wrapfield.cxx | 11 +++++++++++ 2 files changed, 24 insertions(+) (limited to 'svx/source') diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index 95f67deb8fef..a5a1eac5011f 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -25,6 +25,7 @@ #include #include #include +#include namespace svx { @@ -289,10 +290,22 @@ DialControl::DialControl( Window* pParent, const ResId& rResId ) : Init( GetOutputSizePixel() ); } +DialControl::DialControl( Window* pParent, WinBits nBits ) : + Control( pParent, nBits ), + mpImpl( new DialControl_Impl( *this ) ) +{ + Init( GetOutputSizePixel() ); +} + DialControl::~DialControl() { } +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeDialControl(Window *pParent, VclBuilder::stringmap &) +{ + return new DialControl(pParent, WB_BORDER | WB_TABSTOP); +} + void DialControl::Paint( const Rectangle& ) { Point aPos; diff --git a/svx/source/dialog/wrapfield.cxx b/svx/source/dialog/wrapfield.cxx index 0df7da55f977..76302d801ca3 100644 --- a/svx/source/dialog/wrapfield.cxx +++ b/svx/source/dialog/wrapfield.cxx @@ -18,6 +18,7 @@ */ #include "svx/wrapfield.hxx" +#include namespace svx { @@ -26,6 +27,16 @@ WrapField::WrapField( Window* pParent, const ResId& rResId ) : { } +WrapField::WrapField( Window* pParent, WinBits nBits ) : + NumericField( pParent, nBits ) +{ +} + +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeWrapField(Window *pParent, VclBuilder::stringmap &) +{ + return new WrapField(pParent, WB_SPIN|WB_REPEAT|WB_BORDER|WB_TABSTOP); +} + void WrapField::Up() { SetValue( ((GetValue() + GetSpinSize() - GetMin()) % (GetMax() + 1)) + GetMin() ); -- cgit