LibreOffice Module writerfilter (master) 1
rtflookahead.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#pragma once
11
12#include <sal/types.h>
13#include <tools/ref.hxx>
14#include "rtflistener.hxx"
15
16class SvStream;
17
19{
20class RTFTokenizer;
26{
27public:
28 RTFLookahead(SvStream& rStream, sal_uInt64 nGroupStart);
29 ~RTFLookahead() override;
30 RTFError dispatchDestination(RTFKeyword nKeyword) override;
31 RTFError dispatchFlag(RTFKeyword nKeyword) override;
32 RTFError dispatchSymbol(RTFKeyword nKeyword) override;
33 RTFError dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam) override;
34 RTFError dispatchValue(RTFKeyword nKeyword, int nParam) override;
35 RTFError resolveChars(char ch) override;
36 RTFError pushState() override;
37 RTFError popState() override;
38 Destination getDestination() override;
39 void setDestination(Destination eDestination) override;
41 void setInternalState(RTFInternalState nInternalState) override;
42 bool getSkipUnknown() override;
43 void setSkipUnknown(bool bSkipUnknown) override;
44 void finishSubstream() override;
45 bool isSubstream() const override;
46 bool hasTable() const { return m_bHasTable; }
47 bool hasColumns() const { return m_bHasColumns; }
48
49private:
54};
55} // namespace writerfilter::rtftok
56
57/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
RTFTokenizer needs a class implementing this interface.
Definition: rtflistener.hxx:41
This acts like an importer, but used for looking ahead, e.g.
RTFError dispatchDestination(RTFKeyword nKeyword) override
bool isSubstream() const override
void setSkipUnknown(bool bSkipUnknown) override
void setInternalState(RTFInternalState nInternalState) override
RTFError resolveChars(char ch) override
tools::SvRef< RTFTokenizer > m_pTokenizer
RTFLookahead(SvStream &rStream, sal_uInt64 nGroupStart)
Destination getDestination() override
RTFError dispatchFlag(RTFKeyword nKeyword) override
void setDestination(Destination eDestination) override
RTFError dispatchToggle(RTFKeyword nKeyword, bool bParam, int nParam) override
RTFInternalState getInternalState() override
RTFError dispatchValue(RTFKeyword nKeyword, int nParam) override
RTFError dispatchSymbol(RTFKeyword nKeyword) override
Destination
An RTF destination state is the last open destination control word.