LCOV - code coverage report
Current view: top level - libreoffice/writerfilter/source/rtftok - rtfskipdestination.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 16 16 100.0 %
Date: 2012-12-27 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             :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4             :  *
       5             :  * The contents of this file are subject to the Mozilla Public License Version
       6             :  * 1.1 (the "License"); you may not use this file except in compliance with
       7             :  * the License. You may obtain a copy of the License at
       8             :  * http://www.mozilla.org/MPL/
       9             :  *
      10             :  * Software distributed under the License is distributed on an "AS IS" basis,
      11             :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12             :  * for the specific language governing rights and limitations under the
      13             :  * License.
      14             :  *
      15             :  * The Initial Developer of the Original Code is
      16             :  *       Miklos Vajna <vmiklos@frugalware.org>
      17             :  * Portions created by the Initial Developer are Copyright (C) 2011 the
      18             :  * Initial Developer. All Rights Reserved.
      19             :  *
      20             :  * Contributor(s):
      21             :  *
      22             :  * Alternatively, the contents of this file may be used under the terms of
      23             :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24             :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25             :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26             :  * instead of those above.
      27             :  */
      28             : 
      29             : #include <rtfskipdestination.hxx>
      30             : 
      31             : namespace writerfilter {
      32             : namespace rtftok {
      33             : 
      34       51405 : RTFSkipDestination::RTFSkipDestination(RTFDocumentImpl& rImport)
      35             :     : m_rImport(rImport),
      36             :     m_bParsed(true),
      37       51405 :     m_bReset(true)
      38             : {
      39       51405 : }
      40             : 
      41       51405 : RTFSkipDestination::~RTFSkipDestination()
      42             : {
      43       51405 :     if (m_rImport.getSkipUnknown() && m_bReset)
      44             :     {
      45         559 :         if (!m_bParsed)
      46             :         {
      47             :             SAL_INFO("writerfilter", OSL_THIS_FUNC << ": skipping destination");
      48         272 :             m_rImport.getState().nDestinationState = DESTINATION_SKIP;
      49             :         }
      50         559 :         m_rImport.setSkipUnknown(false);
      51             :     }
      52       51405 : }
      53             : 
      54        4485 : void RTFSkipDestination::setParsed(bool bParsed)
      55             : {
      56        4485 :     m_bParsed = bParsed;
      57        4485 : }
      58             : 
      59         559 : void RTFSkipDestination::setReset(bool bReset)
      60             : {
      61         559 :     m_bReset = bReset;
      62         559 : }
      63             : 
      64             : } // namespace rtftok
      65          15 : } // namespace writerfilter
      66             : 
      67             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10