diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-01-17 14:16:35 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-01-18 12:46:43 +0000 |
commit | 77f6c7bb7d2241f605a111ff099ce50fb2562440 (patch) | |
tree | 3bb7363634934ac0a8cfbc3c6d60c17de312af95 /svx/source/dialog | |
parent | a17a052ef226a431414312e02dbc52048aa001db (diff) |
split out background page and adapt code to .ui
I've being putting this one off for a while as its a complicated
set of hidden pieces shows for different background types
format->frame->background shows transparency option
table->properties->background shows "for cell/table/row" options
flipping as graphic/color should show different contents
Change-Id: I4a63d3bbe8898ad2421d6ddef011da9ae67b5a4f
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/dlgctrl.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 42afbba3d0ab..b6ad22a45455 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -18,6 +18,7 @@ */ #include <tools/shl.hxx> +#include <vcl/builder.hxx> #include <vcl/svapp.hxx> #include <svx/xtable.hxx> @@ -81,6 +82,28 @@ SvxRectCtl::SvxRectCtl( Window* pParent, const ResId& rResId, RECT_POINT eRpt, Resize_Impl(); } +SvxRectCtl::SvxRectCtl(Window* pParent, RECT_POINT eRpt, + sal_uInt16 nBorder, sal_uInt16 nCircle, CTL_STYLE eStyle) + : Control(pParent, WB_BORDER | WB_TABSTOP) + , pAccContext(NULL) + , nBorderWidth(nBorder) + , nRadius(nCircle) + , eDefRP(eRpt) + , eCS(eStyle) + , pBitmap(NULL) + , m_nState(0) + , mbCompleteDisable(false) +{ + SetMapMode(MAP_100TH_MM); + Resize_Impl(); +} + + +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxRectCtl(Window *pParent, VclBuilder::stringmap &) +{ + return new SvxRectCtl(pParent); +} + // ----------------------------------------------------------------------- SvxRectCtl::~SvxRectCtl() |