LCOV - code coverage report
Current view: top level - include/editeng - optitems.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 7 0.0 %
Date: 2014-11-03 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             : #ifndef INCLUDED_EDITENG_OPTITEMS_HXX
      20             : #define INCLUDED_EDITENG_OPTITEMS_HXX
      21             : 
      22             : #include <svl/poolitem.hxx>
      23             : #include <com/sun/star/uno/Reference.hxx>
      24             : #include <editeng/editengdllapi.h>
      25             : 
      26             : // forward ---------------------------------------------------------------
      27             : namespace com { namespace sun { namespace star {
      28             : namespace linguistic2{
      29             :     class XSpellChecker1;
      30             : }}}}
      31             : 
      32             : 
      33             : // class SfxSpellCheckItem -----------------------------------------------
      34             : 
      35           0 : class EDITENG_DLLPUBLIC SfxSpellCheckItem: public SfxPoolItem
      36             : {
      37             : public:
      38             :     TYPEINFO_OVERRIDE();
      39             : 
      40             :     SfxSpellCheckItem( ::com::sun::star::uno::Reference<
      41             :                             ::com::sun::star::linguistic2::XSpellChecker1 >  &xChecker,
      42             :                        sal_uInt16 nWhich  );
      43             :     SfxSpellCheckItem( const SfxSpellCheckItem& rItem );
      44             : 
      45             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      46             :                                     SfxMapUnit eCoreMetric,
      47             :                                     SfxMapUnit ePresMetric,
      48             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      49             : 
      50             :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      51             :     virtual bool            operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      52             : 
      53             :     ::com::sun::star::uno::Reference<
      54             :         ::com::sun::star::linguistic2::XSpellChecker1 >
      55           0 :             GetXSpellChecker() const { return xSpellCheck; }
      56             : 
      57             : private:
      58             :     ::com::sun::star::uno::Reference<
      59             :         ::com::sun::star::linguistic2::XSpellChecker1 >         xSpellCheck;
      60             : };
      61             : 
      62             : 
      63             : // class SfxHyphenRegionItem ---------------------------------------------
      64             : 
      65           0 : class EDITENG_DLLPUBLIC SfxHyphenRegionItem: public SfxPoolItem
      66             : {
      67             :     sal_uInt8 nMinLead;
      68             :     sal_uInt8 nMinTrail;
      69             : 
      70             : public:
      71             :     TYPEINFO_OVERRIDE();
      72             : 
      73             :     SfxHyphenRegionItem( const sal_uInt16 nId  );
      74             :     SfxHyphenRegionItem( const SfxHyphenRegionItem& rItem );
      75             : 
      76             :     virtual bool             operator==( const SfxPoolItem& ) const SAL_OVERRIDE;
      77             :     virtual bool GetPresentation( SfxItemPresentation ePres,
      78             :                                     SfxMapUnit eCoreMetric,
      79             :                                     SfxMapUnit ePresMetric,
      80             :                                     OUString &rText, const IntlWrapper * = 0 ) const SAL_OVERRIDE;
      81             : 
      82             :     virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const SAL_OVERRIDE;
      83             :     virtual SfxPoolItem*     Create( SvStream& rStrm, sal_uInt16 nVer ) const SAL_OVERRIDE;
      84             :     virtual SvStream&        Store( SvStream& rStrm, sal_uInt16 ) const SAL_OVERRIDE;
      85             : 
      86           0 :     inline sal_uInt8 &GetMinLead() { return nMinLead; }
      87           0 :     inline sal_uInt8 GetMinLead() const { return nMinLead; }
      88             : 
      89           0 :     inline sal_uInt8 &GetMinTrail() { return nMinTrail; }
      90           0 :     inline sal_uInt8 GetMinTrail() const { return nMinTrail; }
      91             : 
      92             :     inline SfxHyphenRegionItem& operator=( const SfxHyphenRegionItem& rNew )
      93             :     {
      94             :         nMinLead = rNew.GetMinLead();
      95             :         nMinTrail = rNew.GetMinTrail();
      96             :         return *this;
      97             :     }
      98             : };
      99             : 
     100             : #endif
     101             : 
     102             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10