rtfreader.h
来自「把html转成txt 把html转成txt」· C头文件 代码 · 共 68 行
H
68 行
#ifndef __RTFREADER_H__#define __RTFREADER_H__#include "ReaderInterface.h"#include "RtfStyle.h"#include "RtfCommand.h"#include "DebugLog.h"namespace DoxEngine{ class WriterInterface; class UnicodeCharacter; class RtfStyle; class RtfStyleStack; class RtfReader : public ReadInterface { private: long fileLength; std::istream* stream; DebugLog &log; WriterInterface* writer; RtfCommands elements; RtfStyleStack rtfStack; RtfStyle style; bool tableStarted, rowStarted, cellStarted; void readCommand(char inputCharacter); void handleCommand(std::string& inputString); public: void flushTable(void); RtfReader(std::istream& newStream, WriterInterface& newWriter, DebugLog &newLog); ~RtfReader(); virtual bool processData(void); virtual int getPercentComplete(void); void commandParagraphBreak(void); void commandLineBreak(void); void commandIgnoreDestinationKeyword(void); void commandColourTable(void); void commandCharacter(UnicodeCharacter& character); void commandParagraphDefault(void); void commandInTable(void); void commandEndCell(void); void commandEndRow(void); Style getStyle(void) const; void setStyle( const Style &style ); RtfStyle getRtfStyle(void) const; void setRtfStyle( const RtfStyle &style ); };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?