summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormelikeyurtoglu <aysemelikeyurtoglu@gmail.com>2016-11-17 07:50:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-17 11:51:35 +0000
commit69d08efffeca1e38fce7b04226894871279a1696 (patch)
treef8734b66b3d0144a88604fab60bbc45eee5ad69d
parentf099e1396f40584aebf3562873046f549139d042 (diff)
tdf#91222 VclBuilder constructor cleanup
Change-Id: I367c2096b3c0d508bca1e207c78c2f955f51e263 Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/30921 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--svtools/source/contnr/svtabbx.cxx9
-rw-r--r--svtools/source/contnr/treelistbox.cxx9
-rw-r--r--svtools/source/control/valueset.cxx11
3 files changed, 3 insertions, 26 deletions
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index c99df45dd3bb..12c6934b1259 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -95,14 +95,7 @@ SvTabListBox::SvTabListBox( vcl::Window* pParent, WinBits nBits )
SetHighlightRange(); // select full width
}
-VCL_BUILDER_DECL_FACTORY(SvTabListBox)
-{
- WinBits nWinStyle = WB_TABSTOP;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinStyle |= WB_BORDER;
- rRet = VclPtr<SvTabListBox>::Create(pParent, nWinStyle);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(SvTabListBox, WB_TABSTOP)
SvTabListBox::~SvTabListBox()
{
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 6ab4ab76bf98..5052c0aab34a 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -363,14 +363,7 @@ SvTreeListBox::SvTreeListBox(vcl::Window* pParent, WinBits nWinStyle) :
SetSublistOpenWithLeftRight();
}
-VCL_BUILDER_DECL_FACTORY(SvTreeListBox)
-{
- WinBits nWinStyle = WB_TABSTOP;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinStyle |= WB_BORDER;
- rRet = VclPtr<SvTreeListBox>::Create(pParent, nWinStyle);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(SvTreeListBox, WB_TABSTOP)
void SvTreeListBox::Clear()
{
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx
index a0dc24f52dfe..b2759900a549 100644
--- a/svtools/source/control/valueset.cxx
+++ b/svtools/source/control/valueset.cxx
@@ -99,16 +99,7 @@ ValueSet::ValueSet( vcl::Window* pParent, WinBits nWinStyle ) :
}
-VCL_BUILDER_DECL_FACTORY(ValueSet)
-{
- WinBits nWinBits = WB_TABSTOP;
-
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinBits |= WB_BORDER;
-
- rRet = VclPtr<ValueSet>::Create(pParent, nWinBits);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(ValueSet, WB_TABSTOP)
ValueSet::~ValueSet()
{