summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-24 16:57:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-24 19:31:56 +0100
commitadfacdd91cb67ed7f2ae0d4991537211d263278d (patch)
treea004e2234d670ef5cb8a693c1af6996ef1c41c3d /svx
parentf6b05adfb00e2b75c5c8582593c4acff3bd25724 (diff)
adapt code to protect sheet .ui
Change-Id: Ic3c375e87cf89a3956f3703c6facbcbe5ffd5d58
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/checklbx.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx
index 1a9e0192f5e7..266eac6b2638 100644
--- a/svx/source/dialog/checklbx.cxx
+++ b/svx/source/dialog/checklbx.cxx
@@ -19,6 +19,8 @@
#include <tools/shl.hxx>
+#include <svtools/treelistentry.hxx>
+
#define _SVX_CHECKLBX_CXX
#include <svx/checklbx.hxx>
@@ -26,7 +28,7 @@
#include <svx/dialogs.hrc>
-#include "svtools/treelistentry.hxx"
+#include <vcl/builder.hxx>
// class SvxCheckListBox -------------------------------------------------
@@ -38,6 +40,15 @@ SvxCheckListBox::SvxCheckListBox( Window* pParent, WinBits nWinStyle ) :
Init_Impl();
}
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxCheckListBox(Window *pParent, VclBuilder::stringmap &rMap)
+{
+ WinBits nWinStyle = WB_TABSTOP;
+ OString sBorder = VclBuilder::extractCustomProperty(rMap);
+ if (!sBorder.isEmpty())
+ nWinStyle |= WB_BORDER;
+ return new SvxCheckListBox(pParent, nWinStyle);
+}
+
// -----------------------------------------------------------------------
SvxCheckListBox::SvxCheckListBox( Window* pParent, const ResId& rResId ) :