the main class to read a RagTime v3 file More...
#include <RagTimeParser.hxx>
Public Member Functions | |
RagTimeParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor More... | |
virtual | ~RagTimeParser () |
destructor More... | |
bool | checkHeader (MWAWHeader *header, bool strict=false) |
checks if the document header is correct (or not) More... | |
void | parse (librevenge::RVNGTextInterface *documentInterface) |
virtual function used to parse the input More... | |
![]() | |
virtual | ~MWAWParser () |
virtual destructor More... | |
int | version () const |
returns the works version More... | |
MWAWParserStatePtr | getParserState () |
returns the parser state More... | |
MWAWHeader * | getHeader () |
returns the header More... | |
MWAWInputStreamPtr & | getInput () |
returns the actual input More... | |
MWAWListenerPtr | getMainListener () |
returns the main listener More... | |
MWAWGraphicListenerPtr & | getGraphicListener () |
returns the graphic listener More... | |
MWAWSpreadsheetListenerPtr & | getSpreadsheetListener () |
returns the spreadsheet listener More... | |
MWAWTextListenerPtr & | getTextListener () |
returns the text listener More... | |
MWAWFontConverterPtr & | getFontConverter () |
returns the font converter More... | |
MWAWPageSpan const & | getPageSpan () const |
returns the actual page dimension More... | |
MWAWPageSpan & | getPageSpan () |
returns the actual page dimension More... | |
double | getFormLength () const |
returns the form length More... | |
double | getFormWidth () const |
returns the form width More... | |
double | getPageLength () const |
returns the page length (form length without margin ) More... | |
double | getPageWidth () const |
returns the page width (form width without margin ) More... | |
MWAWRSRCParserPtr & | getRSRCParser () |
returns the rsrc parser More... | |
libmwaw::DebugFile & | ascii () |
a DebugFile used to write what we recognize when we parse the document More... | |
Protected Member Functions | |
void | init () |
inits all internal variables More... | |
int | getFontId (int localId) const |
returns a mac font id corresponding to a local id More... | |
void | createDocument (librevenge::RVNGTextInterface *documentInterface) |
creates the listener which will be associated to the document More... | |
bool | sendZones () |
try to send the different zones More... | |
void | newPage (int number) |
adds a new page More... | |
bool | createZones () |
finds the different objects zones More... | |
bool | findDataZones () |
try to create the main data zones list More... | |
bool | readDataZoneHeader (int id, long endPos) |
try to read a data zone header More... | |
bool | findPagesZones () |
try to sort the zone on each page More... | |
bool | findRsrcZones () |
try to create the resource zones list More... | |
bool | sendPageZone (int page) |
try to send the different zones of a page More... | |
bool | send (int zId) |
try to send a zone More... | |
bool | sendText (int zId) |
try to send the text zone (interface of RagTimeText) More... | |
bool | sendPicture (int zId, MWAWPosition const &pos) |
sends the picture More... | |
bool | sendBasicPicture (int zId, MWAWPosition const &pos) |
sends a basic shape More... | |
void | flushExtra () |
flush unsent zone (debugging function) More... | |
bool | readPageZone (MWAWEntry &entry) |
try to read page zone ( unknown content of size 40). More... | |
bool | readPictZone (MWAWEntry &entry) |
try to read pictZone ( a big zone) More... | |
bool | readPictZoneV2 (MWAWEntry &entry) |
try to read pictZone ( a big zone):v2 More... | |
bool | readColorMapV2 (MWAWEntry &entry) |
try to read the color map:v2 More... | |
bool | readPrintInfo (MWAWEntry &entry) |
read a printInfo block (a PREC rsrc) More... | |
bool | readLinks (MWAWEntry &entry) |
try to read the File Link zone: FLink More... | |
bool | readRsrcFormat (MWAWEntry &entry) |
try to read the format table zone: FoTa More... | |
bool | readItemFormats (MWAWEntry &entry) |
try to read the item format zone: RTml zones More... | |
bool | readRsrcCHTa (MWAWEntry &entry) |
try to read the char table zone (CHTa) ? More... | |
bool | readZone6 (MWAWEntry &entry) |
try to read zone6 ( a big zone) More... | |
bool | readRsrcBeDc (MWAWEntry &entry) |
try to read the BeDc zone ( zone of size 52, one by file with id=0); More... | |
bool | readRsrcStructured (MWAWEntry &entry) |
try to read a structured zone More... | |
bool | readRsrcUnamed (MWAWEntry &entry) |
try to read a unamed zone (5 by file, all with id=0) More... | |
bool | readRsrcBtch (MWAWEntry &entry) |
try to read the Btch zone (zone with id=0) More... | |
bool | readRsrcCalc (MWAWEntry &entry) |
try to read the Calc zone (zone with id=0) More... | |
bool | readRsrcfppr (MWAWEntry &entry) |
try to read the fppr zone (zone with id=0) More... | |
bool | readRsrcSele (MWAWEntry &entry) |
try to read the Sele zone (zone with id=0), maybe related to selection More... | |
bool | readRsrcSpDo (MWAWEntry &entry) |
try to read the SpDo zone (zone with id=0) More... | |
bool | readRsrcSpDI (MWAWEntry &entry) |
try to read the SpDI zone (zone with id=0) More... | |
bool | readRsrcFHsl (MWAWEntry &entry) |
try to read the FHsl zone (s=style?) More... | |
bool | readRsrcFHwl (MWAWEntry &entry) |
try to read the FHwl zone ( one by file with id=0), maybe width length? More... | |
![]() | |
MWAWTextParser (MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor (protected) More... | |
MWAWTextParser (MWAWParserStatePtr state) | |
constructor using a state More... | |
![]() | |
MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header) | |
constructor (protected) More... | |
MWAWParser (MWAWParserStatePtr state) | |
constructor using a state More... | |
void | setVersion (int vers) |
sets the document's version More... | |
void | setGraphicListener (MWAWGraphicListenerPtr &listener) |
sets the graphic listener More... | |
void | resetGraphicListener () |
resets the listener More... | |
void | setSpreadsheetListener (MWAWSpreadsheetListenerPtr &listener) |
sets the spreadsheet listener More... | |
void | resetSpreadsheetListener () |
resets the listener More... | |
void | setTextListener (MWAWTextListenerPtr &listener) |
sets the text listener More... | |
void | resetTextListener () |
resets the listener More... | |
void | setFontConverter (MWAWFontConverterPtr fontConverter) |
sets the font convertor More... | |
void | setAsciiName (char const *name) |
Debugging: change the default ascii file. More... | |
std::string const & | asciiName () const |
return the ascii file name More... | |
Protected Attributes | |
shared_ptr < RagTimeParserInternal::State > | m_state |
the state More... | |
shared_ptr< RagTimeSpreadsheet > | m_spreadsheetParser |
the spreadsheet parser More... | |
shared_ptr< RagTimeText > | m_textParser |
the text parser More... | |
Friends | |
class | RagTimeParserInternal::SubDocument |
class | RagTimeText |
class | RagTimeSpreadsheet |
the main class to read a RagTime v3 file
RagTimeParser::RagTimeParser | ( | MWAWInputStreamPtr | input, |
MWAWRSRCParserPtr | rsrcParser, | ||
MWAWHeader * | header | ||
) |
constructor
|
virtual |
destructor
|
virtual |
|
protected |
creates the listener which will be associated to the document
Referenced by parse().
|
protected |
finds the different objects zones
Referenced by parse().
|
protected |
try to create the main data zones list
Referenced by createZones().
|
protected |
try to sort the zone on each page
Referenced by createZones().
|
protected |
try to create the resource zones list
Referenced by createZones().
|
protected |
flush unsent zone (debugging function)
Referenced by parse().
|
protected |
returns a mac font id corresponding to a local id
Referenced by RagTimeSpreadsheet::readSpreadsheetCellV2().
|
protected |
inits all internal variables
Referenced by RagTimeParser().
|
protected |
adds a new page
|
virtual |
virtual function used to parse the input
Implements MWAWTextParser.
|
protected |
try to read the color map:v2
Referenced by findDataZones().
|
protected |
try to read a data zone header
Referenced by findDataZones().
|
protected |
try to read the item format zone: RTml zones
Referenced by createZones().
|
protected |
try to read the File Link zone: FLink
Referenced by createZones().
|
protected |
try to read page zone ( unknown content of size 40).
A zone which seems to appear between each page data
Referenced by createZones().
|
protected |
try to read pictZone ( a big zone)
Referenced by createZones().
|
protected |
try to read pictZone ( a big zone):v2
Referenced by createZones().
|
protected |
read a printInfo block (a PREC rsrc)
Referenced by createZones().
|
protected |
try to read the BeDc zone ( zone of size 52, one by file with id=0);
Referenced by createZones().
|
protected |
try to read the Btch zone (zone with id=0)
Referenced by createZones().
|
protected |
try to read the Calc zone (zone with id=0)
Referenced by createZones().
|
protected |
try to read the char table zone (CHTa) ?
Referenced by createZones().
|
protected |
try to read the FHsl zone (s=style?)
Referenced by createZones().
|
protected |
try to read the FHwl zone ( one by file with id=0), maybe width length?
Referenced by createZones().
|
protected |
try to read the format table zone: FoTa
Referenced by createZones().
|
protected |
try to read the fppr zone (zone with id=0)
Referenced by createZones().
|
protected |
try to read the Sele zone (zone with id=0), maybe related to selection
|
protected |
try to read the SpDI zone (zone with id=0)
Referenced by createZones().
|
protected |
try to read the SpDo zone (zone with id=0)
Referenced by createZones().
|
protected |
try to read a structured zone
Referenced by createZones().
|
protected |
try to read a unamed zone (5 by file, all with id=0)
Referenced by createZones().
|
protected |
try to read zone6 ( a big zone)
Referenced by createZones().
|
protected |
try to send a zone
Referenced by sendPageZone().
|
protected |
sends a basic shape
Referenced by flushExtra(), and send().
|
protected |
try to send the different zones of a page
Referenced by sendZones().
|
protected |
sends the picture
Referenced by flushExtra(), and send().
|
protected |
try to send the text zone (interface of RagTimeText)
|
protected |
try to send the different zones
Referenced by parse().
|
friend |
|
friend |
Referenced by init().
|
friend |
Referenced by init().
|
protected |
the spreadsheet parser
Referenced by createZones(), init(), parse(), and send().
|
protected |
the state
Referenced by checkHeader(), createDocument(), createZones(), findDataZones(), findPagesZones(), findRsrcZones(), flushExtra(), init(), newPage(), readColorMapV2(), readDataZoneHeader(), readPictZone(), readPictZoneV2(), send(), sendBasicPicture(), sendPageZone(), sendPicture(), and sendZones().
|
protected |
the text parser
Referenced by createZones(), getFontId(), init(), parse(), and sendText().