LCOV - code coverage report
Current view: top level - sc/source/core/tool - bulkdatahint.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 14 14 100.0 %
Date: 2015-06-13 12:38:46 Functions: 6 7 85.7 %
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             : 
      10             : #include <bulkdatahint.hxx>
      11             : 
      12             : namespace sc {
      13             : 
      14             : struct BulkDataHint::Impl
      15             : {
      16             :     ScDocument& mrDoc;
      17             :     const ColumnSpanSet* mpSpans;
      18             : 
      19          12 :     Impl( ScDocument& rDoc, const ColumnSpanSet* pSpans ) :
      20             :         mrDoc(rDoc),
      21          12 :         mpSpans(pSpans) {}
      22             : };
      23             : 
      24          12 : BulkDataHint::BulkDataHint( ScDocument& rDoc, const ColumnSpanSet* pSpans ) :
      25          12 :     SfxSimpleHint(SC_HINT_BULK_DATACHANGED), mpImpl(new Impl(rDoc, pSpans)) {}
      26             : 
      27          24 : BulkDataHint::~BulkDataHint()
      28             : {
      29          12 :     delete mpImpl;
      30          12 : }
      31             : 
      32          14 : void BulkDataHint::setSpans( const ColumnSpanSet* pSpans )
      33             : {
      34          14 :     mpImpl->mpSpans = pSpans;
      35          14 : }
      36             : 
      37          12 : const ColumnSpanSet* BulkDataHint::getSpans() const
      38             : {
      39          12 :     return mpImpl->mpSpans;
      40             : }
      41             : 
      42          12 : ScDocument& BulkDataHint::getDoc()
      43             : {
      44          12 :     return mpImpl->mrDoc;
      45             : }
      46             : 
      47             : }
      48             : 
      49             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11