1 #ifndef BOOKFORMATS_H 2 #define BOOKFORMATS_H 3 4 #include "lvstring.h" 5 6 /// source document formats 7 typedef enum { 8 doc_format_none, 9 doc_format_fb2, 10 doc_format_fb3, 11 doc_format_txt, 12 doc_format_rtf, 13 doc_format_epub, 14 doc_format_html, 15 doc_format_txt_bookmark, // coolreader TXT format bookmark 16 doc_format_chm, 17 doc_format_doc, 18 doc_format_docx, 19 doc_format_pdb, 20 doc_format_odt, 21 doc_format_max = doc_format_odt 22 // don't forget update getDocFormatName() when changing this enum 23 // Add new types of formats only at the end of this enum to save the correct format number in the history file/database! 24 } doc_format_t; 25 26 lString32 LVDocFormatName(int fmt); 27 int LVDocFormatFromExtension(lString32 &pathName); 28 lString8 LVDocFormatCssFileName(int fmt); 29 30 31 #endif // BOOKFORMATS_H 32