1 #ifndef FB3FMT_H
2 #define FB3FMT_H
3 
4 #include "../include/crsetup.h"
5 #include "../include/lvtinydom.h"
6 #include "../include/lvopc.h"
7 
8 bool DetectFb3Format( LVStreamRef stream );
9 bool ImportFb3Document( LVStreamRef stream, ldomDocument * doc, LVDocViewCallback * progressCallback, CacheLoadingCallback * formatCallback );
10 
11 class fb3ImportContext
12 {
13 private:
14     OpcPackage *m_package;
15     OpcPartRef m_bookPart;
16     ldomDocument *m_descDoc;
17 public:
18     fb3ImportContext(OpcPackage *package);
19     virtual ~fb3ImportContext();
20 
21     lString32 geImageTarget(const lString32 relationId);
22     LVStreamRef openBook();
23     ldomDocument *getDescription();
24 public:
25     lString32 m_coverImage;
26 };
27 
28 #endif // FB3FMT_H
29