LCOV - code coverage report
Current view: top level - writerfilter/source/rtftok - rtfskipdestination.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 15 15 100.0 %
Date: 2015-06-13 12:38:46 Functions: 4 5 80.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 <rtfskipdestination.hxx>
      11             : #include <osl/diagnose.h>
      12             : #include <sal/log.hxx>
      13             : 
      14             : namespace writerfilter
      15             : {
      16             : namespace rtftok
      17             : {
      18             : 
      19      170960 : RTFSkipDestination::RTFSkipDestination(RTFListener& rImport)
      20             :     : m_rImport(rImport),
      21             :       m_bParsed(true),
      22      170960 :       m_bReset(true)
      23             : {
      24      170960 : }
      25             : 
      26      170960 : RTFSkipDestination::~RTFSkipDestination()
      27             : {
      28      170960 :     if (m_rImport.getSkipUnknown() && m_bReset)
      29             :     {
      30        3133 :         if (!m_bParsed)
      31             :         {
      32             :             SAL_INFO("writerfilter", OSL_THIS_FUNC << ": skipping destination");
      33        1568 :             m_rImport.setDestination(Destination::SKIP);
      34             :         }
      35        3133 :         m_rImport.setSkipUnknown(false);
      36             :     }
      37      170960 : }
      38             : 
      39       23023 : void RTFSkipDestination::setParsed(bool bParsed)
      40             : {
      41       23023 :     m_bParsed = bParsed;
      42       23023 : }
      43             : 
      44        3135 : void RTFSkipDestination::setReset(bool bReset)
      45             : {
      46        3135 :     m_bReset = bReset;
      47        3135 : }
      48             : 
      49             : } // namespace rtftok
      50             : } // namespace writerfilter
      51             : 
      52             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11