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

Generated by: LCOV version 1.10