summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-03-16 15:50:44 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-03-16 17:02:23 +0100
commit80fe015a86c90db2bcbfcd382eb24c8b7069fa3a (patch)
treebfe90c47d76ac21ee493459f0fc4151da804fa83 /canvas
parentd32cf8d820be839c7303e3c5962c17f64cac2812 (diff)
Add COMPHELPER_SERVICEDECL_EXPORTS* back in, after libmerge changes
Did I mention I hate boilerplate copied all over the place? ;)
Diffstat (limited to 'canvas')
-rw-r--r--canvas/Library_nullcanvas.mk2
-rw-r--r--canvas/source/cairo/cairo_services.cxx11
-rw-r--r--canvas/source/directx/dx_canvas.cxx12
-rw-r--r--canvas/source/directx/dx_spritecanvas.cxx10
-rw-r--r--canvas/source/null/null_spritecanvas.cxx10
-rw-r--r--canvas/source/simplecanvas/simplecanvasimpl.cxx10
-rw-r--r--canvas/source/vcl/services.cxx10
7 files changed, 10 insertions, 55 deletions
diff --git a/canvas/Library_nullcanvas.mk b/canvas/Library_nullcanvas.mk
index 52e99de5ccd2..24050ff43abb 100644
--- a/canvas/Library_nullcanvas.mk
+++ b/canvas/Library_nullcanvas.mk
@@ -28,6 +28,8 @@
$(eval $(call gb_Library_Library,nullcanvas))
+$(eval $(call gb_Library_set_componentfile,nullcanvas,canvas/source/null/nullcanvas))
+
$(eval $(call gb_Library_set_include,nullcanvas,\
$$(INCLUDE) \
-I$(SRCDIR)/canvas/inc \
diff --git a/canvas/source/cairo/cairo_services.cxx b/canvas/source/cairo/cairo_services.cxx
index 9f99f274909f..dfb694f01576 100644
--- a/canvas/source/cairo/cairo_services.cxx
+++ b/canvas/source/cairo/cairo_services.cxx
@@ -26,7 +26,6 @@
*
************************************************************************/
-
#include <canvas/debug.hxx>
#include <canvas/verbosetrace.hxx>
#include <canvas/canvastools.hxx>
@@ -79,14 +78,6 @@ namespace cairocanvas
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL cairocanvas_component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, cairocanvas::cairoCanvasDecl, cairocanvas::cairoSpriteCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS2(cairocanvas, cairocanvas::cairoCanvasDecl, cairocanvas::cairoSpriteCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx
index dd5d5a80d91f..45056f95c084 100644
--- a/canvas/source/directx/dx_canvas.cxx
+++ b/canvas/source/directx/dx_canvas.cxx
@@ -250,14 +250,8 @@ namespace dxcanvas
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL gdipluscanvas_component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, dxcanvas::dxCanvasDecl, dxcanvas::dxBitmapCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS2(gdipluscanvas,
+ dxcanvas::dxCanvasDecl,
+ dxcanvas::dxBitmapCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/directx/dx_spritecanvas.cxx b/canvas/source/directx/dx_spritecanvas.cxx
index 24785b5a9b8e..cecc99c1da05 100644
--- a/canvas/source/directx/dx_spritecanvas.cxx
+++ b/canvas/source/directx/dx_spritecanvas.cxx
@@ -207,14 +207,6 @@ namespace dxcanvas
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL directx9canvas_component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, dxcanvas::dxSpriteCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS1(directx9canvas, dxcanvas::dxSpriteCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/null/null_spritecanvas.cxx b/canvas/source/null/null_spritecanvas.cxx
index b3a0bcb150f3..53d918b7c5d4 100644
--- a/canvas/source/null/null_spritecanvas.cxx
+++ b/canvas/source/null/null_spritecanvas.cxx
@@ -162,14 +162,6 @@ namespace nullcanvas
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, nullcanvas::nullCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS1(nullcanvas, nullcanvas::nullCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx
index 57a8888c2547..57102fb69f5e 100644
--- a/canvas/source/simplecanvas/simplecanvasimpl.cxx
+++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx
@@ -390,14 +390,6 @@ namespace
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL simplecanvas_component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, simpleCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS1(simplecanvas, simpleCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/canvas/source/vcl/services.cxx b/canvas/source/vcl/services.cxx
index 2b5fbe42b592..1b59bb590623 100644
--- a/canvas/source/vcl/services.cxx
+++ b/canvas/source/vcl/services.cxx
@@ -86,14 +86,6 @@ namespace vclcanvas
}
// The C shared lib entry points
-extern "C"
-{
-SAL_DLLPUBLIC_EXPORT void* SAL_CALL vclcanvas_component_getFactory( sal_Char const* pImplName,
- ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
- ::com::sun::star::registry::XRegistryKey* pRegistryKey )
-{
- return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, vclcanvas::vclCanvasDecl, vclcanvas::vclSpriteCanvasDecl );
-}
-}
+COMPHELPER_SERVICEDECL_EXPORTS2(vclcanvas, vclcanvas::vclCanvasDecl, vclcanvas::vclSpriteCanvasDecl)
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */