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

Generated by: LCOV version 1.10