diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 09:35:06 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-11 13:07:45 +0100 |
commit | b01554bcdaca076f900c25b672fd691dbe76c9db (patch) | |
tree | d9c542e48970d841f39c6b429ed418f8995ffc1a /svx | |
parent | fa9eb2512983b20510be3681fad379573b58fc72 (diff) |
tdf#91052 - more macros for 'make' constructors.
Change-Id: Ic7ff127e2793993f9dcf1018f8d5ed4f2858a2c4
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 8 | ||||
-rw-r--r-- | svx/source/dialog/checklbx.cxx | 7 | ||||
-rw-r--r-- | svx/source/dialog/connctrl.cxx | 4 | ||||
-rw-r--r-- | svx/source/dialog/dialcontrol.cxx | 7 |
4 files changed, 8 insertions, 18 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 2eee3ec7b93c..ed5bcf946242 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -21,6 +21,7 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> +#include <vcl/builderfactory.hxx> #include <svtools/colorcfg.hxx> #include <rtl/textenc.h> @@ -82,12 +83,7 @@ void SvxShowCharSet::Resize() SetFont(GetFont()); //force recalculation of correct fontsize } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvxShowCharSet(vcl::Window *pParent, VclBuilder::stringmap &) -{ - return new SvxShowCharSet(pParent); -} - - +VCL_BUILDER_FACTORY(SvxShowCharSet) void SvxShowCharSet::GetFocus() { diff --git a/svx/source/dialog/checklbx.cxx b/svx/source/dialog/checklbx.cxx index d767d4707285..66527a7132fb 100644 --- a/svx/source/dialog/checklbx.cxx +++ b/svx/source/dialog/checklbx.cxx @@ -18,13 +18,10 @@ */ #include <svtools/treelistentry.hxx> - #include <svx/checklbx.hxx> #include <svx/dialmgr.hxx> - #include <svx/dialogs.hrc> - -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> SvxCheckListBox::SvxCheckListBox( vcl::Window* pParent, WinBits nWinStyle ) : @@ -34,7 +31,7 @@ SvxCheckListBox::SvxCheckListBox( vcl::Window* pParent, WinBits nWinStyle ) : Init_Impl(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvxCheckListBox(vcl::Window *pParent, VclBuilder::stringmap &rMap) +VCL_BUILDER_DECL_FACTORY(SvxCheckListBox) { WinBits nWinStyle = WB_TABSTOP; OString sBorder = VclBuilder::extractCustomProperty(rMap); diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx index e7b8c416498c..a130f9f858fa 100644 --- a/svx/source/dialog/connctrl.cxx +++ b/svx/source/dialog/connctrl.cxx @@ -32,7 +32,7 @@ #include <svx/sxelditm.hxx> #include <sxmkitm.hxx> -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> #include <vcl/settings.hxx> #include <boost/scoped_ptr.hpp> @@ -46,7 +46,7 @@ SvxXConnectionPreview::SvxXConnectionPreview( vcl::Window* pParent, WinBits nSty SetStyles(); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSvxXConnectionPreview(vcl::Window *pParent, VclBuilder::stringmap &rMap) +VCL_BUILDER_DECL_FACTORY(SvxXConnectionPreview) { WinBits nWinStyle = 0; OString sBorder = VclBuilder::extractCustomProperty(rMap); diff --git a/svx/source/dialog/dialcontrol.cxx b/svx/source/dialog/dialcontrol.cxx index d713e76139bc..f07d9f1c1f7f 100644 --- a/svx/source/dialog/dialcontrol.cxx +++ b/svx/source/dialog/dialcontrol.cxx @@ -28,7 +28,7 @@ #include <vcl/field.hxx> #include <vcl/settings.hxx> #include <svtools/colorcfg.hxx> -#include <vcl/builder.hxx> +#include <vcl/builderfactory.hxx> namespace svx { @@ -267,10 +267,7 @@ DialControl::DialControl( vcl::Window* pParent, WinBits nBits ) : Init( GetOutputSizePixel() ); } -extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeDialControl(vcl::Window *pParent, VclBuilder::stringmap &) -{ - return new DialControl(pParent, WB_TABSTOP); -} +VCL_BUILDER_FACTORY_ARGS(DialControl, WB_TABSTOP) void DialControl::Resize() { |