LCOV - code coverage report
Current view: top level - sc/source/core/tool - scopetools.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 21 0.0 %
Date: 2014-04-14 Functions: 0 6 0.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             : 
      10             : #include "scopetools.hxx"
      11             : #include "document.hxx"
      12             : 
      13             : namespace sc {
      14             : 
      15           0 : AutoCalcSwitch::AutoCalcSwitch(ScDocument& rDoc, bool bAutoCalc) :
      16           0 :     mrDoc(rDoc), mbOldValue(rDoc.GetAutoCalc())
      17             : {
      18           0 :     mrDoc.SetAutoCalc(bAutoCalc);
      19           0 : }
      20             : 
      21           0 : AutoCalcSwitch::~AutoCalcSwitch()
      22             : {
      23           0 :     mrDoc.SetAutoCalc(mbOldValue);
      24           0 : }
      25             : 
      26           0 : ExpandRefsSwitch::ExpandRefsSwitch(ScDocument& rDoc, bool bExpandRefs) :
      27           0 :     mrDoc(rDoc), mbOldValue(rDoc.IsExpandRefs())
      28             : {
      29           0 :     mrDoc.SetExpandRefs(bExpandRefs);
      30           0 : }
      31             : 
      32           0 : ExpandRefsSwitch::~ExpandRefsSwitch()
      33             : {
      34           0 :     mrDoc.SetExpandRefs(mbOldValue);
      35           0 : }
      36             : 
      37           0 : UndoSwitch::UndoSwitch(ScDocument& rDoc, bool bUndo) :
      38           0 :     mrDoc(rDoc), mbOldValue(rDoc.IsUndoEnabled())
      39             : {
      40           0 :     mrDoc.EnableUndo(bUndo);
      41           0 : }
      42             : 
      43           0 : UndoSwitch::~UndoSwitch()
      44             : {
      45           0 :     mrDoc.EnableUndo(mbOldValue);
      46           0 : }
      47             : 
      48             : }
      49             : 
      50             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10