LCOV - code coverage report
Current view: top level - sc/inc - tabopparams.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2012-08-25 Functions: 4 4 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 9 12 75.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                 :            : 
      29                 :            : #ifndef SC_TABOPPARAMS_HXX
      30                 :            : #define SC_TABOPPARAMS_HXX
      31                 :            : 
      32                 :            : #include "global.hxx"
      33                 :            : #include "address.hxx"
      34                 :            : 
      35                 :            : #include <vector>
      36                 :            : 
      37                 :            : class ScFormulaCell;
      38                 :            : 
      39                 :       1700 : struct ScInterpreterTableOpParams
      40                 :            : {
      41                 :            :     ScAddress   aOld1;
      42                 :            :     ScAddress   aNew1;
      43                 :            :     ScAddress   aOld2;
      44                 :            :     ScAddress   aNew2;
      45                 :            :     ScAddress   aFormulaPos;
      46                 :            :     ::std::vector< ScFormulaCell* > aNotifiedFormulaCells;
      47                 :            :     ::std::vector< ScAddress >      aNotifiedFormulaPos;
      48                 :            :     sal_Bool        bValid;
      49                 :            :     sal_Bool        bRefresh;
      50                 :            :     sal_Bool        bCollectNotifications;
      51                 :            : 
      52                 :       1870 :     ScInterpreterTableOpParams()
      53                 :            :             : bValid( false )
      54                 :            :             , bRefresh( false )
      55         [ +  - ]:       1870 :             , bCollectNotifications( sal_True )
      56                 :            :     {
      57                 :       1870 :     }
      58                 :            : 
      59                 :            :     ScInterpreterTableOpParams( const ScInterpreterTableOpParams& r )
      60                 :            :             : aOld1(                 r.aOld1 )
      61                 :            :             , aNew1(                 r.aNew1 )
      62                 :            :             , aOld2(                 r.aOld2 )
      63                 :            :             , aNew2(                 r.aNew2 )
      64                 :            :             , aFormulaPos(           r.aFormulaPos )
      65                 :            :             , aNotifiedFormulaPos(   r.aNotifiedFormulaPos )
      66                 :            :             , bValid(                r.bValid )
      67                 :            :             , bRefresh(              r.bRefresh )
      68                 :            :             , bCollectNotifications( r.bCollectNotifications )
      69                 :            :     {
      70                 :            :     }
      71                 :            : 
      72                 :         58 :     ScInterpreterTableOpParams& operator =( const ScInterpreterTableOpParams& r )
      73                 :            :     {
      74                 :         58 :         aOld1                 = r.aOld1;
      75                 :         58 :         aNew1                 = r.aNew1;
      76                 :         58 :         aOld2                 = r.aOld2;
      77                 :         58 :         aNew2                 = r.aNew2;
      78                 :         58 :         aFormulaPos           = r.aFormulaPos;
      79                 :         58 :         ::std::vector< ScFormulaCell* >().swap( aNotifiedFormulaCells );
      80                 :         58 :         aNotifiedFormulaPos   = r.aNotifiedFormulaPos;
      81                 :         58 :         bValid                = r.bValid;
      82                 :         58 :         bRefresh              = r.bRefresh;
      83                 :         58 :         bCollectNotifications = r.bCollectNotifications;
      84                 :         58 :         return *this;
      85                 :            :     }
      86                 :            : 
      87                 :         89 :     sal_Bool operator ==( const ScInterpreterTableOpParams& r )
      88                 :            :     {
      89                 :            :         return
      90                 :            :             bValid && r.bValid &&
      91                 :         68 :             aOld1       == r.aOld1 &&
      92                 :         60 :             aOld2       == r.aOld2 &&
      93 [ +  + ][ +  -  :        217 :             aFormulaPos == r.aFormulaPos ;
             +  +  +  - ]
                 [ +  + ]
      94                 :            :     }
      95                 :            : };
      96                 :            : 
      97                 :            : #endif
      98                 :            : 
      99                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10