LCOV - code coverage report
Current view: top level - sw/source/ui/inc - uiitems.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 8 25.0 %
Date: 2012-08-25 Functions: 2 11 18.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 6 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 _UIITEMS_HXX
      29                 :            : #define _UIITEMS_HXX
      30                 :            : 
      31                 :            : #include <svl/intitem.hxx>
      32                 :            : #include "swdllapi.h"
      33                 :            : #include "cmdid.h"
      34                 :            : #include "pagedesc.hxx"
      35                 :            : #include "pam.hxx"
      36                 :            : 
      37                 :            : class SwNumRule;
      38                 :            : class IntlWrapper;
      39                 :            : 
      40                 :            : /*--------------------------------------------------------------------
      41                 :            :     Description: container for FootNote
      42                 :            :  --------------------------------------------------------------------*/
      43                 :            : class SW_DLLPUBLIC SwPageFtnInfoItem : public SfxPoolItem
      44                 :            : {
      45                 :            :     SwPageFtnInfo aFtnInfo;
      46                 :            : 
      47                 :            : public:
      48                 :            : 
      49                 :            :     SwPageFtnInfoItem(const sal_uInt16 nId, SwPageFtnInfo& rInfo);
      50                 :            :     SwPageFtnInfoItem(const SwPageFtnInfoItem& rItem );
      51                 :            :     ~SwPageFtnInfoItem();
      52                 :            : 
      53                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      54                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
      55                 :            :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      56                 :            :                                     SfxMapUnit eCoreMetric,
      57                 :            :                                     SfxMapUnit ePresMetric,
      58                 :            :                                     String &rText,
      59                 :            :                                     const IntlWrapper*    pIntl = 0 ) const;
      60                 :            : 
      61                 :            :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      62                 :            :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      63                 :            : 
      64                 :       1899 :     SwPageFtnInfo& GetPageFtnInfo()             { return aFtnInfo; }
      65                 :       6080 :     const SwPageFtnInfo& GetPageFtnInfo() const { return aFtnInfo; }
      66                 :            :     void SetPageFtnInfo(SwPageFtnInfo& rInf)    { aFtnInfo = rInf; }
      67                 :            : };
      68                 :            : 
      69         [ #  # ]:          0 : class SW_DLLPUBLIC SwPtrItem : public SfxPoolItem
      70                 :            : {
      71                 :            :     void* pMisc;
      72                 :            : 
      73                 :            : public:
      74                 :            :     SwPtrItem( const sal_uInt16 nId = FN_PARAM_GRF_DIALOG, void* pPtr = 0);
      75                 :            :     SwPtrItem( const SwPtrItem& rItem );
      76                 :            : 
      77                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      78                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
      79                 :            : 
      80                 :            :     void    SetValue(void * pPtr)   { pMisc= pPtr; }
      81                 :          0 :     void*   GetValue() const        { return pMisc; }
      82                 :            : };
      83                 :            : 
      84                 :            : class SW_DLLPUBLIC SwUINumRuleItem : public SfxPoolItem
      85                 :            : {
      86                 :            :     SwNumRule* pRule;
      87                 :            : 
      88                 :            : public:
      89                 :            :     SwUINumRuleItem( const SwNumRule& rRule, const sal_uInt16 = FN_PARAM_ACT_NUMBER);
      90                 :            :     SwUINumRuleItem( const SwUINumRuleItem& rItem );
      91                 :            :     virtual ~SwUINumRuleItem();
      92                 :            : 
      93                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
      94                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
      95                 :            : 
      96                 :            :     virtual bool             QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      97                 :            :     virtual bool             PutValue( const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 );
      98                 :            : 
      99                 :            :     const SwNumRule* GetNumRule() const         { return pRule; }
     100                 :          0 :           SwNumRule* GetNumRule()               { return pRule; }
     101                 :            : };
     102                 :            : 
     103         [ #  # ]:          0 : class SwBackgroundDestinationItem : public SfxUInt16Item
     104                 :            : {
     105                 :            : public:
     106                 :            :     SwBackgroundDestinationItem(sal_uInt16  nWhich, sal_uInt16 nValue);
     107                 :            : 
     108                 :            :     virtual SfxPoolItem*     Clone( SfxItemPool *pPool = 0 ) const;
     109                 :            : };
     110                 :            : 
     111         [ #  # ]:          0 : class SW_DLLPUBLIC SwPaMItem : public SfxPoolItem
     112                 :            : {
     113                 :            :     SwPaM* m_pPaM;
     114                 :            : 
     115                 :            : public:
     116                 :            :     SwPaMItem( const sal_uInt16 nId = FN_PARAM_PAM, SwPaM* pPaM = NULL);
     117                 :            :     SwPaMItem( const SwPaMItem& rItem );
     118                 :            : 
     119                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool *pPool = 0 ) const;
     120                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
     121                 :            : 
     122                 :            :     void    SetValue(SwPaM * pPaM)   { m_pPaM= pPaM; }
     123                 :          0 :     SwPaM*   GetValue() const        { return m_pPaM; }
     124                 :            : };
     125                 :            : 
     126                 :            : #endif // _UIITEMS_HXX
     127                 :            : 
     128                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10