summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/config/optload.cxx9
-rw-r--r--sw/source/ui/dbui/mmaddressblockpage.cxx9
2 files changed, 2 insertions, 16 deletions
diff --git a/sw/source/ui/config/optload.cxx b/sw/source/ui/config/optload.cxx
index aba994138a24..49537401187f 100644
--- a/sw/source/ui/config/optload.cxx
+++ b/sw/source/ui/config/optload.cxx
@@ -389,14 +389,7 @@ SwCaptionPreview::SwCaptionPreview(vcl::Window* pParent, WinBits nStyle)
maDrawPos = Point(4, 6);
}
-VCL_BUILDER_DECL_FACTORY(SwCaptionPreview)
-{
- WinBits nBits = 0;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nBits |= WB_BORDER;
- rRet = VclPtr<SwCaptionPreview>::Create(pParent, nBits);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(SwCaptionPreview, 0)
void SwCaptionPreview::ApplySettings(vcl::RenderContext& rRenderContext)
{
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx
index 105fab557a0c..07526e03c151 100644
--- a/sw/source/ui/dbui/mmaddressblockpage.cxx
+++ b/sw/source/ui/dbui/mmaddressblockpage.cxx
@@ -1268,14 +1268,7 @@ void DDListBox::dispose()
SvTreeListBox::dispose();
}
-VCL_BUILDER_DECL_FACTORY(DDListBox)
-{
- WinBits nWinStyle = WB_TABSTOP;
- OString sBorder = VclBuilder::extractCustomProperty(rMap);
- if (!sBorder.isEmpty())
- nWinStyle |= WB_BORDER;
- rRet = VclPtr<DDListBox>::Create(pParent, nWinStyle);
-}
+VCL_BUILDER_FACTORY_CONSTRUCTOR(DDListBox, WB_TABSTOP)
void DDListBox::SetAddressDialog(SwCustomizeAddressBlockDialog *pParent)
{