diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-06 09:48:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-06 15:41:07 +0200 |
commit | 1cd0e02cdf7fc5b5903320ffd24865d11465d14b (patch) | |
tree | f8d114a513b2fd4992c56637e9e3ba3d9d51863e /canvas/source/cairo/cairo_canvas.cxx | |
parent | ba556833e19b401496b5bf7304de574c64780f81 (diff) |
cairo/canvas: create instances with uno constructors
See tdf#74608 for motivation
Change-Id: I02411b23136051bfd0cd02d5378297f99127017f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98189
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/cairo/cairo_canvas.cxx')
-rw-r--r-- | canvas/source/cairo/cairo_canvas.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/canvas/source/cairo/cairo_canvas.cxx b/canvas/source/cairo/cairo_canvas.cxx index 3f6dcaf3d2f9..0b7790e7b94b 100644 --- a/canvas/source/cairo/cairo_canvas.cxx +++ b/canvas/source/cairo/cairo_canvas.cxx @@ -113,7 +113,7 @@ namespace cairocanvas OUString SAL_CALL Canvas::getServiceName( ) { - return CANVAS_SERVICE_NAME; + return "com.sun.star.rendering.Canvas.Cairo"; } bool Canvas::repaint( const SurfaceSharedPtr& pSurface, @@ -159,4 +159,15 @@ namespace cairocanvas } } +extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* +com_sun_star_comp_rendering_Canvas_Cairo_get_implementation( + css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any> const& args) +{ + auto p = new cairocanvas::Canvas(args, context); + p->acquire(); + p->initialize(); + return static_cast<cppu::OWeakObject*>(p); +} + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |