summaryrefslogtreecommitdiff
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
parent9e43761446db5b085dbabea5df00f6fc253167ac (diff)
restore these extern methods, they are used by VclBuilder
Change-Id: I4c20e941975b6eb872729b351eb1af901adba649
-rw-r--r--sw/source/uibase/utlui/condedit.cxx6
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx19
2 files changed, 25 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/condedit.cxx b/sw/source/uibase/utlui/condedit.cxx
index ca0c2521bab0..b15694b02b00 100644
--- a/sw/source/uibase/utlui/condedit.cxx
+++ b/sw/source/uibase/utlui/condedit.cxx
@@ -34,6 +34,12 @@ ConditionEdit::ConditionEdit(vcl::Window* pParent, WinBits nStyle)
{
}
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeConditionEdit(vcl::Window *pParent, VclBuilder::stringmap &rMap)
+{
+ VclBuilder::ensureDefaultWidthChars(rMap);
+ return new ConditionEdit(pParent, WB_LEFT|WB_VCENTER|WB_BORDER|WB_3DLOOK);
+}
+
// Drop possible, respectively format known?
sal_Int8 ConditionEdit::AcceptDrop( const AcceptDropEvent& /*rEvt*/ )
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();