Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / writerfilter / source / rtftok / rtfskipdestination.cxx
blob8e17b8c47d6b0c969f6deb4b613923344e94c217
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"
11 #include <osl/diagnose.h>
12 #include <sal/log.hxx>
13 #include "rtflistener.hxx"
15 namespace writerfilter
17 namespace rtftok
19 RTFSkipDestination::RTFSkipDestination(RTFListener& rImport)
20 : m_rImport(rImport)
21 , m_bParsed(true)
22 , m_bReset(true)
26 RTFSkipDestination::~RTFSkipDestination()
28 if (m_rImport.getSkipUnknown() && m_bReset)
30 if (!m_bParsed)
32 SAL_INFO("writerfilter", OSL_THIS_FUNC << ": skipping destination");
33 m_rImport.setDestination(Destination::SKIP);
35 m_rImport.setSkipUnknown(false);
39 void RTFSkipDestination::setParsed(bool bParsed) { m_bParsed = bParsed; }
41 void RTFSkipDestination::setReset(bool bReset) { m_bReset = bReset; }
43 } // namespace rtftok
44 } // namespace writerfilter
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */