#include <epubutils/epub_utils.h>
Public Member Functions | |
ebEpubParser () | |
void | Init () |
bool | ReadBasicInfo (const wxString &filename, ebBasicInfo &info, wxString &coverImageZipName) |
Reads the basic information about a book. | |
bool | ReadAdvancedInfo (const wxString &filename, ebBasicInfo &info, ebFileLocations &locations, wxString &opfLocation, wxString &coverImageFilename, wxString &coverPageFilename) |
Reads advanced information about a book, including file names. | |
bool | ReadOPF (wxInputStream &stream, ebBasicInfo &info, ebFileLocations &locations, wxString &coverImageFilename, wxString &coverPageFilename) |
Reads the OPF information. | |
bool | ReadOPF (const wxString &filename, ebBasicInfo &info, ebFileLocations &locations, wxString &coverImageFilename, wxString &coverPageFilename) |
bool | ExtractFileFromArchive (const wxString &archiveName, const wxString &sourceFilename, const wxString &destFilename) |
Extract a file from zip archive, to the given file. | |
bool | CreateImageBlockFromZipImage (const wxString &archiveName, const wxString &sourceFilename, wxImageBlock &imageBlock, wxImage &image) |
Create an image block from the image file in the given zip archive. | |
bool | ReadElement (ebElement &element, const wxString &elementName, wxXmlNode *node) |
Read an element, potentially with multiple instances, together with all attributes. | |
bool | ExtractOPFToFile (const wxString &epubFilename, wxString &opfFilename, wxString &opfLocationInZip) |
Extracts the OPF spec to a file. |
ebEpubParser::ebEpubParser | ( | ) | [inline] |
bool ebEpubParser::CreateImageBlockFromZipImage | ( | const wxString & | archiveName, | |
const wxString & | sourceFilename, | |||
wxImageBlock & | imageBlock, | |||
wxImage & | image | |||
) |
Create an image block from the image file in the given zip archive.
bool ebEpubParser::ExtractFileFromArchive | ( | const wxString & | archiveName, | |
const wxString & | sourceFilename, | |||
const wxString & | destFilename | |||
) |
Extract a file from zip archive, to the given file.
bool ebEpubParser::ExtractOPFToFile | ( | const wxString & | epubFilename, | |
wxString & | opfFilename, | |||
wxString & | opfLocationInZip | |||
) |
Extracts the OPF spec to a file.
void ebEpubParser::Init | ( | ) |
Reimplemented from wxXMLParser.
bool ebEpubParser::ReadAdvancedInfo | ( | const wxString & | filename, | |
ebBasicInfo & | info, | |||
ebFileLocations & | locations, | |||
wxString & | opfLocation, | |||
wxString & | coverImageFilename, | |||
wxString & | coverPageFilename | |||
) |
Reads advanced information about a book, including file names.
bool ebEpubParser::ReadBasicInfo | ( | const wxString & | filename, | |
ebBasicInfo & | info, | |||
wxString & | coverImageZipName | |||
) |
Reads the basic information about a book.
bool ebEpubParser::ReadElement | ( | ebElement & | element, | |
const wxString & | elementName, | |||
wxXmlNode * | node | |||
) |
Read an element, potentially with multiple instances, together with all attributes.
bool ebEpubParser::ReadOPF | ( | const wxString & | filename, | |
ebBasicInfo & | info, | |||
ebFileLocations & | locations, | |||
wxString & | coverImageFilename, | |||
wxString & | coverPageFilename | |||
) |
bool ebEpubParser::ReadOPF | ( | wxInputStream & | stream, | |
ebBasicInfo & | info, | |||
ebFileLocations & | locations, | |||
wxString & | coverImageFilename, | |||
wxString & | coverPageFilename | |||
) |
Reads the OPF information.