38 #ifndef WRITE_NOW_PARSER
39 # define WRITE_NOW_PARSER
52 namespace WriteNowParserInternal
83 void parse(librevenge::RVNGTextInterface *documentInterface);
90 void createDocument(librevenge::RVNGTextInterface *documentInterface);
158 shared_ptr<WriteNowParserInternal::State>
m_state;
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WriteNowParser.cxx:272
the main class to read the text part of writenow file
Definition: WriteNowText.hxx:81
shared_ptr< WriteNowText > m_textParser
the text parser
Definition: WriteNowParser.hxx:164
Definition: WriteNowEntry.hxx:47
void getColumnInfo(int &numColumns, int &width) const
returns the columns information
Definition: WriteNowParser.cxx:164
bool readColorMap(WriteNowEntry const &entry)
try to read the colormap zone
Definition: WriteNowParser.cxx:718
the manager of the entries
Definition: WriteNowEntry.hxx:97
bool readPrintInfo(WriteNowEntry const &entry)
try to read the print info zone
Definition: WriteNowParser.cxx:825
void sendFootnote(WriteNowEntry const &entry)
try to send a footnote entry
Definition: WriteNowParser.cxx:195
bool sendPicture(WriteNowEntry const &entry, Box2i const &bdbox)
try to send a picture to the listener
Definition: WriteNowParser.cxx:630
shared_ptr< WriteNowParserInternal::State > m_state
the state
Definition: WriteNowParser.hxx:158
Internal: the subdocument of a WriteNowParser.
Definition: WriteNowParser.cxx:85
the class to store a color
Definition: libmwaw_internal.hxx:167
bool readDocEntriesV2()
try to read the document entries zone v2
Definition: WriteNowParser.cxx:473
bool checkIfPositionValid(long pos)
check if a position is inside the file
Definition: WriteNowParser.cxx:985
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:439
bool getColor(int colId, MWAWColor &col) const
returns the color which corresponds to colId
Definition: WriteNowParser.cxx:186
bool parseGraphicZone(WriteNowEntry const &entry)
try to read the graphic zone (unknown + list of entries ) and to create the graphic data zone ...
Definition: WriteNowParser.cxx:550
void init()
inits all internal variables
Definition: WriteNowParser.cxx:147
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:284
void send(WriteNowEntry const &entry)
try to send an entry
Definition: WriteNowParser.cxx:203
WriteNowEntry readEntry()
read a file entry
Definition: WriteNowParser.cxx:999
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:429
WriteNowParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: WriteNowParser.cxx:137
shared_ptr< WriteNowEntryManager > m_entryManager
the list of entry
Definition: WriteNowParser.hxx:161
bool createZones()
finds the different objects zones
Definition: WriteNowParser.cxx:320
bool sendGraphic(int gId, Box2i const &bdbox)
try to send the graphic zone
Definition: WriteNowParser.cxx:208
bool readGenericUnkn(WriteNowEntry const &entry)
try to read the last generic zones
Definition: WriteNowParser.cxx:901
virtual ~WriteNowParser()
destructor
Definition: WriteNowParser.cxx:143
bool readDocEntries()
try to read the document entries zone v3-v4
Definition: WriteNowParser.cxx:383
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: WriteNowParser.cxx:227
void newPage(int number)
adds a new page
Definition: WriteNowParser.cxx:173
the main class to read a WriteNow file
Definition: WriteNowParser.hxx:68
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WriteNowParser.cxx:1025