summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/numfmtlb.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-17 13:52:23 +0200
committerNoel Grandin <noel@peralex.com>2015-04-17 13:52:58 +0200
commit5459c4a7312ce7bc0326978f4164441e76e5d5a4 (patch)
treedd13f8540747000e8895bcf946f83ba42d8ba1d0 /sw/source/uibase/utlui/numfmtlb.cxx
parent9e43761446db5b085dbabea5df00f6fc253167ac (diff)
restore these extern methods, they are used by VclBuilder
Change-Id: I4c20e941975b6eb872729b351eb1af901adba649
Diffstat (limited to 'sw/source/uibase/utlui/numfmtlb.cxx')
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx
index 7710c70a9193..64590d86aadf 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -68,6 +68,25 @@ NumFormatListBox::NumFormatListBox(vcl::Window* pWin, WinBits nStyle) :
Init(css::util::NumberFormat::NUMBER, true);
}
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeNumFormatListBox(vcl::Window *pParent, VclBuilder::stringmap &rMap)
+{
+ WinBits nBits = WB_LEFT|WB_VCENTER|WB_3DLOOK;
+
+ bool bDropdown = VclBuilder::extractDropdown(rMap);
+
+ if (bDropdown)
+ nBits |= WB_DROPDOWN;
+ else
+ nBits |= WB_BORDER;
+
+ NumFormatListBox* pListBox = new NumFormatListBox(pParent, nBits|WB_SIMPLEMODE);
+
+ if (bDropdown)
+ pListBox->EnableAutoSize(true);
+
+ return pListBox;
+}
+
void NumFormatListBox::Init(short nFormatType, bool bUsrFmts)
{
SwView *pView = GetView();