summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authormelikeyurtoglu <aysemelikeyurtoglu@gmail.com>2016-11-04 00:37:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-04 07:18:19 +0000
commit02eaf40ba04e970d88e37ef15963a409e375a7ad (patch)
treed4508eef26fc944172167b814d639553e131cfd2 /extensions
parentfc8f32adc2c940f4e35f7bd2acae5e5ff5f71971 (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 'extensions')
-rw-r--r--extensions/source/propctrlr/taborder.cxx9
-rw-r--r--extensions/source/scanner/sanedlg.cxx9
2 files changed, 2 insertions, 16 deletions
diff --git a/extensions/source/propctrlr/taborder.cxx b/extensions/source/propctrlr/taborder.cxx
index 225c74629556..09f3a6830c52 100644
--- a/extensions/source/propctrlr/taborder.cxx
+++ b/extensions/source/propctrlr/taborder.cxx
@@ -300,14 +300,7 @@ namespace pcr
SetSelectionMode( SelectionMode::Multiple );
}
- VCL_BUILDER_DECL_FACTORY(TabOrderListBox)
- {
- WinBits nWinStyle = WB_TABSTOP;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinStyle |= WB_BORDER;
- rRet = VclPtr<TabOrderListBox>::Create(pParent, nWinStyle);
- }
+ VCL_BUILDER_FACTORY_CONSTRUCTOR(TabOrderListBox, WB_TABSTOP)
TabOrderListBox::~TabOrderListBox()
{
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index 386bd3ef3eb5..1bf9ffa1978e 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -199,14 +199,7 @@ public:
}
};
-VCL_BUILDER_DECL_FACTORY(ScanPreview)
-{
- WinBits nWinStyle = 0;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinStyle |= WB_BORDER;
- rRet = VclPtr<ScanPreview>::Create(pParent, nWinStyle);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(ScanPreview, 0)
SaneDlg::SaneDlg( vcl::Window* pParent, Sane& rSane, bool bScanEnabled ) :
ModalDialog(pParent, "SaneDialog", "modules/scanner/ui/sanedialog.ui"),