LCOV - code coverage report
Current view: top level - forms/source/inc - formcontrolfont.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 9 0.0 %
Date: 2014-04-14 Functions: 0 9 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_FORMS_SOURCE_INC_FORMCONTROLFONT_HXX
      21             : #define INCLUDED_FORMS_SOURCE_INC_FORMCONTROLFONT_HXX
      22             : 
      23             : #include <com/sun/star/io/XObjectOutputStream.hpp>
      24             : #include <com/sun/star/awt/FontDescriptor.hpp>
      25             : #include <com/sun/star/beans/Property.hpp>
      26             : #include <com/sun/star/lang/IllegalArgumentException.hpp>
      27             : 
      28             : namespace cppu {
      29             :     class OPropertySetHelper;
      30             : }
      31             : 
      32             : 
      33             : namespace frm
      34             : {
      35             : 
      36             : 
      37             : 
      38             :     //= FontControlModel
      39             : 
      40           0 :     class FontControlModel
      41             :     {
      42             :     private:
      43             :         // <properties>
      44             :         ::com::sun::star::awt::FontDescriptor   m_aFont;
      45             :         sal_Int16                               m_nFontRelief;
      46             :         sal_Int16                               m_nFontEmphasis;
      47             :         ::com::sun::star::uno::Any              m_aTextLineColor;
      48             :         ::com::sun::star::uno::Any              m_aTextColor;
      49             :         // </properties>
      50             : 
      51             :         bool                                    m_bToolkitCompatibleDefaults;
      52             : 
      53             :     protected:
      54           0 :         const ::com::sun::star::awt::FontDescriptor& getFont() const { return m_aFont; }
      55           0 :         void setFont( const ::com::sun::star::awt::FontDescriptor& _rFont ) { m_aFont = _rFont; }
      56             : 
      57           0 :         void        setTextColor( sal_Int32 _nColor ) { m_aTextColor <<= _nColor;       }
      58           0 :         void        clearTextColor( )                 { m_aTextColor.clear();           }
      59           0 :         bool        hasTextColor( ) const             { return m_aTextColor.hasValue(); }
      60             :         sal_Int32   getTextColor( ) const;
      61             : 
      62           0 :         void        setTextLineColor( sal_Int32 _nColor ) { m_aTextLineColor <<= _nColor;       }
      63           0 :         void        clearTextLineColor( )                 { m_aTextLineColor.clear();           }
      64           0 :         bool        hasTextLineColor( ) const             { return m_aTextLineColor.hasValue(); }
      65             :         sal_Int32   getTextLineColor( ) const;
      66             : 
      67             :     protected:
      68             :         FontControlModel( bool _bToolkitCompatibleDefaults );
      69             :         FontControlModel( const FontControlModel* _pOriginal );
      70             : 
      71             :     protected:
      72             :         bool     isFontRelatedProperty( sal_Int32 _nPropertyHandle ) const;
      73             :         bool     isFontAggregateProperty( sal_Int32 _nPropertyHandle ) const;
      74             : 
      75             :         /// appends (!) the description of all font related properties to the given sequence
      76             :         void     describeFontRelatedProperties(
      77             :             ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps ) const;
      78             : 
      79             :         void     getFastPropertyValue            ( ::com::sun::star::uno::Any& _rValue, sal_Int32 _nHandle ) const;
      80             :         sal_Bool convertFastPropertyValue        ( ::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue ) throw( ::com::sun::star::lang::IllegalArgumentException );
      81             :         void     setFastPropertyValue_NoBroadcast_impl(
      82             :                 ::cppu::OPropertySetHelper & rBase,
      83             :                 void (::cppu::OPropertySetHelper::*pSet)(
      84             :                     sal_Int32, css::uno::Any const&),
      85             :                 sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue)
      86             :             throw ( ::com::sun::star::uno::Exception );
      87             :         ::com::sun::star::uno::Any
      88             :                  getPropertyDefaultByHandle      ( sal_Int32 _nHandle ) const;
      89             : 
      90             :     private:
      91             : 
      92             :     private:
      93             :         FontControlModel();                                     // never implemented
      94             :         FontControlModel( const FontControlModel& );            // never implemented
      95             :         FontControlModel& operator=( const FontControlModel& ); // never implemented
      96             :     };
      97             : 
      98             : 
      99             : }   // namespace frm
     100             : 
     101             : 
     102             : #endif // INCLUDED_FORMS_SOURCE_INC_FORMCONTROLFONT_HXX
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10