lok: vcl: fix multiple floatwin removal case more robustly.
[LibreOffice.git] / writerfilter / source / rtftok / rtfskipdestination.hxx
blob8f8c6aa9d5f236184b3eff5f20fd28101ea68596
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 #ifndef INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFSKIPDESTINATION_HXX
11 #define INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFSKIPDESTINATION_HXX
13 namespace writerfilter
15 namespace rtftok
17 class RTFListener;
19 /// Skips a destination after a not parsed control word if it was prefixed with \*
20 class RTFSkipDestination final
22 public:
23 explicit RTFSkipDestination(RTFListener& rImport);
24 ~RTFSkipDestination();
25 void setParsed(bool bParsed);
26 void setReset(bool bReset);
28 private:
29 RTFListener& m_rImport;
30 bool m_bParsed;
31 /// If false, the destructor is a noop, required by the \* symbol itself.
32 bool m_bReset;
34 } // namespace rtftok
35 } // namespace writerfilter
37 #endif // INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFSKIPDESTINATION_HXX
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */