summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtftokenizer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'writerfilter/source/rtftok/rtftokenizer.hxx')
-rw-r--r--writerfilter/source/rtftok/rtftokenizer.hxx82
1 files changed, 42 insertions, 40 deletions
diff --git a/writerfilter/source/rtftok/rtftokenizer.hxx b/writerfilter/source/rtftok/rtftokenizer.hxx
index 23602ad8a760..371ec6d1936d 100644
--- a/writerfilter/source/rtftok/rtftokenizer.hxx
+++ b/writerfilter/source/rtftok/rtftokenizer.hxx
@@ -15,48 +15,50 @@
class SvStream;
-namespace writerfilter {
- namespace rtftok {
- /// RTF tokenizer that separates control words from text.
- class RTFTokenizer
- {
- public:
- RTFTokenizer(RTFListener& rImport, SvStream* pInStream, com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const& xStatusIndicator);
- virtual ~RTFTokenizer();
+namespace writerfilter
+{
+namespace rtftok
+{
+/// RTF tokenizer that separates control words from text.
+class RTFTokenizer
+{
+public:
+ RTFTokenizer(RTFListener& rImport, SvStream* pInStream, com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const& xStatusIndicator);
+ virtual ~RTFTokenizer();
- int resolveParse();
- int asHex(char ch);
- /// Number of states on the stack.
- int getGroup() const;
- /// To be invoked by the pushState() callback to signal when the importer enters a group.
- void pushGroup();
- /// To be invoked by the popState() callback to single when the importer leaves a group.
- void popGroup();
- OUString getPosition();
- sal_Size getGroupStart();
- /// To look up additional properties of a math symbol.
- static bool lookupMathKeyword(RTFMathSymbol& rSymbol);
- private:
- SvStream& Strm();
- int resolveKeyword();
- int dispatchKeyword(OString& rKeyword, bool bParam, int nParam);
+ int resolveParse();
+ int asHex(char ch);
+ /// Number of states on the stack.
+ int getGroup() const;
+ /// To be invoked by the pushState() callback to signal when the importer enters a group.
+ void pushGroup();
+ /// To be invoked by the popState() callback to single when the importer leaves a group.
+ void popGroup();
+ OUString getPosition();
+ sal_Size getGroupStart();
+ /// To look up additional properties of a math symbol.
+ static bool lookupMathKeyword(RTFMathSymbol& rSymbol);
+private:
+ SvStream& Strm();
+ int resolveKeyword();
+ int dispatchKeyword(OString& rKeyword, bool bParam, int nParam);
- RTFListener& m_rImport;
- SvStream* m_pInStream;
- com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const& m_xStatusIndicator;
- // This is the same as aRTFControlWords, but sorted
- static std::vector<RTFSymbol> m_aRTFControlWords;
- static bool m_bControlWordsSorted;
- // This is the same as aRTFMathControlWords, but sorted
- static std::vector<RTFMathSymbol> m_aRTFMathControlWords;
- static bool m_bMathControlWordsSorted;
- /// Same as the size of the importer's states, except that this can be negative for invalid input.
- int m_nGroup;
- sal_Int32 m_nLineNumber;
- sal_Size m_nLineStartPos;
- sal_Size m_nGroupStart;
- };
- } // namespace rtftok
+ RTFListener& m_rImport;
+ SvStream* m_pInStream;
+ com::sun::star::uno::Reference<com::sun::star::task::XStatusIndicator> const& m_xStatusIndicator;
+ // This is the same as aRTFControlWords, but sorted
+ static std::vector<RTFSymbol> m_aRTFControlWords;
+ static bool m_bControlWordsSorted;
+ // This is the same as aRTFMathControlWords, but sorted
+ static std::vector<RTFMathSymbol> m_aRTFMathControlWords;
+ static bool m_bMathControlWordsSorted;
+ /// Same as the size of the importer's states, except that this can be negative for invalid input.
+ int m_nGroup;
+ sal_Int32 m_nLineNumber;
+ sal_Size m_nLineStartPos;
+ sal_Size m_nGroupStart;
+};
+} // namespace rtftok
} // namespace writerfilter
#endif // INCLUDED_WRITERFILTER_SOURCE_RTFTOK_RTFTOKENIZER_HXX