LCOV - code coverage report
Current view: top level - libreoffice/canvas/source/null - null_canvasbitmap.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 2 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             : #ifndef _NULLCANVAS_CANVASBITMAP_HXX
      21             : #define _NULLCANVAS_CANVASBITMAP_HXX
      22             : 
      23             : #include <cppuhelper/compbase3.hxx>
      24             : 
      25             : #include <com/sun/star/lang/XServiceInfo.hpp>
      26             : #include <com/sun/star/rendering/XBitmapCanvas.hpp>
      27             : #include <com/sun/star/rendering/XIntegerBitmap.hpp>
      28             : 
      29             : #include <basegfx/vector/b2isize.hxx>
      30             : 
      31             : #include <boost/shared_ptr.hpp>
      32             : 
      33             : #include <canvas/base/integerbitmapbase.hxx>
      34             : #include <canvas/base/disambiguationhelper.hxx>
      35             : 
      36             : #include "null_canvashelper.hxx"
      37             : #include "null_spritecanvas.hxx"
      38             : #include "null_usagecounter.hxx"
      39             : 
      40             : 
      41             : /* Definition of CanvasBitmap class */
      42             : 
      43             : namespace nullcanvas
      44             : {
      45             :     typedef ::cppu::WeakComponentImplHelper3< ::com::sun::star::rendering::XBitmapCanvas,
      46             :                                               ::com::sun::star::rendering::XIntegerBitmap,
      47             :                                                ::com::sun::star::lang::XServiceInfo >   CanvasBitmapBase_Base;
      48             :     typedef ::canvas::IntegerBitmapBase< ::canvas::DisambiguationHelper< CanvasBitmapBase_Base >,
      49             :                                          CanvasHelper,
      50             :                                          ::osl::MutexGuard,
      51             :                                          ::cppu::OWeakObject >                          CanvasBitmap_Base;
      52             : 
      53           0 :     class CanvasBitmap : public CanvasBitmap_Base,
      54             :                          private UsageCounter< CanvasBitmap >
      55             :     {
      56             :     public:
      57             :         /** Create a canvas bitmap for the given surface
      58             : 
      59             :             @param rSize
      60             :             Size of the bitmap
      61             : 
      62             :             @param rDevice
      63             :             Reference device, with which bitmap should be compatible
      64             :          */
      65             :         CanvasBitmap( const ::basegfx::B2ISize& rSize,
      66             :                       const DeviceRef&          rDevice,
      67             :                       bool                      bHasAlpha );
      68             : 
      69             :         /// Dispose all internal references
      70             :         virtual void disposeThis();
      71             : 
      72             :         // XServiceInfo
      73             :         virtual ::rtl::OUString SAL_CALL getImplementationName(  ) throw (::com::sun::star::uno::RuntimeException);
      74             :         virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
      75             :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames(  ) throw (::com::sun::star::uno::RuntimeException);
      76             : 
      77             :     private:
      78             :         /** MUST hold here, too, since CanvasHelper only contains a
      79             :             raw pointer (without refcounting)
      80             :         */
      81             :         DeviceRef               mpDevice;
      82             :     };
      83             : }
      84             : 
      85             : #endif /* _NULLCANVAS_CANVASBITMAP_HXX */
      86             : 
      87             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10