summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/inc/svx/simptabl.hxx1
-rw-r--r--svx/source/dialog/simptabl.cxx16
2 files changed, 16 insertions, 1 deletions
diff --git a/svx/inc/svx/simptabl.hxx b/svx/inc/svx/simptabl.hxx
index 597ea8df3f42..9bc881793a6b 100644
--- a/svx/inc/svx/simptabl.hxx
+++ b/svx/inc/svx/simptabl.hxx
@@ -41,6 +41,7 @@ protected:
public:
SvxSimpleTableContainer( Window* pParent, const ResId& rResId );
+ SvxSimpleTableContainer( Window* pParent, WinBits nBits = WB_BORDER | WB_3DLOOK );
void SetTable(SvxSimpleTable* pTable);
diff --git a/svx/source/dialog/simptabl.cxx b/svx/source/dialog/simptabl.cxx
index 979136a1dab9..abed19425cda 100644
--- a/svx/source/dialog/simptabl.cxx
+++ b/svx/source/dialog/simptabl.cxx
@@ -18,6 +18,7 @@
*/
#include <svx/simptabl.hxx>
+#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include <comphelper/processfactory.hxx>
@@ -27,13 +28,26 @@
// SvxSimpleTableContainer ------------------------------------------------------
-SvxSimpleTableContainer::SvxSimpleTableContainer( Window* pParent, const ResId& rResId)
+SvxSimpleTableContainer::SvxSimpleTableContainer(Window* pParent, const ResId& rResId)
: Control(pParent, rResId)
, m_pTable(NULL)
{
SetBorderStyle(WINDOW_BORDER_NOBORDER);
}
+SvxSimpleTableContainer::SvxSimpleTableContainer(Window* pParent, WinBits nBits)
+ : Control(pParent, nBits)
+ , m_pTable(NULL)
+{
+ SetBorderStyle(WINDOW_BORDER_NOBORDER);
+}
+
+extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxSimpleTableContainer(Window *pParent,
+ VclBuilder::stringmap &)
+{
+ return new SvxSimpleTableContainer(pParent);
+}
+
void SvxSimpleTableContainer::SetTable(SvxSimpleTable* pTable)
{
m_pTable = pTable;