LCOV - code coverage report
Current view: top level - sc/source/core/tool - hints.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 40 47 85.1 %
Date: 2015-06-13 12:38:46 Functions: 15 25 60.0 %
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             : 
      20             : #include "hints.hxx"
      21             : 
      22             : // ScPaintHint - info what has to be repainted
      23             : 
      24       17126 : ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
      25             :     aRange( rRng ),
      26             :     nParts( nPaint ),
      27       17126 :     bPrint( true )
      28             : {
      29       17126 : }
      30             : 
      31       17126 : ScPaintHint::~ScPaintHint()
      32             : {
      33       17126 : }
      34             : 
      35             : // ScUpdateRefHint - update references
      36             : 
      37         362 : ScUpdateRefHint::ScUpdateRefHint( UpdateRefMode eMode, const ScRange& rR,
      38             :                                     SCsCOL nX, SCsROW nY, SCsTAB nZ ) :
      39             :     eUpdateRefMode( eMode ),
      40             :     aRange( rR ),
      41             :     nDx( nX ),
      42             :     nDy( nY ),
      43         362 :     nDz( nZ )
      44             : {
      45         362 : }
      46             : 
      47         362 : ScUpdateRefHint::~ScUpdateRefHint()
      48             : {
      49         362 : }
      50             : 
      51             : // ScPointerChangedHint - pointer has become invalid
      52             : 
      53           0 : ScPointerChangedHint::~ScPointerChangedHint()
      54             : {
      55           0 : }
      56             : 
      57             : //      ScLinkRefreshedHint - a link has been refreshed
      58             : 
      59           8 : ScLinkRefreshedHint::ScLinkRefreshedHint() :
      60             :     nLinkType( SC_LINKREFTYPE_NONE ),
      61           8 :     nDdeMode( 0 )
      62             : {
      63           8 : }
      64             : 
      65           8 : ScLinkRefreshedHint::~ScLinkRefreshedHint()
      66             : {
      67           8 : }
      68             : 
      69           2 : void ScLinkRefreshedHint::SetSheetLink( const OUString& rSourceUrl )
      70             : {
      71           2 :     nLinkType = SC_LINKREFTYPE_SHEET;
      72           2 :     aUrl = rSourceUrl;
      73           2 : }
      74             : 
      75           2 : void ScLinkRefreshedHint::SetDdeLink(
      76             :             const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM )
      77             : {
      78           2 :     nLinkType = SC_LINKREFTYPE_DDE;
      79           2 :     aDdeAppl  = rA;
      80           2 :     aDdeTopic = rT;
      81           2 :     aDdeItem  = rI;
      82           2 :     nDdeMode  = nM;
      83           2 : }
      84             : 
      85           4 : void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
      86             : {
      87           4 :     nLinkType = SC_LINKREFTYPE_AREA;
      88           4 :     aDestPos = rPos;
      89           4 : }
      90             : 
      91             : //      ScAutoStyleHint - STYLE() function has been called
      92             : 
      93           0 : ScAutoStyleHint::ScAutoStyleHint( const ScRange& rR, const OUString& rSt1,
      94             :                                         sal_uLong nT, const OUString& rSt2 ) :
      95             :     aRange( rR ),
      96             :     aStyle1( rSt1 ),
      97             :     aStyle2( rSt2 ),
      98           0 :     nTimeout( nT )
      99             : {
     100           0 : }
     101             : 
     102           0 : ScAutoStyleHint::~ScAutoStyleHint()
     103             : {
     104           0 : }
     105             : 
     106           4 : ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
     107           4 :     : aParam(rP)
     108             : {
     109           4 : }
     110           4 : ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
     111             : {
     112           4 : }
     113             : 
     114          51 : ScDataPilotModifiedHint::ScDataPilotModifiedHint( const OUString& rName )
     115          51 :     : maName(rName)
     116             : {
     117          51 : }
     118          51 : ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
     119             : {
     120         207 : }
     121             : 
     122             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11