Kaydet (Commit) 164d8e3b authored tarafından melikeyurtoglu's avatar melikeyurtoglu Kaydeden (comit) Noel Grandin

tdf#91222 VclBuilder constructor cleanup

Change-Id: I53bca2a9113862b8e7058937e231721c5f81a9de
Signed-off-by: 's avatarmelikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/30511Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 10197c09
......@@ -664,16 +664,7 @@ void SfxAccCfgLBoxString_Impl::Paint(const Point& aPos, SvTreeListBox& /*rDevice
}
VCL_BUILDER_DECL_FACTORY(SfxAccCfgTabListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<SfxAccCfgTabListBox_Impl>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SfxAccCfgTabListBox_Impl, WB_TABSTOP)
SfxAccCfgTabListBox_Impl::~SfxAccCfgTabListBox_Impl()
{
......
......@@ -258,16 +258,7 @@ SfxConfigFunctionListBox::SfxConfigFunctionListBox(vcl::Window* pParent, WinBits
GetModel()->SetSortMode( SortAscending );
}
VCL_BUILDER_DECL_FACTORY(SfxConfigFunctionListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<SfxConfigFunctionListBox>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SfxConfigFunctionListBox, WB_TABSTOP)
SfxConfigFunctionListBox::~SfxConfigFunctionListBox()
{
......@@ -398,16 +389,7 @@ SfxConfigGroupListBox::SfxConfigGroupListBox(vcl::Window* pParent, WinBits nStyl
SetNodeBitmaps( pImp->m_collapsedImage, pImp->m_expandedImage );
}
VCL_BUILDER_DECL_FACTORY(SfxConfigGroupListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<SfxConfigGroupListBox>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SfxConfigGroupListBox, WB_TABSTOP)
SfxConfigGroupListBox::~SfxConfigGroupListBox()
{
......
......@@ -153,16 +153,7 @@ void MacroEventListBox::dispose()
Control::dispose();
}
VCL_BUILDER_DECL_FACTORY(MacroEventListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<MacroEventListBox>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(MacroEventListBox, WB_TABSTOP)
Size MacroEventListBox::GetOptimalSize() const
{
......
......@@ -88,16 +88,7 @@ SvxConfigFunctionListBox::SvxConfigFunctionListBox(vcl::Window* pParent, WinBits
LINK( this, SvxConfigFunctionListBox, TimerHdl ) );
}
VCL_BUILDER_DECL_FACTORY(SvxConfigFunctionListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<SvxConfigFunctionListBox>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SvxConfigFunctionListBox, WB_TABSTOP)
SvxConfigFunctionListBox::~SvxConfigFunctionListBox()
{
......@@ -225,16 +216,7 @@ SvxConfigGroupListBox::SvxConfigGroupListBox(vcl::Window* pParent, WinBits nStyl
);
}
VCL_BUILDER_DECL_FACTORY(SvxConfigGroupListBox)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<SvxConfigGroupListBox>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SvxConfigGroupListBox, WB_TABSTOP)
SvxConfigGroupListBox::~SvxConfigGroupListBox()
{
......
......@@ -166,16 +166,7 @@ ColorPreviewControl::ColorPreviewControl(vcl::Window* pParent, WinBits nStyle)
{
}
VCL_BUILDER_DECL_FACTORY(ColorPreviewControl)
{
WinBits nBits = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
rRet = VclPtr<ColorPreviewControl>::Create(pParent, nBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(ColorPreviewControl, 0)
void ColorPreviewControl::SetColor( const Color& rCol )
{
......@@ -263,16 +254,7 @@ void ColorFieldControl::dispose()
Control::dispose();
}
VCL_BUILDER_DECL_FACTORY(ColorFieldControl)
{
WinBits nBits = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
rRet = VclPtr<ColorFieldControl>::Create(pParent, nBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(ColorFieldControl, 0)
Size ColorFieldControl::GetOptimalSize() const
{
......@@ -665,16 +647,7 @@ void ColorSliderControl::dispose()
Control::dispose();
}
VCL_BUILDER_DECL_FACTORY(ColorSliderControl)
{
WinBits nBits = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nBits |= WB_BORDER;
rRet = VclPtr<ColorSliderControl>::Create(pParent, nBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(ColorSliderControl, 0)
void ColorSliderControl::UpdateBitmap()
{
......
......@@ -38,18 +38,7 @@ GraphicPreviewWindow::GraphicPreviewWindow(vcl::Window* pParent,
{
}
VCL_BUILDER_DECL_FACTORY(GraphicPreviewWindow)
{
WinBits nWinBits = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinBits |= WB_BORDER;
rRet = VclPtr<GraphicPreviewWindow>::Create(pParent, nWinBits);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(GraphicPreviewWindow, WB_TABSTOP)
Size GraphicPreviewWindow::GetOptimalSize() const
{
......
......@@ -84,14 +84,7 @@ void SvxHlmarkTreeLBox::dispose()
SvTreeListBox::dispose();
}
VCL_BUILDER_DECL_FACTORY(SvxHlmarkTreeLBox)
{
WinBits nWinStyle = WB_TABSTOP;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
rRet = VclPtr<SvxHlmarkTreeLBox>::Create(pParent, nWinStyle);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SvxHlmarkTreeLBox, WB_TABSTOP)
Size SvxHlmarkTreeLBox::GetOptimalSize() const
{
......
......@@ -777,14 +777,7 @@ Size SvxCropExample::GetOptimalSize() const
return LogicToPixel(Size(78, 78), MapUnit::MapAppFont);
}
VCL_BUILDER_DECL_FACTORY(SvxCropExample)
{
WinBits nWinStyle = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
rRet = VclPtr<SvxCropExample>::Create(pParent, nWinStyle);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(SvxCropExample, 0)
void SvxCropExample::Paint(vcl::RenderContext& rRenderContext, const Rectangle&)
{
......
......@@ -75,14 +75,7 @@ OTableTreeListBox::OTableTreeListBox(vcl::Window* pParent, WinBits nWinStyle)
implSetDefaultImages();
}
VCL_BUILDER_DECL_FACTORY(OTableTreeListBox)
{
WinBits nWinStyle = 0;
OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER;
rRet = VclPtr<OTableTreeListBox>::Create(pParent, nWinStyle);
}
VCL_BUILDER_FACTORY_CONSTRUCTOR(OTableTreeListBox, 0)
void OTableTreeListBox::implSetDefaultImages()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment