LCOV - code coverage report
Current view: top level - canvas/source/vcl - 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             :  * 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_CANVAS_SOURCE_VCL_CANVASFONT_HXX
      21             : #define INCLUDED_CANVAS_SOURCE_VCL_CANVASFONT_HXX
      22             : 
      23             : #include <comphelper/implementationreference.hxx>
      24             : 
      25             : #include <cppuhelper/compbase2.hxx>
      26             : #include <comphelper/broadcasthelper.hxx>
      27             : 
      28             : #include <com/sun/star/lang/XServiceInfo.hpp>
      29             : #include <com/sun/star/geometry/Matrix2D.hpp>
      30             : #include <com/sun/star/rendering/FontRequest.hpp>
      31             : #include <com/sun/star/rendering/XCanvasFont.hpp>
      32             : #include <com/sun/star/rendering/XGraphicDevice.hpp>
      33             : 
      34             : #include <vcl/font.hxx>
      35             : 
      36             : #include <canvas/vclwrapper.hxx>
      37             : 
      38             : #include "spritecanvas.hxx"
      39             : #include "impltools.hxx"
      40             : 
      41             : #include <boost/utility.hpp>
      42             : 
      43             : 
      44             : /* Definition of CanvasFont class */
      45             : 
      46             : namespace vclcanvas
      47             : {
      48             :     typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::rendering::XCanvasFont,
      49             :                                                ::com::sun::star::lang::XServiceInfo > CanvasFont_Base;
      50             : 
      51           0 :     class CanvasFont : public ::comphelper::OBaseMutex,
      52             :                        public CanvasFont_Base,
      53             :                        private ::boost::noncopyable
      54             :     {
      55             :     public:
      56             :         typedef ::comphelper::ImplementationReference<
      57             :             CanvasFont,
      58             :             ::com::sun::star::rendering::XCanvasFont > Reference;
      59             : 
      60             :         CanvasFont( const ::com::sun::star::rendering::FontRequest&                                     fontRequest,
      61             :                     const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >&    extraFontProperties,
      62             :                     const ::com::sun::star::geometry::Matrix2D&                                         rFontMatrix,
      63             :                     ::com::sun::star::rendering::XGraphicDevice&                                        rDevice,
      64             :                     const OutDevProviderSharedPtr&                                                      rOutDevProvider );
      65             : 
      66             :         /// Dispose all internal references
      67             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      68             : 
      69             :         // XCanvasFont
      70             :         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;
      71             :         virtual ::com::sun::star::rendering::FontRequest SAL_CALL getFontRequest(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      72             :         virtual ::com::sun::star::rendering::FontMetrics SAL_CALL getFontMetrics(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :         virtual ::com::sun::star::uno::Sequence< double > SAL_CALL getAvailableSizes(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :         virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getExtraFontProperties(  ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :         // XServiceInfo
      77             :         virtual OUString SAL_CALL getImplementationName() throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      78             :         virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      79             :         virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()  throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      80             : 
      81             :         ::Font getVCLFont() const;
      82             : 
      83             :     private:
      84             :         ::canvas::vcltools::VCLObject<Font>                                            maFont;
      85             :         ::com::sun::star::rendering::FontRequest                                       maFontRequest;
      86             :         ::com::sun::star::uno::Reference< ::com::sun::star::rendering::XGraphicDevice> mpRefDevice;
      87             :         OutDevProviderSharedPtr                                                        mpOutDevProvider;
      88             :     };
      89             : 
      90             : }
      91             : 
      92             : #endif // INCLUDED_CANVAS_SOURCE_VCL_CANVASFONT_HXX
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10