summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-08-17 15:11:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-08-17 15:21:34 +0100
commit4eb5b7f65c78327b2fafbadbcbfc88e21c6a8d7e (patch)
treeadd6fbcab75fb3357bb796fe5e66a06dab289d88 /svx
parent435238f3928125f8ab115fa2d7a98ec5e03fe5c0 (diff)
add SvxRectCtl::SetControlSettings and restore original settings
Change-Id: Ie307b3acb3e87bd87ec578e042b1cea29ab4839d
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dlgctrl.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx
index 5d592967e7fb..af07280643fb 100644
--- a/svx/source/dialog/dlgctrl.cxx
+++ b/svx/source/dialog/dlgctrl.cxx
@@ -96,6 +96,15 @@ SvxRectCtl::SvxRectCtl(Window* pParent, RECT_POINT eRpt,
Resize_Impl();
}
+void SvxRectCtl::SetControlSettings(RECT_POINT eRpt, sal_uInt16 nBorder, sal_uInt16 nCircle, CTL_STYLE eStyle)
+{
+ nBorderWidth = nBorder;
+ nRadius = nCircle;
+ eDefRP = eRpt;
+ eCS = eStyle;
+ Resize_Impl();
+}
+
Size SvxRectCtl::GetOptimalSize() const
{
return LogicToPixel(Size(39, 39), MAP_APPFONT);