LCOV - code coverage report
Current view: top level - canvas/source/cairo - cairo_services.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2012-08-25 Functions: 0 5 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include <canvas/debug.hxx>
      30                 :            : #include <canvas/verbosetrace.hxx>
      31                 :            : #include <canvas/canvastools.hxx>
      32                 :            : 
      33                 :            : #include <com/sun/star/registry/XRegistryKey.hpp>
      34                 :            : #include <com/sun/star/lang/XSingleServiceFactory.hpp>
      35                 :            : #include <com/sun/star/uno/XComponentContext.hpp>
      36                 :            : 
      37                 :            : #include <cppuhelper/factory.hxx>
      38                 :            : #include <cppuhelper/implementationentry.hxx>
      39                 :            : #include <comphelper/servicedecl.hxx>
      40                 :            : 
      41                 :            : #include <algorithm>
      42                 :            : 
      43                 :            : #include "cairo_canvas.hxx"
      44                 :            : #include "cairo_spritecanvas.hxx"
      45                 :            : 
      46                 :            : 
      47                 :            : using namespace ::com::sun::star;
      48                 :            : 
      49                 :            : #if defined(WNT) || defined (MACOSX)
      50                 :            : #  error "The cairo canvas should not be enabled on Windows or Mac cf fdo#46901"
      51                 :            : #endif
      52                 :            : 
      53                 :            : namespace cairocanvas
      54                 :            : {
      55                 :          0 :     static uno::Reference<uno::XInterface> initCanvas( Canvas* pCanvas )
      56                 :            :     {
      57                 :          0 :         uno::Reference<uno::XInterface> xRet(static_cast<cppu::OWeakObject*>(pCanvas));
      58                 :          0 :         pCanvas->initialize();
      59                 :          0 :         return xRet;
      60                 :            :     }
      61                 :            : 
      62                 :            :     namespace sdecl = comphelper::service_decl;
      63                 :          0 :     sdecl::class_< Canvas, sdecl::with_args<true> > serviceImpl1(&initCanvas);
      64                 :          0 :     const sdecl::ServiceDecl cairoCanvasDecl(
      65                 :            :         serviceImpl1,
      66                 :            :         CANVAS_IMPLEMENTATION_NAME,
      67                 :            :         CANVAS_SERVICE_NAME );
      68                 :            : 
      69                 :          0 :     static uno::Reference<uno::XInterface> initSpriteCanvas( SpriteCanvas* pCanvas )
      70                 :            :     {
      71                 :          0 :         uno::Reference<uno::XInterface> xRet(static_cast<cppu::OWeakObject*>(pCanvas));
      72                 :          0 :         pCanvas->initialize();
      73                 :          0 :         return xRet;
      74                 :            :     }
      75                 :            : 
      76                 :            :     namespace sdecl = comphelper::service_decl;
      77                 :          0 :     sdecl::class_< SpriteCanvas, sdecl::with_args<true> > serviceImpl2(&initSpriteCanvas);
      78                 :          0 :     const sdecl::ServiceDecl cairoSpriteCanvasDecl(
      79                 :            :         serviceImpl2,
      80                 :            :         SPRITECANVAS_IMPLEMENTATION_NAME,
      81                 :            :         SPRITECANVAS_SERVICE_NAME );
      82                 :            : }
      83                 :            : 
      84                 :            : // The C shared lib entry points
      85                 :          0 : COMPHELPER_SERVICEDECL_EXPORTS2(cairocanvas, cairocanvas::cairoCanvasDecl, cairocanvas::cairoSpriteCanvasDecl)
      86                 :            : 
      87                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10