diff options
author | melikeyurtoglu <aysemelikeyurtoglu@gmail.com> | 2016-11-04 00:37:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-04 07:18:19 +0000 |
commit | 02eaf40ba04e970d88e37ef15963a409e375a7ad (patch) | |
tree | d4508eef26fc944172167b814d639553e131cfd2 /sd | |
parent | fc8f32adc2c940f4e35f7bd2acae5e5ff5f71971 (diff) |
tdf#91222 VclBuilder constructor cleanup
Change-Id: I619cb50c3475519921ffd318b32875ae4ff2c0b8
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/30545
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/html/htmlattr.cxx | 11 | ||||
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 11 | ||||
-rw-r--r-- | sd/source/ui/dlg/sdtreelb.cxx | 9 | ||||
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 9 |
5 files changed, 5 insertions, 44 deletions
diff --git a/sd/source/filter/html/htmlattr.cxx b/sd/source/filter/html/htmlattr.cxx index fe709ff7bea4..13e5f497dd31 100644 --- a/sd/source/filter/html/htmlattr.cxx +++ b/sd/source/filter/html/htmlattr.cxx @@ -27,16 +27,7 @@ SdHtmlAttrPreview::SdHtmlAttrPreview(vcl::Window* pParent, WinBits nStyle) { } -VCL_BUILDER_DECL_FACTORY(SdHtmlAttrPreview) -{ - WinBits nWinStyle = 0; - - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - - rRet = VclPtr<SdHtmlAttrPreview>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SdHtmlAttrPreview, 0) SdHtmlAttrPreview::~SdHtmlAttrPreview() { diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index b1c466f8bc5e..cd67fbdd6d92 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -108,14 +108,7 @@ ClientBox::ClientBox( vcl::Window* pParent, WinBits nStyle ) : Show(); } -VCL_BUILDER_DECL_FACTORY(ClientBox) -{ - WinBits nWinStyle = WB_TABSTOP; - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - rRet = VclPtr<ClientBox>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(ClientBox, WB_TABSTOP) Size ClientBox::GetOptimalSize() const { diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index 640dec1a7032..4d8e4bb93f1f 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -50,16 +50,7 @@ using namespace ::com::sun::star::uno; const int SdDocPreviewWin::FRAME = 4; -VCL_BUILDER_DECL_FACTORY(SdDocPreviewWin) -{ - WinBits nWinStyle = 0; - - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - - rRet = VclPtr<SdDocPreviewWin>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SdDocPreviewWin, 0) SdDocPreviewWin::SdDocPreviewWin( vcl::Window* pParent, const WinBits nStyle ) : Control(pParent, nStyle), pMetaFile( nullptr ) diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx index c210ac4988d0..19baf9a76f07 100644 --- a/sd/source/ui/dlg/sdtreelb.cxx +++ b/sd/source/ui/dlg/sdtreelb.cxx @@ -96,14 +96,7 @@ SdPageObjsTLB::SdPageObjsTransferable::SdPageObjsTransferable( rParent.SetupDragOrigin(); } -VCL_BUILDER_DECL_FACTORY(SdPageObjsTLB) -{ - WinBits nWinStyle = WB_TABSTOP; - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - rRet = VclPtr<SdPageObjsTLB>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SdPageObjsTLB, WB_TABSTOP) SdPageObjsTLB::SdPageObjsTransferable::~SdPageObjsTransferable() { diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 47f87908462c..93bd711931fe 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -359,14 +359,7 @@ void TableValueSet::updateSettings() } } -VCL_BUILDER_DECL_FACTORY(TableValueSet) -{ - WinBits nWinStyle = WB_TABSTOP; - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - rRet = VclPtr<TableValueSet>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(TableValueSet, WB_TABSTOP) void TableDesignWidget::updateControls() { |