From 6fd7f5b1c931051b9fff31436955c1c6af00d135 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 3 Jan 2014 14:38:01 +0000 Subject: convert import library dialog to .ui Change-Id: Iaedcbeb5618ece65692a9688ccb5c13aad1e6626 --- basctl/source/basicide/moduldl2.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'basctl/source/basicide/moduldl2.cxx') diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index 9a4c1a1ff72c..4edc506747b5 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -173,6 +173,26 @@ CheckBox::CheckBox( Window* pParent, const ResId& rResId ) Init(); } +CheckBox::CheckBox(Window* pParent, WinBits nStyle) + : SvTabListBox(pParent, nStyle) + , eMode(ObjectMode::Module) + , m_aDocument(ScriptDocument::getApplicationScriptDocument()) +{ + long aTabs_[] = { 1, 12 }; // TabPos needs at least one... + // 12 because of the CheckBox + SetTabs( aTabs_ ); + Init(); +} + +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeCheckBox(Window *pParent, VclBuilder::stringmap &rMap) +{ + WinBits nWinBits = WB_TABSTOP; + OString sBorder = VclBuilder::extractCustomProperty(rMap); + if (!sBorder.isEmpty()) + nWinBits |= WB_BORDER; + return new CheckBox(pParent, nWinBits); +} + //---------------------------------------------------------------------------- CheckBox::~CheckBox() -- cgit