summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/labfmt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/envelp/labfmt.cxx')
-rw-r--r--sw/source/ui/envelp/labfmt.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index be2171bdde8e..6801e24d3a4b 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -20,6 +20,7 @@
#include <tools/poly.hxx>
#include <vcl/layout.hxx>
#include <vcl/settings.hxx>
+#include <vcl/builderfactory.hxx>
#include <viewopt.hxx>
@@ -84,10 +85,7 @@ Size SwLabPreview::GetOptimalSize() const
return LogicToPixel(Size(146 , 161), MapMode(MAP_APPFONT));
}
-extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSwLabPreview(vcl::Window *pParent, VclBuilder::stringmap &)
-{
- return new SwLabPreview(pParent);
-}
+VCL_BUILDER_FACTORY(SwLabPreview)
void SwLabPreview::Paint(vcl::RenderContext& /*rRenderContext*/, const Rectangle &)
{