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

Generated by: LCOV version 1.10