the main class to read a Painter's file, actually, only read Fractal Design Painter 1 file More...
#include <CorelPainterParser.hxx>
Public Member Functions | |
| CorelPainterParser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
| constructor More... | |
| ~CorelPainterParser () final | |
| destructor More... | |
| bool | checkHeader (MWAWHeader *header, bool strict=false) final |
| checks if the document header is correct (or not) More... | |
| void | parse (librevenge::RVNGDrawingInterface *documentInterface) final |
| the main parser function More... | |
Public Member Functions inherited from MWAWGraphicParser | |
| ~MWAWGraphicParser () override | |
| destructor More... | |
Public Member Functions inherited from MWAWParser | |
| 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... | |
| MWAWPresentationListenerPtr & | getPresentationListener () |
| returns the presentation listener More... | |
| MWAWSpreadsheetListenerPtr & | getSpreadsheetListener () |
| returns the spreadsheet listener More... | |
| MWAWTextListenerPtr & | getTextListener () |
| returns the text listener More... | |
| MWAWFontConverterPtr & | getFontConverter () |
| returns the font converter More... | |
| MWAWFontManagerPtr & | getFontManager () |
| returns the font manager 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... | |
| void | createDocument (librevenge::RVNGDrawingInterface *documentInterface) |
| creates the listener which will be associated to the document More... | |
| bool | sendBitmap (CorelPainterParserInternal::ZoneHeader const &zone) |
| try to send a bitmap zone (main bitmap or floater) More... | |
| bool | sendZone (CorelPainterParserInternal::ZoneHeader const &zone) |
| try to send a not bitmap zone More... | |
| bool | createZones () |
| finds the different objects zones More... | |
| std::shared_ptr< CorelPainterParserInternal::Node > | readCompressionTree (long endPos, int numNodes) |
| try to read the Hoffman tree More... | |
| bool | decompressData (CorelPainterParserInternal::ZoneHeader const &zone, long endPos, int &value, int &buffer, int &numBitsInBuffer) |
| try to decompress a data More... | |
| bool | readZoneHeader (CorelPainterParserInternal::ZoneHeader &zone) |
| try to read the header zone More... | |
| std::shared_ptr< MWAWPict > | readBitmap (CorelPainterParserInternal::ZoneHeader const &zone) |
| try to read a bitmap More... | |
| bool | readBitmapRow (CorelPainterParserInternal::ZoneHeader const &zone, std::vector< MWAWColor > &colorList, std::vector< unsigned char > &previousValues) |
| try to read a bitmap line More... | |
| bool | readResourcesList (CorelPainterParserInternal::ZoneHeader &zone) |
| try to read the list of resource zone (in the data fork) More... | |
| bool | readResource (MWAWEntry &entry) |
| try to parse the resource data More... | |
| bool | sendText (MWAWEntry const &entry, MWAWEntry const &unicodeEntry) |
| try to parse the text data More... | |
| bool | readPolygon (long endPos, MWAWGraphicShape &shape, MWAWGraphicStyle &style) |
| try to read a polygon data More... | |
| MWAWPosition | getZonePosition (CorelPainterParserInternal::ZoneHeader const &zone) const |
| update the position beforing sending a bitmap, shape, ... More... | |
| bool | readDouble (double &res) |
| try to read a double 1 bytes exponent, 3 mantisse More... | |
Protected Member Functions inherited from MWAWGraphicParser | |
| MWAWGraphicParser (MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
| constructor (protected) More... | |
| MWAWGraphicParser (MWAWParserStatePtr const &state) | |
| constructor using a state More... | |
Protected Member Functions inherited from MWAWParser | |
| MWAWParser (MWAWParserState::Type type, MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header) | |
| constructor (protected) More... | |
| MWAWParser (MWAWParserStatePtr const &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 | setPresentationListener (MWAWPresentationListenerPtr &listener) |
| sets the presentation listener More... | |
| void | resetPresentationListener () |
| 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 | setAsciiName (char const *name) |
| Debugging: change the default ascii file. More... | |
| std::string const & | asciiName () const |
| return the ascii file name More... | |
Protected Attributes | |
| std::shared_ptr< CorelPainterParserInternal::State > | m_state |
| the state More... | |
Friends | |
| class | CorelPainterParserInternal::SubDocument |
the main class to read a Painter's file, actually, only read Fractal Design Painter 1 file
| CorelPainterParser::CorelPainterParser | ( | MWAWInputStreamPtr const & | input, |
| MWAWRSRCParserPtr const & | rsrcParser, | ||
| MWAWHeader * | header | ||
| ) |
constructor
|
final |
destructor
|
finalvirtual |
|
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 decompress a data
Referenced by readBitmapRow().
|
protected |
update the position beforing sending a bitmap, shape, ...
Referenced by sendBitmap(), and sendZone().
|
protected |
inits all internal variables
Referenced by CorelPainterParser().
|
finalvirtual |
the main parser function
Implements MWAWGraphicParser.
|
protected |
try to read a bitmap
Referenced by sendBitmap().
|
protected |
try to read a bitmap line
Referenced by readBitmap().
|
protected |
try to read the Hoffman tree
Referenced by readZoneHeader().
|
protected |
try to read a double 1 bytes exponent, 3 mantisse
Referenced by sendText().
|
protected |
try to read a polygon data
Referenced by sendZone().
|
protected |
try to parse the resource data
Referenced by readResourcesList().
|
protected |
try to read the list of resource zone (in the data fork)
Referenced by createZones().
|
protected |
try to read the header zone
Referenced by checkHeader(), and createZones().
|
protected |
try to send a bitmap zone (main bitmap or floater)
Referenced by parse().
|
protected |
try to parse the text data
|
protected |
try to send a not bitmap zone
Referenced by parse().
|
friend |
|
protected |
the state
Referenced by checkHeader(), createDocument(), createZones(), getZonePosition(), init(), parse(), and sendZone().