diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-03 20:53:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-03 21:27:09 +0000 |
commit | 75137e6e9f0479c72543993f647f43480cde6010 (patch) | |
tree | 4511d2453066b25a725aa38c169c1dedda1052dc /svx/source/dialog/langbox.cxx | |
parent | 3aa3551ed73a026d552cd967988b987532f765ce (diff) |
convert default language dialog to .ui
Change-Id: Ia4d5b983168d6645fce8e2549db2b6c3fd410690
Diffstat (limited to 'svx/source/dialog/langbox.cxx')
-rw-r--r-- | svx/source/dialog/langbox.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 3b3eca6e8f65..501a2fe615d2 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -136,9 +136,15 @@ SvxLanguageBox::SvxLanguageBox( Window* pParent, WinBits nBits, sal_Bool bCheck Init(); } -extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxLanguageBox(Window *pParent, VclBuilder::stringmap &) +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxLanguageBox(Window *pParent, VclBuilder::stringmap &rMap) { - SvxLanguageBox *pListBox = new SvxLanguageBox(pParent, WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_TABSTOP); + WinBits nBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP; + bool bDropdown = VclBuilder::extractDropdown(rMap); + if (bDropdown) + nBits |= WB_DROPDOWN; + else + nBits |= WB_BORDER; + SvxLanguageBox *pListBox = new SvxLanguageBox(pParent, nBits); pListBox->EnableAutoSize(true); return pListBox; } |