1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
10 #include "rtfskipdestination.hxx"
11 #include <osl/diagnose.h>
12 #include <sal/log.hxx>
13 #include "rtflistener.hxx"
15 namespace writerfilter
19 RTFSkipDestination::RTFSkipDestination(RTFListener
& rImport
)
26 RTFSkipDestination::~RTFSkipDestination()
28 if (m_rImport
.getSkipUnknown() && m_bReset
)
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
; }
44 } // namespace writerfilter
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */