LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/editeng - crsditem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 5 8 62.5 %
Date: 2012-12-17 Functions: 5 6 83.3 %
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             : #ifndef _SVX_CRSDITEM_HXX
      20             : #define _SVX_CRSDITEM_HXX
      21             : 
      22             : #include <vcl/vclenum.hxx>
      23             : #include <svl/eitem.hxx>
      24             : #include <editeng/editengdllapi.h>
      25             : 
      26             : class SvXMLUnitConverter;
      27             : namespace rtl
      28             : {
      29             :     class OUString;
      30             : }
      31             : 
      32             : // class SvxCrossedOutItem -----------------------------------------------
      33             : 
      34             : /*  [Description]
      35             :     This item describes, whether and how it is striked out.
      36             : */
      37             : 
      38       24264 : class EDITENG_DLLPUBLIC SvxCrossedOutItem : public SfxEnumItem
      39             : {
      40             : public:
      41             :     TYPEINFO();
      42             : 
      43             :     SvxCrossedOutItem( const FontStrikeout eSt /*= STRIKEOUT_NONE*/,
      44             :                        const sal_uInt16 nId  );
      45             : 
      46             :     // "pure virtual Methods" from SfxPoolItem
      47             :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      48             :                                     SfxMapUnit eCoreMetric,
      49             :                                     SfxMapUnit ePresMetric,
      50             :                                     String &rText, const IntlWrapper * = 0 ) const;
      51             : 
      52             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      53             :     virtual SfxPoolItem*    Create(SvStream &, sal_uInt16) const;
      54             :     virtual SvStream&       Store(SvStream &, sal_uInt16 nItemVersion) const;
      55             :     virtual rtl::OUString   GetValueTextByPos( sal_uInt16 nPos ) const;
      56             :     virtual sal_uInt16      GetValueCount() const;
      57             :     virtual bool            QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      58             :     virtual bool            PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      59             : 
      60             :     // MS VC4.0 messes things up
      61        2192 :     void                    SetValue( sal_uInt16 nNewVal )
      62        2192 :                                 {SfxEnumItem::SetValue(nNewVal); }
      63             : 
      64             :     virtual int             HasBoolValue() const;
      65             :     virtual sal_Bool            GetBoolValue() const;
      66             :     virtual void            SetBoolValue( sal_Bool bVal );
      67             : 
      68           0 :     inline SvxCrossedOutItem& operator=(const SvxCrossedOutItem& rCross)
      69             :         {
      70           0 :             SetValue( rCross.GetValue() );
      71           0 :             return *this;
      72             :         }
      73             : 
      74             :     // enum cast
      75      131226 :     FontStrikeout           GetStrikeout() const
      76      131226 :                                 { return (FontStrikeout)GetValue(); }
      77             :     void                    SetStrikeout( FontStrikeout eNew )
      78             :                                 { SetValue( (sal_uInt16)eNew ); }
      79             : };
      80             : 
      81             : #endif // #ifndef _SVX_CRSDITEM_HXX
      82             : 
      83             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10