LCOV - code coverage report
Current view: top level - canvas/source/opengl - ogl_canvasfont.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 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             : 
      10             : #ifndef INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASFONT_HXX
      11             : #define INCLUDED_CANVAS_SOURCE_OPENGL_OGL_CANVASFONT_HXX
      12             : 
      13             : #include <comphelper/implementationreference.hxx>
      14             : 
      15             : #include <cppuhelper/compbase1.hxx>
      16             : #include <comphelper/broadcasthelper.hxx>
      17             : 
      18             : #include <com/sun/star/rendering/XCanvas.hpp>
      19             : #include <com/sun/star/rendering/XCanvasFont.hpp>
      20             : 
      21             : #include <rtl/ref.hxx>
      22             : 
      23             : #include <boost/shared_ptr.hpp>
      24             : #include <boost/utility.hpp>
      25             : 
      26             : 
      27             : /* Definition of CanvasFont class */
      28             : 
      29             : namespace oglcanvas
      30             : {
      31             :     class SpriteCanvas;
      32             : 
      33             :     typedef ::cppu::WeakComponentImplHelper1< ::com::sun::star::rendering::XCanvasFont > CanvasFontBaseT;
      34             : 
      35           0 :     class CanvasFont : public ::comphelper::OBaseMutex,
      36             :                        public CanvasFontBaseT,
      37             :                        private ::boost::noncopyable
      38             :     {
      39             :     public:
      40             :         typedef ::comphelper::ImplementationReference<
      41             :             CanvasFont,
      42             :             ::com::sun::star::rendering::XCanvasFont > ImplRef;
      43             : 
      44             :         CanvasFont( const ::com::sun::star::rendering::FontRequest&                                     fontRequest,
      45             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >&    extraFontProperties,
      46             :                     const ::com::sun::star::geometry::Matrix2D&                                         fontMatrix );
      47             : 
      48             :         /// Dispose all internal references
      49             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      50             : 
      51             :         // XCanvasFont
      52             :         virtual ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XTextLayout > SAL_CALL createTextLayout( const ::com::sun::star::rendering::StringContext& aText, sal_Int8 nDirection, sal_Int64 nRandomSeed ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      53             :         virtual ::com::sun::star::rendering::FontRequest SAL_CALL getFontRequest(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      54             :         virtual ::com::sun::star::rendering::FontMetrics SAL_CALL getFontMetrics(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      55             :         virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getAvailableSizes(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      56             :         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getExtraFontProperties(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      57             : 
      58             :         const ::com::sun::star::geometry::Matrix2D& getFontMatrix() const;
      59             : 
      60             :     private:
      61             :         ::com::sun::star::rendering::FontRequest    maFontRequest;
      62             :         ::com::sun::star::geometry::Matrix2D        maFontMatrix;
      63             :     };
      64             : }
      65             : 
      66             : #endif
      67             : 
      68             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10