38 #ifndef FULL_WRT_PARSER
39 # define FULL_WRT_PARSER
45 #include <librevenge/librevenge.h>
52 namespace FullWrtParserInternal
82 void parse(librevenge::RVNGTextInterface *documentInterface);
89 void createDocument(librevenge::RVNGTextInterface *documentInterface);
174 shared_ptr<FullWrtParserInternal::State>
m_state;
std::string getDocumentTypeName(int zId) const
returns a the type of a document zone ( mainly used for debugging)
Definition: FullWrtParser.cxx:348
void sendGraphic(int docId)
try to send a graphic
Definition: FullWrtParser.cxx:355
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:66
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:343
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1920
shared_ptr< FullWrtGraph > m_graphParser
the graph parser
Definition: FullWrtParser.hxx:177
shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:147
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: FullWrtParser.cxx:332
SubDocumentType
Definition: libmwaw_internal.hxx:178
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:319
FullWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: FullWrtParser.cxx:287
bool send(int fileId, MWAWColor fontColor=MWAWColor::black())
ask the text parser to send a zone
Definition: FullWrtParser.cxx:370
bool readDocZoneData(FullWrtStruct::EntryPtr zone)
try to read the zone containing the data of each doc zone (ie. Zone0)
Definition: FullWrtParser.cxx:1113
the class to store a color
Definition: libmwaw_internal.hxx:182
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: FullWrtParser.cxx:647
void init()
inits all internal variables
Definition: FullWrtParser.cxx:302
bool readFileZonePos(FullWrtStruct::EntryPtr zone)
try to read the file zones position
Definition: FullWrtParser.cxx:1711
Type
enum to define note type
Definition: libmwaw_internal.hxx:408
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool readDocPosition()
find the last position of the document and read data
Definition: FullWrtParser.cxx:1847
void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote)
try to send a footnote/endnote entry
Definition: FullWrtParser.cxx:1994
shared_ptr< FullWrtParserInternal::State > m_state
the state
Definition: FullWrtParser.hxx:174
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:295
bool createFileZones()
create the file zone ( first step of create zones)
Definition: FullWrtParser.cxx:524
virtual ~FullWrtParser()
destructor
Definition: FullWrtParser.cxx:293
bool readDocInfo(FullWrtStruct::EntryPtr zone)
try to read zone2, a zone which stores the document information zone, ...
Definition: FullWrtParser.cxx:673
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1950
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Internal: the subdocument of a FullWrtParser.
Definition: FullWrtParser.cxx:233
bool readFileZoneFlags(FullWrtStruct::EntryPtr zone)
try to read the file zones main flags
Definition: FullWrtParser.cxx:1614
Definition: libmwaw_internal.hxx:408
the main class to read the text part of writenow file
Definition: FullWrtText.hxx:66
bool readEndDocInfo(FullWrtStruct::EntryPtr zone)
try to read the end of zone2 (only v2) ?
Definition: FullWrtParser.cxx:917
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FullWrtParser.cxx:454
bool createZones()
finds the different objects zones
Definition: FullWrtParser.cxx:558
shared_ptr< FullWrtText > m_textParser
the text parser
Definition: FullWrtParser.hxx:179
bool readCitationDocInfo(FullWrtStruct::EntryPtr zone)
try to read the list of citation (at the end of doc info)
Definition: FullWrtParser.cxx:974
bool readPrintInfo(FullWrtStruct::EntryPtr zone)
try read the print info zone
Definition: FullWrtParser.cxx:1039
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
bool readDocZoneStruct(FullWrtStruct::EntryPtr zone)
try to read the zone which stores the structure of zone0, ... (ie. Zone1)
Definition: FullWrtParser.cxx:1304
the main class to read the graphic part of a FullWrite Text file
Definition: FullWrtGraph.hxx:67
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: FullWrtParser.cxx:382
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:338
bool readGenericDocData(FullWrtStruct::EntryPtr zone, FullWrtStruct::ZoneHeader &doc)
try to read the data of a zone which begins with a generic header
Definition: FullWrtParser.cxx:1449
bool readReferenceData(FullWrtStruct::EntryPtr zone)
try to read the reference data
Definition: FullWrtParser.cxx:1550