LCOV - code coverage report
Current view: top level - libreoffice/canvas/source/null - null_devicehelper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 1 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_DEVICEHELPER_HXX
      21             : #define _NULLCANVAS_DEVICEHELPER_HXX
      22             : 
      23             : #include <com/sun/star/awt/Rectangle.hpp>
      24             : #include <com/sun/star/rendering/XGraphicDevice.hpp>
      25             : #include <com/sun/star/rendering/XBufferController.hpp>
      26             : 
      27             : #include <boost/utility.hpp>
      28             : 
      29             : 
      30             : /* Definition of DeviceHelper class */
      31             : 
      32             : namespace nullcanvas
      33             : {
      34             :     class SpriteCanvas;
      35             : 
      36           0 :     class DeviceHelper : private ::boost::noncopyable
      37             :     {
      38             :     public:
      39             :         DeviceHelper();
      40             : 
      41             :         void init( SpriteCanvas&                rSpriteCanvas,
      42             :                    const ::basegfx::B2ISize&    rSize,
      43             :                    bool                         bFullscreen );
      44             : 
      45             :         /// Dispose all internal references
      46             :         void disposing();
      47             : 
      48             :         // XWindowGraphicDevice
      49             :         ::com::sun::star::geometry::RealSize2D getPhysicalResolution();
      50             :         ::com::sun::star::geometry::RealSize2D getPhysicalSize();
      51             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
      52             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&                               rDevice,
      53             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
      54             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
      55             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&                                       rDevice,
      56             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
      57             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
      58             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      59             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      60             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
      61             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      62             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      63             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
      64             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      65             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      66             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
      67             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      68             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      69             :         sal_Bool hasFullScreenMode(  );
      70             :         sal_Bool enterFullScreenMode( sal_Bool bEnter );
      71             : 
      72             :         ::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
      73             :         void        destroyBuffers(  );
      74             :         ::sal_Bool  showBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
      75             :         ::sal_Bool  switchBuffer( bool bIsVisible, ::sal_Bool bUpdateAll );
      76             : 
      77             :         ::com::sun::star::uno::Any isAccelerated() const;
      78             :         ::com::sun::star::uno::Any getDeviceHandle() const;
      79             :         ::com::sun::star::uno::Any getSurfaceHandle() const;
      80             :         ::com::sun::star::uno::Reference<
      81             :             ::com::sun::star::rendering::XColorSpace> getColorSpace() const;
      82             : 
      83             :         void notifySizeUpdate( const ::com::sun::star::awt::Rectangle& rBounds );
      84             : 
      85             :         /** called when DumpScreenContent property is enabled on
      86             :             XGraphicDevice, and writes out bitmaps of current screen.
      87             :          */
      88             :         void dumpScreenContent() const;
      89             : 
      90             :     private:
      91             :         /// Pointer to sprite canvas (owner of this helper), needed to create bitmaps
      92             :         SpriteCanvas*           mpSpriteCanvas;
      93             :         ::basegfx::B2ISize      maSize;
      94             :         bool                    mbFullScreen;
      95             :     };
      96             : }
      97             : 
      98             : #endif /* _NULLCANVAS_WINDOWGRAPHICDEVICE_HXX */
      99             : 
     100             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10