ebEpubParser Class Reference

#include <epubutils/epub_utils.h>

Inheritance diagram for ebEpubParser:

wxXMLParser

List of all members.

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.


Constructor & Destructor Documentation

ebEpubParser::ebEpubParser (  )  [inline]


Member Function Documentation

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.


The documentation for this class was generated from the following files:

Generated on Wed May 6 19:22:09 2009 for AxTk by  doxygen 1.5.8