34#ifndef MACDRAFT_PARSER
35# define MACDRAFT_PARSER
40#include <librevenge/librevenge.h>
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
Internal: the subdocument of a MacDraftParser.
Definition: MacDraftParser.cxx:284
the main class to read a MacDraft v1 file
Definition: MacDraftParser.hxx:59
bool readZone()
try to a unknown zone
Definition: MacDraftParser.cxx:562
bool readBitmapDefinition(MacDraftParserInternal::Shape &bitmap)
try to read bitmap definition
Definition: MacDraftParser.cxx:1123
bool createZones()
finds the different objects zones
Definition: MacDraftParser.cxx:418
void init()
inits all internal variables
Definition: MacDraftParser.cxx:348
bool sendBitmap(MacDraftParserInternal::Shape const &bitmap, MWAWPosition const &position)
try to send a bitmap
Definition: MacDraftParser.cxx:1773
bool readDocHeader()
try to the doc header zone ( mainly unknown )
Definition: MacDraftParser.cxx:1444
bool sendText(int zoneId)
try to send a text zone to the listener
Definition: MacDraftParser.cxx:1853
std::shared_ptr< MacDraftParserInternal::State > m_state
the state
Definition: MacDraftParser.hxx:118
bool readObject()
try to read an object
Definition: MacDraftParser.cxx:593
~MacDraftParser() final
destructor
Definition: MacDraftParser.cxx:344
bool send(MacDraftParserInternal::Shape const &shape)
try to send a shape
Definition: MacDraftParser.cxx:1684
bool readLabel()
try to read a label
Definition: MacDraftParser.cxx:1249
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MacDraftParser.cxx:1363
bool readPattern()
try to read a pattern
Definition: MacDraftParser.cxx:1195
bool readPrintInfo()
try to read the print info zone
Definition: MacDraftParser.cxx:1622
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: MacDraftParser.cxx:361
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MacDraftParser.cxx:396
bool readBitmapData()
try to read bitmap data
Definition: MacDraftParser.cxx:1066
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: the structures of a MacDraftParser.
Definition: MacDraftParser.cxx:57
Definition: MWAWDocument.hxx:57