LCOV - code coverage report
Current view: top level - sc/source/core/tool - hints.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 40 47 85.1 %
Date: 2014-11-03 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       42046 : ScPaintHint::ScPaintHint( const ScRange& rRng, sal_uInt16 nPaint ) :
      25             :     aRange( rRng ),
      26             :     nParts( nPaint ),
      27       42046 :     bPrint( true )
      28             : {
      29       42046 : }
      30             : 
      31       42046 : ScPaintHint::~ScPaintHint()
      32             : {
      33       42046 : }
      34             : 
      35             : // ScUpdateRefHint - update references
      36             : 
      37         666 : 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         666 :     nDz( nZ )
      44             : {
      45         666 : }
      46             : 
      47         666 : ScUpdateRefHint::~ScUpdateRefHint()
      48             : {
      49         666 : }
      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          16 : ScLinkRefreshedHint::ScLinkRefreshedHint() :
      60             :     nLinkType( SC_LINKREFTYPE_NONE ),
      61          16 :     nDdeMode( 0 )
      62             : {
      63          16 : }
      64             : 
      65          16 : ScLinkRefreshedHint::~ScLinkRefreshedHint()
      66             : {
      67          16 : }
      68             : 
      69           4 : void ScLinkRefreshedHint::SetSheetLink( const OUString& rSourceUrl )
      70             : {
      71           4 :     nLinkType = SC_LINKREFTYPE_SHEET;
      72           4 :     aUrl = rSourceUrl;
      73           4 : }
      74             : 
      75           4 : void ScLinkRefreshedHint::SetDdeLink(
      76             :             const OUString& rA, const OUString& rT, const OUString& rI, sal_uInt8 nM )
      77             : {
      78           4 :     nLinkType = SC_LINKREFTYPE_DDE;
      79           4 :     aDdeAppl  = rA;
      80           4 :     aDdeTopic = rT;
      81           4 :     aDdeItem  = rI;
      82           4 :     nDdeMode  = nM;
      83           4 : }
      84             : 
      85           8 : void ScLinkRefreshedHint::SetAreaLink( const ScAddress& rPos )
      86             : {
      87           8 :     nLinkType = SC_LINKREFTYPE_AREA;
      88           8 :     aDestPos = rPos;
      89           8 : }
      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           8 : ScDBRangeRefreshedHint::ScDBRangeRefreshedHint( const ScImportParam& rP )
     107           8 :     : aParam(rP)
     108             : {
     109           8 : }
     110           8 : ScDBRangeRefreshedHint::~ScDBRangeRefreshedHint()
     111             : {
     112           8 : }
     113             : 
     114         102 : ScDataPilotModifiedHint::ScDataPilotModifiedHint( const OUString& rName )
     115         102 :     : maName(rName)
     116             : {
     117         102 : }
     118         102 : ScDataPilotModifiedHint::~ScDataPilotModifiedHint()
     119             : {
     120         330 : }
     121             : 
     122             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10