diff options
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/DocumentInfoPreview.cxx | 6 | ||||
-rw-r--r-- | svtools/source/contnr/fileview.cxx | 4 | ||||
-rw-r--r-- | svtools/source/contnr/simptabl.cxx | 9 | ||||
-rw-r--r-- | svtools/source/contnr/svtabbx.cxx | 5 | ||||
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 4 |
5 files changed, 11 insertions, 17 deletions
diff --git a/svtools/source/contnr/DocumentInfoPreview.cxx b/svtools/source/contnr/DocumentInfoPreview.cxx index 8efa8de2847f..f94ee83e6585 100644 --- a/svtools/source/contnr/DocumentInfoPreview.cxx +++ b/svtools/source/contnr/DocumentInfoPreview.cxx @@ -32,6 +32,7 @@ #include <vcl/builder.hxx> #include <vcl/txtattr.hxx> #include <vcl/settings.hxx> +#include <vcl/builderfactory.hxx> #include <tools/datetime.hxx> #include <tools/urlobj.hxx> #include <unotools/pathoptions.hxx> @@ -65,10 +66,7 @@ void ODocumentInfoPreview::dispose() Window::dispose(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeODocumentInfoPreview(vcl::Window *pParent, VclBuilder::stringmap&) -{ - return new ODocumentInfoPreview(pParent, WB_BORDER | WB_READONLY); -} +VCL_BUILDER_FACTORY_ARGS(ODocumentInfoPreview, WB_BORDER | WB_READONLY) void ODocumentInfoPreview::Resize() { m_pEditWin->SetPosSizePixel(Point(0, 0), GetOutputSize()); diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 0c13c548e5e0..60e53181b427 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -66,6 +66,7 @@ #include <osl/conditn.hxx> #include <salhelper/timer.hxx> #include <vcl/svapp.hxx> +#include <vcl/builderfactory.hxx> #include <unotools/ucbhelper.hxx> #include <unotools/intlwrapper.hxx> #include <unotools/syslocale.hxx> @@ -1120,8 +1121,7 @@ void SvtFileView::dispose() Control::dispose(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvtFileView(vcl::Window *pParent, -VclBuilder::stringmap &rMap) +VCL_BUILDER_DECL_FACTORY(SvtFileView) { WinBits nBits = WB_CLIPCHILDREN|WB_LEFT|WB_VCENTER|WB_3DLOOK; diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx index 6a42aa3341e3..87d173f2639f 100644 --- a/svtools/source/contnr/simptabl.cxx +++ b/svtools/source/contnr/simptabl.cxx @@ -21,7 +21,7 @@ #include <svtools/simptabl.hxx> #include <svtools/svlbitm.hxx> #include <svtools/treelistentry.hxx> -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> #include <vcl/svapp.hxx> #include <vcl/settings.hxx> @@ -42,11 +42,8 @@ void SvSimpleTableContainer::dispose() Control::dispose(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvSimpleTableContainer(vcl::Window *pParent, - VclBuilder::stringmap &) -{ - return new SvSimpleTableContainer(pParent, WB_TABSTOP | WB_DIALOGCONTROL | WB_BORDER); -} +VCL_BUILDER_FACTORY_ARGS(SvSimpleTableContainer, + WB_TABSTOP | WB_DIALOGCONTROL | WB_BORDER) void SvSimpleTableContainer::SetTable(SvSimpleTable* pTable) { diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx index 931ca8a5f422..0bcd09b28a19 100644 --- a/svtools/source/contnr/svtabbx.cxx +++ b/svtools/source/contnr/svtabbx.cxx @@ -23,7 +23,7 @@ #include <svtools/svlbitm.hxx> #include <svtools/svtools.hrc> #include <svtools/treelistentry.hxx> -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> #include <com/sun/star/accessibility/AccessibleStateType.hpp> #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include "svtaccessiblefactory.hxx" @@ -98,8 +98,7 @@ SvTabListBox::SvTabListBox( vcl::Window* pParent, WinBits nBits ) SetHighlightRange(); // select full width } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvTabListBox(vcl::Window *pParent, - VclBuilder::stringmap &rMap) +VCL_BUILDER_DECL_FACTORY(SvTabListBox) { WinBits nWinStyle = WB_TABSTOP; OString sBorder = VclBuilder::extractCustomProperty(rMap); diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 9c2e99231537..097adedd94f0 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -28,7 +28,7 @@ #include <vcl/svapp.hxx> #include <vcl/accel.hxx> #include <vcl/i18nhelp.hxx> -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> #include <vcl/settings.hxx> #include <sot/formats.hxx> #include <unotools/accessiblestatesethelper.hxx> @@ -434,7 +434,7 @@ SvTreeListBox::SvTreeListBox(vcl::Window* pParent, const ResId& rResId) : SetSublistOpenWithLeftRight(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvTreeListBox(vcl::Window *pParent, VclBuilder::stringmap &rMap) +VCL_BUILDER_DECL_FACTORY(SvTreeListBox) { WinBits nWinStyle = WB_TABSTOP; OString sBorder = VclBuilder::extractCustomProperty(rMap); |