2020-02-02 00:04:10 +00:00
|
|
|
#include "AppMode.h"
|
2020-02-02 15:08:37 +00:00
|
|
|
#include "reader/Typesetter.h"
|
|
|
|
#include "reader/TextStorage.h"
|
|
|
|
#include "reader/PagePrinter.h"
|
2020-02-02 00:04:10 +00:00
|
|
|
|
2020-02-02 15:08:37 +00:00
|
|
|
class ReaderMode : public AppMode
|
2020-02-02 00:04:10 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void start();
|
|
|
|
virtual void loop();
|
|
|
|
virtual void finish();
|
2020-02-02 15:08:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
long bookmark = 0;
|
|
|
|
Typesetter typesetter;
|
|
|
|
PagePrinter pagePrinter;
|
|
|
|
TextStorage textStorage;
|
|
|
|
TextReader* textReader = NULL;
|
|
|
|
Page* pageLast = NULL;
|
|
|
|
Page* pageCurrent = NULL;
|
2020-02-02 00:04:10 +00:00
|
|
|
};
|