LCOV - code coverage report
Current view: top level - canvas/source/vcl - services.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 13 0.0 %
Date: 2014-04-14 Functions: 0 5 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : 
      21             : #include <canvas/debug.hxx>
      22             : #include <canvas/verbosetrace.hxx>
      23             : #include <canvas/canvastools.hxx>
      24             : 
      25             : #include <com/sun/star/registry/XRegistryKey.hpp>
      26             : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
      27             : #include <com/sun/star/uno/XComponentContext.hpp>
      28             : 
      29             : #include <cppuhelper/factory.hxx>
      30             : #include <cppuhelper/implementationentry.hxx>
      31             : #include <comphelper/servicedecl.hxx>
      32             : 
      33             : #include <vcl/canvastools.hxx>
      34             : #include <vcl/outdev.hxx>
      35             : #include <vcl/window.hxx>
      36             : #include <vcl/bitmapex.hxx>
      37             : 
      38             : #include <basegfx/tools/canvastools.hxx>
      39             : 
      40             : #include <algorithm>
      41             : 
      42             : #include "canvas.hxx"
      43             : #include "spritecanvas.hxx"
      44             : 
      45             : 
      46             : using namespace ::com::sun::star;
      47             : 
      48             : namespace vclcanvas
      49             : {
      50             :     namespace sdecl = comphelper::service_decl;
      51             : 
      52           0 :     static uno::Reference<uno::XInterface> initCanvas( Canvas* pCanvas )
      53             :     {
      54           0 :         uno::Reference<uno::XInterface> xRet(static_cast<cppu::OWeakObject*>(pCanvas));
      55           0 :         pCanvas->initialize();
      56           0 :         return xRet;
      57             :     }
      58             : 
      59           0 :     sdecl::class_<Canvas, sdecl::with_args<true> > serviceImpl1(&initCanvas);
      60           0 :     const sdecl::ServiceDecl vclCanvasDecl(
      61             :         serviceImpl1,
      62             :         CANVAS_IMPLEMENTATION_NAME,
      63             :         CANVAS_SERVICE_NAME );
      64             : 
      65           0 :     static uno::Reference<uno::XInterface> initSpriteCanvas( SpriteCanvas* pCanvas )
      66             :     {
      67           0 :         uno::Reference<uno::XInterface> xRet(static_cast<cppu::OWeakObject*>(pCanvas));
      68           0 :         pCanvas->initialize();
      69           0 :         return xRet;
      70             :     }
      71             : 
      72           0 :     sdecl::class_<SpriteCanvas, sdecl::with_args<true> > serviceImpl2(&initSpriteCanvas);
      73           0 :     const sdecl::ServiceDecl vclSpriteCanvasDecl(
      74             :         serviceImpl2,
      75             :         SPRITECANVAS_IMPLEMENTATION_NAME,
      76             :         SPRITECANVAS_SERVICE_NAME );
      77             : }
      78             : 
      79             : // The C shared lib entry points
      80           0 : COMPHELPER_SERVICEDECL_EXPORTS2(vclcanvas, vclcanvas::vclCanvasDecl, vclcanvas::vclSpriteCanvasDecl)
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10