diff options
Diffstat (limited to 'svx/source')
-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() |