Go to the documentation of this file.
38 #ifndef FULL_WRT_PARSER
39 # define FULL_WRT_PARSER
45 #include <librevenge/librevenge.h>
bool readFileZoneFlags(FullWrtStruct::EntryPtr zone)
try to read the file zones main flags
Definition: FullWrtParser.cxx:1624
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
int m_values[5]
some unknown values
Definition: FullWrtParser.cxx:158
bool readDocPosition()
find the last position of the document and read data
Definition: FullWrtParser.cxx:1856
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
friend std::ostream & operator<<(std::ostream &o, ReferenceCalledData const &dt)
the operator<<
Definition: FullWrtParser.cxx:146
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1929
an noop deleter used to transform a libwpd pointer in a false std::shared_ptr
Definition: libmwaw_internal.hxx:101
a note
Definition: libmwaw_internal.hxx:445
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
bool readEndDocInfo(FullWrtStruct::EntryPtr zone)
try to read the end of zone2 (only v2) ?
Definition: FullWrtParser.cxx:928
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
friend std::ostream & operator<<(std::ostream &o, DocZoneStruct const &dt)
the operator<<
Definition: FullWrtParser.cxx:74
a namespace use to define common structure in a FullWrite file
Definition: FullWrtStruct.cxx:44
int m_id
the reference id
Definition: FullWrtParser.cxx:156
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: FullWrtParser.cxx:399
bool createZones()
finds the different objects zones
Definition: FullWrtParser.cxx:572
bool m_pageSpanSet
a flag to know if the page span has been filled
Definition: FullWrtParser.cxx:215
int m_fatherId
the father id
Definition: FullWrtParser.cxx:110
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
bool readCitationDocInfo(FullWrtStruct::EntryPtr zone)
try to read the list of citation (at the end of doc info)
Definition: FullWrtParser.cxx:985
bool readPrintInfo(FullWrtStruct::EntryPtr zone)
try read the print info zone
Definition: FullWrtParser.cxx:1050
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
Type
enum to define note type
Definition: libmwaw_internal.hxx:447
the definition of a zone in a FullWrite file
Definition: FullWrtStruct.hxx:111
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
Internal: the structures of a FullWrtParser.
Definition: FullWrtParser.cxx:62
std::string getTypeName(int type)
returns the type name
Definition: FullWrtStruct.cxx:66
the class to store a color
Definition: libmwaw_internal.hxx:192
State()
constructor
Definition: FullWrtParser.cxx:165
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
int m_type
the type
Definition: FullWrtParser.cxx:106
int version() const
returns the works version
Definition: MWAWParser.hxx:108
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: FullWrtParser.cxx:265
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
Internal: the state of a FullWrtParser.
Definition: FullWrtParser.cxx:163
~SubDocument() final
destructor
Definition: FullWrtParser.cxx:262
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
@ MWAW_T_FULLWRITE
FullWrite Professional: basic.
Definition: MWAWDocument.hxx:115
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
friend class FullWrtGraph
Definition: FullWrtParser.hxx:68
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: FullWrtParser.cxx:470
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:361
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: FullWrtParser.cxx:660
int getFileZoneId(int docId) const
return the file zone id ( if found or -1)
Definition: FullWrtParser.cxx:205
Defines MWAWCell (cell content and format)
Internal: the reference data call of a FullWrtParser.
Definition: FullWrtParser.cxx:138
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
std::shared_ptr< FullWrtGraph > m_graphParser
the graph parser
Definition: FullWrtParser.hxx:177
std::vector< int > m_childList
the list of child id
Definition: FullWrtParser.cxx:112
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
std::string getDocumentTypeName(int zId) const
returns a the type of a document zone ( mainly used for debugging)
Definition: FullWrtParser.cxx:366
SubDocumentType
Definition: libmwaw_internal.hxx:188
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:337
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
the main class to read the text part of writenow file
Definition: FullWrtText.hxx:67
void sendGraphic(int docId)
try to send a graphic
Definition: FullWrtParser.cxx:373
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
std::map< int, ReferenceCalledData > m_referenceRedirectMap
redirection docId -> reference docId
Definition: FullWrtParser.cxx:244
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
FullWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: FullWrtParser.cxx:303
std::shared_ptr< FullWrtText > m_textParser
the text parser
Definition: FullWrtParser.hxx:179
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
DocZoneStruct()
constructor
Definition: FullWrtParser.cxx:66
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
T x() const
first element
Definition: libmwaw_internal.hxx:668
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: FullWrtParser.cxx:282
FullWrtStruct::EntryPtr m_fileZoneList
the list of file zone position
Definition: FullWrtParser.cxx:220
Definition: libmwaw_internal.hxx:144
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Internal: the subdocument of a FullWrtParser.
Definition: FullWrtParser.cxx:255
std::map< int, int > m_fileDocIdMap
the correspondance file id -> doc id
Definition: FullWrtParser.cxx:232
Internal and low level: a structure used to define the list of zone in Zone 0 data of a FullWrite fil...
Definition: FullWrtParser.cxx:64
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
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:1458
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
~FullWrtParser() final
destructor
Definition: FullWrtParser.cxx:312
bool readDocZoneData(FullWrtStruct::EntryPtr zone)
try to read the zone containing the data of each doc zone (ie. Zone0)
Definition: FullWrtParser.cxx:1124
int m_id
the subdocument id
Definition: FullWrtParser.cxx:279
friend class FullWrtText
Definition: FullWrtParser.hxx:69
void sendText(int docId, libmwaw::SubDocumentType type, MWAWNote::Type which=MWAWNote::FootNote)
try to send a footnote/endnote entry
Definition: FullWrtParser.cxx:2002
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
int m_biblioId
the bibliography id
Definition: FullWrtParser.cxx:235
std::multimap< int, FullWrtStruct::EntryPtr > m_entryMap
zoneId -> entry
Definition: FullWrtParser.cxx:238
FullWrtStruct::EntryPtr m_fileZoneFlagsList
the list of file zone flags
Definition: FullWrtParser.cxx:223
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: FullWrtParser.cxx:350
bool readDocZoneStruct(FullWrtStruct::EntryPtr zone)
try to read the zone which stores the structure of zone0, ... (ie. Zone1)
Definition: FullWrtParser.cxx:1314
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
bool readFileZonePos(FullWrtStruct::EntryPtr zone)
try to read the file zones position
Definition: FullWrtParser.cxx:1721
Defines MWAWTextListener: the libmwaw word processor listener.
bool createFileZones()
create the file zone ( first step of create zones)
Definition: FullWrtParser.cxx:540
bool readDocInfo(FullWrtStruct::EntryPtr zone)
try to read zone2, a zone which stores the document information zone, ...
Definition: FullWrtParser.cxx:686
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:356
std::vector< DocZoneStruct > m_docZoneList
the list of the documents zone list
Definition: FullWrtParser.cxx:226
std::shared_ptr< FullWrtParserInternal::State > m_state
the state
Definition: FullWrtParser.hxx:174
long m_pos
the file position
Definition: FullWrtParser.cxx:102
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
std::map< int, int > m_docFileIdMap
the correspondance doc id -> file id
Definition: FullWrtParser.cxx:229
bool addCorrespondance(int docId, int fileId)
insert a docId fileId in the correspondance map
Definition: FullWrtParser.cxx:185
bool readReferenceData(FullWrtStruct::EntryPtr zone)
try to read the reference data
Definition: FullWrtParser.cxx:1560
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
int m_nextId
the next id
Definition: FullWrtParser.cxx:108
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
int m_structType
the struct type
Definition: FullWrtParser.cxx:104
void init()
inits all internal variables
Definition: FullWrtParser.cxx:320
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
ReferenceCalledData()
Definition: FullWrtParser.cxx:140
std::map< int, int > m_variableRedirectMap
redirection docId -> variable docId
Definition: FullWrtParser.cxx:241
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1959
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
the main class to read the graphic part of a FullWrite Text file
Definition: FullWrtGraph.hxx:68
std::shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:153
SubDocument(FullWrtParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: FullWrtParser.cxx:257
bool send(int fileId, MWAWColor fontColor=MWAWColor::black())
ask the text parser to send a zone
Definition: FullWrtParser.cxx:387
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20