LCOV - code coverage report
Current view: top level - sw/inc - fmtcnct.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 8 12 66.7 %
Date: 2012-08-25 Functions: 7 8 87.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 3 6 50.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 _FMTCNCT_HXX
      29                 :            : #define _FMTCNCT_HXX
      30                 :            : 
      31                 :            : #include <hintids.hxx>
      32                 :            : #include <svl/poolitem.hxx>
      33                 :            : #include <format.hxx>
      34                 :            : #include <calbck.hxx>
      35                 :            : 
      36                 :            : 
      37                 :            : class SwFlyFrmFmt;
      38                 :            : class IntlWrapper;
      39                 :            : 
      40                 :            : // Connection (text flow) between two FlyFrms.
      41 [ +  - ][ +  - ]:        153 : class SW_DLLPUBLIC SwFmtChain: public SfxPoolItem
                 [ -  + ]
      42                 :            : {
      43                 :            :     SwClient aPrev, // Previous SwFlyFrmFmt (if existent).
      44                 :            :              aNext; // Next SwFlyFrmFmt (if existent).
      45                 :            : 
      46                 :            : 
      47                 :            : public:
      48                 :         78 :     SwFmtChain() : SfxPoolItem( RES_CHAIN ) {}
      49                 :            :     SwFmtChain( const SwFmtChain &rCpy );
      50                 :            : 
      51                 :            :     inline SwFmtChain &operator=( const SwFmtChain& );
      52                 :            : 
      53                 :            :     // "Pure virtual methods" of SfxPoolItem.
      54                 :            :     virtual int             operator==( const SfxPoolItem& ) const;
      55                 :            :     virtual SfxPoolItem*    Clone( SfxItemPool* pPool = 0 ) const;
      56                 :            :     virtual SfxItemPresentation GetPresentation( SfxItemPresentation ePres,
      57                 :            :                                     SfxMapUnit eCoreMetric,
      58                 :            :                                     SfxMapUnit ePresMetric,
      59                 :            :                                     String &rText,
      60                 :            :                                     const IntlWrapper*    pIntl = 0 ) const;
      61                 :            : 
      62                 :            :     virtual bool QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const;
      63                 :            : 
      64                 :       1625 :     SwFlyFrmFmt* GetPrev() const { return (SwFlyFrmFmt*)aPrev.GetRegisteredIn(); }
      65                 :       1625 :     SwFlyFrmFmt* GetNext() const { return (SwFlyFrmFmt*)aNext.GetRegisteredIn(); }
      66                 :            : 
      67                 :            : 
      68                 :            :     void SetPrev( SwFlyFrmFmt *pFmt );
      69                 :            :     void SetNext( SwFlyFrmFmt *pFmt );
      70                 :            : };
      71                 :            : 
      72                 :          0 : SwFmtChain &SwFmtChain::operator=( const SwFmtChain &rCpy )
      73                 :            : {
      74                 :          0 :     SetPrev( rCpy.GetPrev() );
      75                 :          0 :     SetNext( rCpy.GetNext() );
      76                 :          0 :     return *this;
      77                 :            : }
      78                 :            : 
      79                 :            : 
      80                 :       1620 : inline const SwFmtChain &SwAttrSet::GetChain(sal_Bool bInP) const
      81                 :       1620 :     { return (const SwFmtChain&)Get( RES_CHAIN,bInP); }
      82                 :            : 
      83                 :       1620 : inline const SwFmtChain &SwFmt::GetChain(sal_Bool bInP) const
      84                 :       1620 :     { return aSet.GetChain(bInP); }
      85                 :            : 
      86                 :            : #endif
      87                 :            : 
      88                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10