LCOV - code coverage report
Current view: top level - sc/source/core/tool - hints.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 47 54 87.0 %
Date: 2012-08-25 Functions: 30 58 51.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 31 74 41.9 %

           Branch data     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                 :            : 
      20                 :            : #include "hints.hxx"
      21                 :            : 
      22                 :            : // -----------------------------------------------------------------------
      23                 :            : 
      24 [ +  + ][ -  + ]:     517925 : TYPEINIT1(ScPaintHint, SfxHint);
      25 [ +  + ][ -  + ]:     155871 : TYPEINIT1(ScUpdateRefHint, SfxHint);
      26 [ #  # ][ #  # ]:      21753 : TYPEINIT1(ScPointerChangedHint, SfxHint);
      27 [ +  + ][ -  + ]:        171 : TYPEINIT1(ScLinkRefreshedHint, SfxHint);
      28 [ #  # ][ #  # ]:      21317 : TYPEINIT1(ScAutoStyleHint, SfxHint);
      29 [ -  + ][ -  + ]:        712 : TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
      30 [ +  + ][ -  + ]:      22608 : TYPEINIT1(ScDataPilotModifiedHint, SfxHint);
      31                 :            : 
      32                 :            : // -----------------------------------------------------------------------
      33                 :            : //      ScPaintHint - Angabe, was neu gezeichnet werden muss
      34                 :            : // -----------------------------------------------------------------------
      35                 :            : 
      36                 :      15844 : ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
      37                 :            :     aRange( rRng ),
      38                 :            :     nParts( nPaint ),
      39                 :      15844 :     bPrint( sal_True )
      40                 :            : {
      41                 :      15844 : }
      42                 :            : 
      43                 :      15844 : ScPaintHint::~ScPaintHint()
      44                 :            : {
      45         [ -  + ]:      15844 : }
      46                 :            : 
      47                 :            : // -----------------------------------------------------------------------
      48                 :            : //      ScUpdateRefHint - Referenz-Updaterei
      49                 :            : // -----------------------------------------------------------------------
      50                 :            : 
      51                 :        348 : ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
      52                 :            :                                     SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
      53                 :            :     eUpdateRefMode( eMode ),
      54                 :            :     aRange( rR ),
      55                 :            :     nDx( nX ),
      56                 :            :     nDy( nY ),
      57                 :        348 :     nDz( nZ )
      58                 :            : {
      59                 :        348 : }
      60                 :            : 
      61                 :        348 : ScUpdateRefHint::~ScUpdateRefHint()
      62                 :            : {
      63         [ -  + ]:        348 : }
      64                 :            : 
      65                 :            : // -----------------------------------------------------------------------
      66                 :            : //      ScPointerChangedHint - Pointer ist ungueltig geworden
      67                 :            : // -----------------------------------------------------------------------
      68                 :            : 
      69                 :            : 
      70                 :          0 : ScPointerChangedHint::~ScPointerChangedHint()
      71                 :            : {
      72         [ #  # ]:          0 : }
      73                 :            : 
      74                 :            : // -----------------------------------------------------------------------
      75                 :            : //      ScLinkRefreshedHint - a link has been refreshed
      76                 :            : // -----------------------------------------------------------------------
      77                 :            : 
      78                 :          8 : ScLinkRefreshedHint::ScLinkRefreshedHint() :
      79                 :            :     nLinkType( SC_LINKREFTYPE_NONE ),
      80 [ +  - ][ +  - ]:          8 :     nDdeMode( 0 )
         [ +  - ][ +  - ]
      81                 :            : {
      82                 :          8 : }
      83                 :            : 
      84 [ +  - ][ +  - ]:          8 : ScLinkRefreshedHint::~ScLinkRefreshedHint()
         [ +  - ][ +  - ]
      85                 :            : {
      86         [ -  + ]:          8 : }
      87                 :            : 
      88                 :          2 : void ScLinkRefreshedHint::SetSheetLink( const String& rSourceUrl )
      89                 :            : {
      90                 :          2 :     nLinkType = SC_LINKREFTYPE_SHEET;
      91                 :          2 :     aUrl = rSourceUrl;
      92                 :          2 : }
      93                 :            : 
      94                 :          2 : void ScLinkRefreshedHint::SetDdeLink(
      95                 :            :             const String& rA, const String& rT, const String& rI, sal_uInt8 nM )
      96                 :            : {
      97                 :          2 :     nLinkType = SC_LINKREFTYPE_DDE;
      98                 :          2 :     aDdeAppl  = rA;
      99                 :          2 :     aDdeTopic = rT;
     100                 :          2 :     aDdeItem  = rI;
     101                 :          2 :     nDdeMode  = nM;
     102                 :          2 : }
     103                 :            : 
     104                 :          4 : void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
     105                 :            : {
     106                 :          4 :     nLinkType = SC_LINKREFTYPE_AREA;
     107                 :          4 :     aDestPos = rPos;
     108                 :          4 : }
     109                 :            : 
     110                 :            : // -----------------------------------------------------------------------
     111                 :            : //      ScAutoStyleHint - STYLE() function has been called
     112                 :            : // -----------------------------------------------------------------------
     113                 :            : 
     114                 :          0 : ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const String& rSt1,
     115                 :            :                                         sal_uLong nT, const String& rSt2 ) :
     116                 :            :     aRange( rR ),
     117                 :            :     aStyle1( rSt1 ),
     118                 :            :     aStyle2( rSt2 ),
     119 [ #  # ][ #  # ]:          0 :     nTimeout( nT )
     120                 :            : {
     121                 :          0 : }
     122                 :            : 
     123 [ #  # ][ #  # ]:          0 : ScAutoStyleHint::~ScAutoStyleHint()
     124                 :            : {
     125         [ #  # ]:          0 : }
     126                 :            : 
     127                 :            : 
     128                 :          6 : ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
     129         [ +  - ]:          6 :     : aParam(rP)
     130                 :            : {
     131                 :          6 : }
     132         [ +  - ]:          6 : ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
     133                 :            : {
     134         [ -  + ]:          6 : }
     135                 :            : 
     136                 :            : 
     137                 :         74 : ScDataPilotModifiedHint::ScDataPilotModifiedHint( const String& rName )
     138         [ +  - ]:         74 :     : maName(rName)
     139                 :            : {
     140                 :         74 : }
     141         [ +  - ]:         74 : ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
     142                 :            : {
     143         [ -  + ]:         74 : }
     144                 :            : 
     145                 :            : 
     146                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10