LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/editeng - scripttypeitem.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 2 50.0 %
Date: 2012-08-25 Functions: 1 4 25.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 4 25.0 %

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : #ifndef _SVX_SCRIPTTYPEITEM_HXX
      29                 :            : #define _SVX_SCRIPTTYPEITEM_HXX
      30                 :            : 
      31                 :            : #include <svl/intitem.hxx>
      32                 :            : #include <svl/languageoptions.hxx>
      33                 :            : #include <editeng/editengdllapi.h>
      34                 :            : 
      35                 :            : // class SvxScriptTypeItem ----------------------------------------------
      36                 :            : 
      37                 :            : /* [Description]
      38                 :            : 
      39                 :            :     This item describes the script type of the selected text and is only
      40                 :            :     used for the user interface.
      41                 :            : */
      42                 :            : 
      43                 :            : EDITENG_DLLPUBLIC sal_uInt16 GetI18NScriptTypeOfLanguage( sal_uInt16 nLang );
      44                 :            : sal_uInt16 GetItemScriptType( short nI18NType );
      45                 :            : short  GetI18NScriptType( sal_uInt16 nItemType );
      46                 :            : 
      47         [ #  # ]:          0 : class EDITENG_DLLPUBLIC SvxScriptTypeItem : public SfxUInt16Item
      48                 :            : {
      49                 :            : public:
      50                 :            :     TYPEINFO();
      51                 :            : 
      52                 :            :     SvxScriptTypeItem( sal_uInt16 nType = SCRIPTTYPE_LATIN );
      53                 :            :     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
      54                 :            : 
      55                 :            : };
      56                 :            : 
      57         [ -  + ]:      10017 : class EDITENG_DLLPUBLIC SvxScriptSetItem : public SfxSetItem
      58                 :            : {
      59                 :            : public:
      60                 :            :     TYPEINFO();
      61                 :            : 
      62                 :            :     SvxScriptSetItem( sal_uInt16 nSlotId, SfxItemPool& rPool );
      63                 :            : 
      64                 :            :     virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
      65                 :            :     virtual SfxPoolItem* Create( SvStream &, sal_uInt16 nVersion ) const;
      66                 :            : 
      67                 :            :     static const SfxPoolItem* GetItemOfScriptSet( const SfxItemSet& rSet,
      68                 :            :                                                     sal_uInt16 nWhich );
      69                 :            :     inline const SfxPoolItem* GetItemOfScriptSet( sal_uInt16 _nWhich ) const
      70                 :            :     { return SvxScriptSetItem::GetItemOfScriptSet( GetItemSet(), _nWhich ); }
      71                 :            : 
      72                 :            :     static const SfxPoolItem* GetItemOfScript( sal_uInt16 nSlotId, const SfxItemSet& rSet, sal_uInt16 nScript );
      73                 :            : 
      74                 :            :     const SfxPoolItem* GetItemOfScript( sal_uInt16 nScript ) const;
      75                 :            : 
      76                 :            :     void PutItemForScriptType( sal_uInt16 nScriptType, const SfxPoolItem& rItem );
      77                 :            : 
      78                 :            :     static void GetWhichIds( sal_uInt16 nSlotId, const SfxItemSet& rSet, sal_uInt16& rLatin, sal_uInt16& rAsian, sal_uInt16& rComplex);
      79                 :            : 
      80                 :            :     void GetWhichIds( sal_uInt16& rLatin, sal_uInt16& rAsian, sal_uInt16& rComplex) const;
      81                 :            : 
      82                 :            :     static void GetSlotIds( sal_uInt16 nSlotId, sal_uInt16& rLatin, sal_uInt16& rAsian,
      83                 :            :                                             sal_uInt16& rComplex );
      84                 :            :     inline void GetSlotIds( sal_uInt16& rLatin, sal_uInt16& rAsian,
      85                 :            :                                 sal_uInt16& rComplex ) const
      86                 :            :     { GetSlotIds( Which(), rLatin, rAsian, rComplex ); }
      87                 :            : };
      88                 :            : 
      89                 :            : #endif
      90                 :            : 
      91                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10