diff options
author | melikeyurtoglu <aysemelikeyurtoglu@gmail.com> | 2016-11-13 20:15:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-14 06:22:40 +0000 |
commit | c5f5b3e5334c52502c1de28828a44ad469c68850 (patch) | |
tree | 204378067906bb9651f58df20e13d169947b1455 /starmath | |
parent | fef32a42c8bd8fd640d6c9cdc2f839fb43ad490c (diff) |
tdf#91222 VclBuilder constructor cleanup
Change-Id: I29a8ca55d1d9f319cd57e5e30fa7e58e4d91dc5c
Signed-off-by: melikeyurtoglu <aysemelikeyurtoglu@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/30810
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index d4f31924a185..3dd2f9191adb 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -277,16 +277,7 @@ void SmShowFont::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRec (rRenderContext.GetOutputSize().Height() - aTextSize.Height()) / 2), sText); } -VCL_BUILDER_DECL_FACTORY(SmShowFont) -{ - WinBits nWinStyle = 0; - - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - - rRet = VclPtr<SmShowFont>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SmShowFont, 0) Size SmShowFont::GetOptimalSize() const { @@ -1351,16 +1342,7 @@ IMPL_LINK( SmShowSymbolSetWindow, ScrollHdl, ScrollBar*, /*pScrollBar*/, void) Invalidate(); } -VCL_BUILDER_DECL_FACTORY(SmShowSymbol) -{ - WinBits nWinStyle = 0; - - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - - rRet = VclPtr<SmShowSymbol>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SmShowSymbol, 0) void SmShowSymbol::Resize() { @@ -1637,16 +1619,7 @@ const SmSym* SmSymbolDialog::GetSymbol() const return bValid ? aSymbolSet[ nSymbolNo ] : nullptr; } -VCL_BUILDER_DECL_FACTORY(SmShowChar) -{ - WinBits nWinStyle = 0; - - OString sBorder = VclBuilder::extractCustomProperty(rMap); - if (!sBorder.isEmpty()) - nWinStyle |= WB_BORDER; - - rRet = VclPtr<SmShowChar>::Create(pParent, nWinStyle); -} +VCL_BUILDER_FACTORY_CONSTRUCTOR(SmShowChar, 0) void SmShowChar::Paint(vcl::RenderContext& rRenderContext, const Rectangle &rRect) { |