Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / rtftok / rtfskipdestination.hxx
blob4a894373f1e4cd7634d39d49d932bf5e71a18917
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 #pragma once
12 namespace writerfilter::rtftok
14 class RTFListener;
16 /// Skips a destination after a not parsed control word if it was prefixed with \*
17 class RTFSkipDestination final
19 public:
20 explicit RTFSkipDestination(RTFListener& rImport);
21 ~RTFSkipDestination();
22 void setParsed(bool bParsed);
23 void setReset(bool bReset);
25 private:
26 RTFListener& m_rImport;
27 bool m_bParsed;
28 /// If false, the destructor is a noop, required by the \* symbol itself.
29 bool m_bReset;
31 } // namespace writerfilter::rtftok
33 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */