summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-02-23 21:11:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-02-24 23:17:18 +0000
commit3fd9e569d8a4c00020d5ac2db566e1ed7f920a6e (patch)
treefa2c8cc536aca1a0948293eda8d3a9a9a3f7a46a /svx
parent538ba011d7b598737c898cfcce1e0d7b00b40c84 (diff)
add requred custom widget entry points
Change-Id: I611133eda82a5c2f303e5938d47deb3fb295f26e
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/txencbox.hxx1
-rw-r--r--svx/source/dialog/txencbox.cxx15
2 files changed, 16 insertions, 0 deletions
diff --git a/svx/inc/svx/txencbox.hxx b/svx/inc/svx/txencbox.hxx
index 26efca33dd7b..b8b470116019 100644
--- a/svx/inc/svx/txencbox.hxx
+++ b/svx/inc/svx/txencbox.hxx
@@ -34,6 +34,7 @@ private:
public:
SvxTextEncodingBox( Window* pParent, const ResId& rResId );
+ SvxTextEncodingBox( Window* pParent, WinBits nBits );
~SvxTextEncodingBox();
/** Fill with all known encodings but exclude those matching one or more
diff --git a/svx/source/dialog/txencbox.cxx b/svx/source/dialog/txencbox.cxx
index 2b3714972c13..ef3040727dc7 100644
--- a/svx/source/dialog/txencbox.cxx
+++ b/svx/source/dialog/txencbox.cxx
@@ -24,6 +24,7 @@
#ifndef DISABLE_DBCONNECTIVITY
#include "svx/dbcharsethelper.hxx"
#endif
+#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include <rtl/tencinfo.h>
#include <rtl/locale.h>
@@ -41,6 +42,20 @@ SvxTextEncodingBox::SvxTextEncodingBox( Window* pParent, const ResId& rResId )
m_pEncTable = new SvxTextEncodingTable;
}
+SvxTextEncodingBox::SvxTextEncodingBox( Window* pParent, WinBits nBits )
+ : ListBox( pParent, nBits )
+{
+ m_pEncTable = new SvxTextEncodingTable;
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxTextEncodingBox(Window *pParent, VclBuilder::stringmap &)
+{
+ WinBits nWinBits = WB_LEFT|WB_DROPDOWN|WB_VCENTER|WB_3DLOOK|WB_SIMPLEMODE;
+ SvxTextEncodingBox *pListBox = new SvxTextEncodingBox(pParent, nWinBits);
+ pListBox->EnableAutoSize(true);
+ return pListBox;
+}
+
//------------------------------------------------------------------------
SvxTextEncodingBox::~SvxTextEncodingBox()