tdf#91222 VclBuilder constructor cleanup

Change-Id: Ief4a9dfc0e0a2dad04c3ac9f1840b823fd9357de
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/30507
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
melikeyurtoglu
2016-11-03 00:47:13 +02:00
committed by Noel Grandin
parent fa80dae9a7
commit 10197c094b
4 changed files with 4 additions and 32 deletions

View File

@@ -166,14 +166,7 @@ TreeListBox::TreeListBox (vcl::Window* pParent, WinBits nStyle)
nMode = 0xFF; // everything nMode = 0xFF; // everything
} }
VCL_BUILDER_DECL_FACTORY(TreeListBox) VCL_BUILDER_FACTORY_CONSTRUCTOR(TreeListBox, WB_TABSTOP)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<TreeListBox>::Create(pParent, nWinBits);
}
TreeListBox::~TreeListBox () TreeListBox::~TreeListBox ()
{ {

View File

@@ -155,14 +155,7 @@ CheckBox::CheckBox(vcl::Window* pParent, WinBits nStyle)
Init(); Init();
} }
VCL_BUILDER_DECL_FACTORY(CheckBox) VCL_BUILDER_FACTORY_CONSTRUCTOR(CheckBox, WB_TABSTOP)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<CheckBox>::Create(pParent, nWinBits);
}
CheckBox::~CheckBox() CheckBox::~CheckBox()
{ {

View File

@@ -53,14 +53,7 @@ ExtTreeListBox::ExtTreeListBox(vcl::Window* pParent, WinBits nStyle)
{ {
} }
VCL_BUILDER_DECL_FACTORY(ExtTreeListBox) VCL_BUILDER_FACTORY_CONSTRUCTOR(ExtTreeListBox, WB_TABSTOP)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<ExtTreeListBox>::Create(pParent, nWinBits);
}
bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& ) bool ExtTreeListBox::EditingEntry( SvTreeListEntry* pEntry, Selection& )
{ {

View File

@@ -33,14 +33,7 @@ SeriesListBox::SeriesListBox(vcl::Window* pParent, WinBits nStyle)
: SvTreeListBox(pParent, nStyle) : SvTreeListBox(pParent, nStyle)
{} {}
VCL_BUILDER_DECL_FACTORY(SeriesListBox) VCL_BUILDER_FACTORY_CONSTRUCTOR(SeriesListBox, 0)
{
WinBits nWinStyle = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
rRet = VclPtr<SeriesListBox>::Create(pParent, nWinStyle);
}
SvTreeListEntry* SeriesListBox::CreateEntry() const SvTreeListEntry* SeriesListBox::CreateEntry() const
{ {