15#include <unordered_map>
17#include <com/sun/star/uno/Reference.h>
19#include <rtl/ustring.hxx>
24class XStatusIndicator;
35 css::uno::Reference<css::task::XStatusIndicator>
const& xStatusIndicator);
RTFTokenizer needs a class implementing this interface.
Represents an RTF Math Control Word.
RTF tokenizer that separates control words from text.
std::size_t m_nGroupStart
std::size_t getGroupStart() const
void pushGroup()
To be invoked by the pushState() callback to signal when the importer enters a group.
int getGroup() const
Number of states on the stack.
RTFError resolveKeyword()
int m_nGroup
Same as the size of the importer's states, except that this can be negative for invalid input.
static std::vector< RTFMathSymbol > s_aRTFMathControlWords
RTFTokenizer(RTFListener &rImport, SvStream *pInStream, css::uno::Reference< css::task::XStatusIndicator > const &xStatusIndicator)
static bool lookupMathKeyword(RTFMathSymbol &rSymbol)
To look up additional properties of a math symbol.
static bool s_bMathControlWordsSorted
void popGroup()
To be invoked by the popState() callback to signal when the importer leaves a group.
RTFError dispatchKeyword(OString const &rKeyword, bool bParam, int nParam)
std::size_t m_nLineStartPos
static std::unordered_map< OString, RTFSymbol > s_aRTFControlWords
static bool s_bControlWordsInitialised
css::uno::Reference< css::task::XStatusIndicator > const & m_xStatusIndicator