LCOV - code coverage report
Current view: top level - libreoffice/canvas/source/vcl - devicehelper.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 2 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 _VCLCANVAS_DEVICEHELPER_HXX
      21             : #define _VCLCANVAS_DEVICEHELPER_HXX
      22             : 
      23             : #include <com/sun/star/awt/Rectangle.hpp>
      24             : #include <com/sun/star/awt/XWindow2.hpp>
      25             : #include <com/sun/star/rendering/XGraphicDevice.hpp>
      26             : #include <com/sun/star/rendering/XBufferController.hpp>
      27             : 
      28             : #include <vcl/outdev.hxx>
      29             : #include <vcl/window.hxx>
      30             : 
      31             : #include "outdevprovider.hxx"
      32             : 
      33             : #include <boost/utility.hpp>
      34             : 
      35             : 
      36             : /* Definition of DeviceHelper class */
      37             : 
      38             : namespace vclcanvas
      39             : {
      40           0 :     class DeviceHelper : private ::boost::noncopyable
      41             :     {
      42             :     public:
      43             :         DeviceHelper();
      44             : 
      45             :         void init( const OutDevProviderSharedPtr& rOutDev );
      46             : 
      47             :         /// Dispose all internal references
      48             :         void disposing();
      49             : 
      50             :         // XWindowGraphicDevice
      51             :         ::com::sun::star::geometry::RealSize2D getPhysicalResolution();
      52             :         ::com::sun::star::geometry::RealSize2D getPhysicalSize();
      53             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XLinePolyPolygon2D > createCompatibleLinePolyPolygon(
      54             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&                               rDevice,
      55             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealPoint2D > >& points );
      56             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBezierPolyPolygon2D > createCompatibleBezierPolyPolygon(
      57             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&                                       rDevice,
      58             :             const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::geometry::RealBezierSegment2D > >& points );
      59             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleBitmap(
      60             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      61             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      62             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileBitmap(
      63             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      64             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      65             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XBitmap > createCompatibleAlphaBitmap(
      66             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      67             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      68             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XVolatileBitmap > createVolatileAlphaBitmap(
      69             :             const ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice >&  rDevice,
      70             :             const ::com::sun::star::geometry::IntegerSize2D&                                        size );
      71             :         sal_Bool hasFullScreenMode(  );
      72             :         sal_Bool enterFullScreenMode( sal_Bool bEnter );
      73             : 
      74             :         ::com::sun::star::uno::Any isAccelerated() const;
      75             :         ::com::sun::star::uno::Any getDeviceHandle() const;
      76             :         ::com::sun::star::uno::Any getSurfaceHandle() const;
      77             :         ::com::sun::star::uno::Reference<
      78             :             ::com::sun::star::rendering::XColorSpace > getColorSpace() const;
      79             : 
      80           0 :         OutDevProviderSharedPtr getOutDev() const { return mpOutDev; }
      81             : 
      82             :         /** called when DumpScreenContent property is enabled on
      83             :             XGraphicDevice, and writes out bitmaps of current screen.
      84             :          */
      85             :         void dumpScreenContent() const;
      86             : 
      87             :     private:
      88             :         /// For retrieving device info
      89             :         OutDevProviderSharedPtr mpOutDev;
      90             :     };
      91             : }
      92             : 
      93             : #endif /* _VCLCANVAS_DEVICEHELPER_HXX */
      94             : 
      95             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10