LCOV - code coverage report
Current view: top level - canvas/source/null - null_canvasbitmap.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 19 0.0 %
Date: 2012-08-25 Functions: 0 7 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                 :            : 
      30                 :            : #include <canvas/debug.hxx>
      31                 :            : #include <tools/diagnose_ex.h>
      32                 :            : #include <canvas/canvastools.hxx>
      33                 :            : 
      34                 :            : #include "null_canvasbitmap.hxx"
      35                 :            : 
      36                 :            : 
      37                 :            : using namespace ::com::sun::star;
      38                 :            : 
      39                 :            : namespace nullcanvas
      40                 :            : {
      41                 :          0 :     CanvasBitmap::CanvasBitmap( const ::basegfx::B2ISize& rSize,
      42                 :            :                                 const DeviceRef&          rDevice,
      43                 :            :                                 bool                      bHasAlpha ) :
      44                 :          0 :         mpDevice( rDevice )
      45                 :            :     {
      46                 :          0 :         ENSURE_OR_THROW( mpDevice.is(),
      47                 :            :                           "CanvasBitmap::CanvasBitmap(): Invalid surface or device" );
      48                 :            : 
      49                 :            :         maCanvasHelper.init( rSize,
      50                 :          0 :                              *mpDevice.get(),
      51                 :          0 :                              bHasAlpha );
      52                 :          0 :     }
      53                 :            : 
      54                 :          0 :     void CanvasBitmap::disposeThis()
      55                 :            :     {
      56                 :          0 :         mpDevice.clear();
      57                 :            : 
      58                 :            :         // forward to parent
      59                 :          0 :         CanvasBitmap_Base::disposeThis();
      60                 :          0 :     }
      61                 :            : 
      62                 :            : #define IMPLEMENTATION_NAME "NullCanvas.CanvasBitmap"
      63                 :            : #define SERVICE_NAME "com.sun.star.rendering.CanvasBitmap"
      64                 :            : 
      65                 :          0 :     ::rtl::OUString SAL_CALL CanvasBitmap::getImplementationName(  ) throw (uno::RuntimeException)
      66                 :            :     {
      67                 :          0 :         return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
      68                 :            :     }
      69                 :            : 
      70                 :          0 :     sal_Bool SAL_CALL CanvasBitmap::supportsService( const ::rtl::OUString& ServiceName ) throw (uno::RuntimeException)
      71                 :            :     {
      72                 :          0 :         return ServiceName == SERVICE_NAME;
      73                 :            :     }
      74                 :            : 
      75                 :          0 :     uno::Sequence< ::rtl::OUString > SAL_CALL CanvasBitmap::getSupportedServiceNames(  ) throw (uno::RuntimeException)
      76                 :            :     {
      77                 :          0 :         uno::Sequence< ::rtl::OUString > aRet(1);
      78                 :          0 :         aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
      79                 :            : 
      80                 :          0 :         return aRet;
      81                 :            :     }
      82                 :            : 
      83                 :          0 : }
      84                 :            : 
      85                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10