LCOV - code coverage report
Current view: top level - include/toolkit/awt - vclxbitmap.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 6 0.0 %
Date: 2014-04-14 Functions: 0 8 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 INCLUDED_TOOLKIT_AWT_VCLXBITMAP_HXX
      21             : #define INCLUDED_TOOLKIT_AWT_VCLXBITMAP_HXX
      22             : 
      23             : #include <com/sun/star/awt/XBitmap.hpp>
      24             : #include <com/sun/star/awt/XDisplayBitmap.hpp>
      25             : #include <com/sun/star/lang/XTypeProvider.hpp>
      26             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      27             : #include <cppuhelper/weak.hxx>
      28             : #include <osl/mutex.hxx>
      29             : #include <vcl/bitmapex.hxx>
      30             : 
      31             : 
      32             : 
      33             : //  class VCLXBitmap
      34             : 
      35             : 
      36           0 : class VCLXBitmap :  public ::com::sun::star::awt::XBitmap,
      37             :                     public ::com::sun::star::awt::XDisplayBitmap,
      38             :                     public ::com::sun::star::lang::XTypeProvider,
      39             :                     public ::com::sun::star::lang::XUnoTunnel,
      40             :                     public ::cppu::OWeakObject
      41             : {
      42             : private:
      43             :     ::osl::Mutex    maMutex;
      44             :     BitmapEx        maBitmap;
      45             : 
      46             : protected:
      47           0 :     ::osl::Mutex&   GetMutex() { return maMutex; }
      48             : 
      49             : 
      50             : public:
      51           0 :     void            SetBitmap( const BitmapEx& rBmp )   { maBitmap = rBmp; }
      52           0 :     const BitmapEx& GetBitmap() const                   { return maBitmap; }
      53             : 
      54             : 
      55             :     // ::com::sun::star::uno::XInterface
      56             :     ::com::sun::star::uno::Any                  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      57           0 :     void                                        SAL_CALL acquire() throw() SAL_OVERRIDE  { OWeakObject::acquire(); }
      58           0 :     void                                        SAL_CALL release() throw() SAL_OVERRIDE  { OWeakObject::release(); }
      59             : 
      60             :     // ::com::sun::star::lang::XUnoTunnel
      61             :     static const ::com::sun::star::uno::Sequence< sal_Int8 >&   GetUnoTunnelId() throw();
      62             :     static VCLXBitmap*                                          GetImplementation( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& rxIFace );
      63             :     sal_Int64                                                   SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& rIdentifier ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      64             : 
      65             :     // ::com::sun::star::lang::XTypeProvider
      66             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      67             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      68             : 
      69             :     // ::com::sun::star::awt::XBitmap
      70             :     ::com::sun::star::awt::Size                 SAL_CALL getSize() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             :     ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getDIB() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      72             :     ::com::sun::star::uno::Sequence< sal_Int8 > SAL_CALL getMaskDIB() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             : };
      74             : 
      75             : 
      76             : 
      77             : 
      78             : #endif // INCLUDED_TOOLKIT_AWT_VCLXBITMAP_HXX
      79             : 
      80             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10