diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-03 14:38:01 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-03 14:55:42 +0000 |
commit | 6fd7f5b1c931051b9fff31436955c1c6af00d135 (patch) | |
tree | 85bd45f9bb554ab99abea0e3fd9fbd886156dbbb /basctl/source/basicide/moduldl2.cxx | |
parent | bad191f1d643167a815077b0764306b8ddc6f9bd (diff) |
convert import library dialog to .ui
Change-Id: Iaedcbeb5618ece65692a9688ccb5c13aad1e6626
Diffstat (limited to 'basctl/source/basicide/moduldl2.cxx')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
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() |