bump product version to 4.1.6.2
[LibreOffice.git] / writerfilter / source / rtftok / rtfskipdestination.cxx
blob0bd6a3c092a93522d0b46799c79e2a9cab3bd212
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include <rtfskipdestination.hxx>
12 namespace writerfilter {
13 namespace rtftok {
15 RTFSkipDestination::RTFSkipDestination(RTFDocumentImpl& rImport)
16 : m_rImport(rImport),
17 m_bParsed(true),
18 m_bReset(true)
22 RTFSkipDestination::~RTFSkipDestination()
24 if (m_rImport.getSkipUnknown() && m_bReset)
26 if (!m_bParsed)
28 SAL_INFO("writerfilter", OSL_THIS_FUNC << ": skipping destination");
29 m_rImport.getState().nDestinationState = DESTINATION_SKIP;
31 m_rImport.setSkipUnknown(false);
35 void RTFSkipDestination::setParsed(bool bParsed)
37 m_bParsed = bParsed;
40 void RTFSkipDestination::setReset(bool bReset)
42 m_bReset = bReset;
45 } // namespace rtftok
46 } // namespace writerfilter
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */