LCOV - code coverage report
Current view: top level - solver/unxlngi6.pro/inc/svx - numinf.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-08-25 Functions: 0 6 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 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_NUMINF_HXX
      29                 :            : #define _SVX_NUMINF_HXX
      30                 :            : 
      31                 :            : #include <svl/itempool.hxx>
      32                 :            : #include <svx/numfmtsh.hxx>
      33                 :            : #include "svx/svxdllapi.h"
      34                 :            : 
      35                 :            : // class SvxNumberInfoItem -----------------------------------------------
      36                 :            : 
      37                 :            : 
      38                 :            : 
      39                 :            : /*
      40                 :            : This item is used as a transport medium for a number formatter
      41                 :            : */
      42                 :            : 
      43                 :            : class SVX_DLLPUBLIC SvxNumberInfoItem : public SfxPoolItem
      44                 :            : {
      45                 :            : public:
      46                 :            :     TYPEINFO();
      47                 :            : 
      48                 :            :     SvxNumberInfoItem( const sal_uInt16 nId  );
      49                 :            :     SvxNumberInfoItem( SvNumberFormatter* pNumFormatter,
      50                 :            :                        const sal_uInt16 nId  );
      51                 :            :     SvxNumberInfoItem( SvNumberFormatter* pNumFormatter, const String& rVal,
      52                 :            :                        const sal_uInt16 nId  );
      53                 :            :     SvxNumberInfoItem( SvNumberFormatter* pNumFormatter, const double& rVal,
      54                 :            :                        const sal_uInt16 nId  );
      55                 :            :     // if both double and String are supplied, String is used for text formats
      56                 :            :     SvxNumberInfoItem( SvNumberFormatter* pNumFormatter, const double& rVal,
      57                 :            :                        const String& rValueStr, const sal_uInt16 nId );
      58                 :            :     SvxNumberInfoItem( const SvxNumberInfoItem& );
      59                 :            :     ~SvxNumberInfoItem();
      60                 :            : 
      61                 :            :     virtual int              operator==( const SfxPoolItem& ) const;
      62                 :            :     virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const;
      63                 :            :     virtual SfxPoolItem*     Create( SvStream& rStream, sal_uInt16 nVer ) const;
      64                 :            :     virtual SvStream&        Store( SvStream& , sal_uInt16 nItemVersion ) const;
      65                 :            : 
      66                 :            :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      67                 :            :                                     SfxMapUnit eCoreMetric,
      68                 :            :                                     SfxMapUnit ePresMetric,
      69                 :            :                                     String &rText, const IntlWrapper * = 0 ) const;
      70                 :            : 
      71                 :          0 :     SvNumberFormatter*      GetNumberFormatter() const { return pFormatter; }
      72                 :          0 :     const String&           GetValueString() const { return aStringVal; }
      73                 :          0 :     double                  GetValueDouble() const  { return nDoubleVal; }
      74                 :            : 
      75                 :          0 :     const sal_uInt32*       GetDelArray() const { return pDelFormatArr; }
      76                 :            :     void                    SetDelFormatArray( const sal_uInt32* pData,
      77                 :            :                                                const sal_uInt32  nCount );
      78                 :            : 
      79                 :          0 :     SvxNumberValueType      GetValueType() const { return eValueType; }
      80                 :          0 :     sal_uInt32              GetDelCount() const  { return nDelCount; }
      81                 :            : 
      82                 :            : private:
      83                 :            :     SvNumberFormatter*  pFormatter;
      84                 :            :     SvxNumberValueType  eValueType;
      85                 :            :     String              aStringVal;
      86                 :            :     double              nDoubleVal;
      87                 :            : 
      88                 :            :     sal_uInt32*         pDelFormatArr;
      89                 :            :     sal_uInt32          nDelCount;
      90                 :            : };
      91                 :            : 
      92                 :            : 
      93                 :            : 
      94                 :            : #endif
      95                 :            : 
      96                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10