Go to the documentation of this file.
38 #ifndef FULL_WRT_PARSER
39 # define FULL_WRT_PARSER
45 #include <librevenge/librevenge.h>
82 void parse(librevenge::RVNGTextInterface *documentInterface);
89 void createDocument(librevenge::RVNGTextInterface *documentInterface);
174 shared_ptr<FullWrtParserInternal::State>
m_state;
bool readFileZoneFlags(FullWrtStruct::EntryPtr zone)
try to read the file zones main flags
Definition: FullWrtParser.cxx:1614
int m_values[5]
some unknown values
Definition: FullWrtParser.cxx:149
bool readDocPosition()
find the last position of the document and read data
Definition: FullWrtParser.cxx:1847
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
friend std::ostream & operator<<(std::ostream &o, ReferenceCalledData const &dt)
the operator<<
Definition: FullWrtParser.cxx:137
void sendReference(int docId)
try to send a reference, in pratice do nothing
Definition: FullWrtParser.cxx:1920
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:109
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
a note
Definition: libmwaw_internal.hxx:406
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
SubDocument(FullWrtParser &pars, MWAWInputStreamPtr input, int zoneId)
Definition: FullWrtParser.cxx:236
bool readEndDocInfo(FullWrtStruct::EntryPtr zone)
try to read the end of zone2 (only v2) ?
Definition: FullWrtParser.cxx:917
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:68
int m_id
the reference id
Definition: FullWrtParser.cxx:147
bool createZones()
finds the different objects zones
Definition: FullWrtParser.cxx:558
bool m_pageSpanSet
a flag to know if the page span has been filled
Definition: FullWrtParser.cxx:194
int m_footerHeight
the footer height if known
Definition: FullWrtParser.cxx:228
int m_fatherId
the father id
Definition: FullWrtParser.cxx:104
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
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
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:408
the definition of a zone in a FullWrite file
Definition: FullWrtStruct.hxx:105
int m_actPage
the actual page
Definition: FullWrtParser.cxx:225
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
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:182
State()
constructor
Definition: FullWrtParser.cxx:156
Internal: class to store a border which appear in docInfo.
Definition: FullWrtStruct.hxx:60
int m_type
the type
Definition: FullWrtParser.cxx:100
int version() const
returns the works version
Definition: MWAWParser.hxx:108
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: FullWrtParser.cxx:382
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
Internal: the state of a FullWrtParser.
Definition: FullWrtParser.cxx:154
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: FullWrtParser.cxx:266
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:454
virtual ~FullWrtParser()
destructor
Definition: FullWrtParser.cxx:293
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
shared_ptr< FullWrtText > m_textParser
the text parser
Definition: FullWrtParser.hxx:179
int getNumDocZoneStruct() const
returns the number of zone struct
Definition: FullWrtParser.cxx:343
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
int m_headerHeight
the header height if known
Definition: FullWrtParser.cxx:227
int getFileZoneId(int docId) const
return the file zone id ( if found or -1)
Definition: FullWrtParser.cxx:184
virtual ~SubDocument()
destructor
Definition: FullWrtParser.cxx:240
Internal: the reference data call of a FullWrtParser.
Definition: FullWrtParser.cxx:130
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
int m_numPages
the number of page of the final document
Definition: FullWrtParser.cxx:225
std::vector< int > m_childList
the list of child id
Definition: FullWrtParser.cxx:106
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
std::string getDocumentTypeName(int zId) const
returns a the type of a document zone ( mainly used for debugging)
Definition: FullWrtParser.cxx:348
SubDocumentType
Definition: libmwaw_internal.hxx:178
void newPage(int number)
adds a new page
Definition: FullWrtParser.cxx:319
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
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:355
the main class to read a FullWrite file
Definition: FullWrtParser.hxx:67
shared_ptr< FullWrtParserInternal::State > m_state
the state
Definition: FullWrtParser.hxx:174
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
std::map< int, ReferenceCalledData > m_referenceRedirectMap
redirection docId -> reference docId
Definition: FullWrtParser.cxx:223
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:105
T y() const
second element
Definition: libmwaw_internal.hxx:620
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:177
T x() const
first element
Definition: libmwaw_internal.hxx:615
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
@ PageBreak
Definition: MWAWListener.hxx:58
FullWrtStruct::EntryPtr m_fileZoneList
the list of file zone position
Definition: FullWrtParser.cxx:199
Definition: libmwaw_internal.hxx:142
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Internal: the subdocument of a FullWrtParser.
Definition: FullWrtParser.cxx:234
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
std::map< int, int > m_fileDocIdMap
the correspondance file id -> doc id
Definition: FullWrtParser.cxx:211
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:197
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
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
FullWrtParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: FullWrtParser.cxx:287
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
bool readDocZoneData(FullWrtStruct::EntryPtr zone)
try to read the zone containing the data of each doc zone (ie. Zone0)
Definition: FullWrtParser.cxx:1113
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
int m_id
the subdocument id
Definition: FullWrtParser.cxx:263
friend class FullWrtText
Definition: FullWrtParser.hxx:69
int m_zoneFlagsId[3]
the list of main zone flags id
Definition: FullWrtParser.cxx:196
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< FullWrtGraph > m_graphParser
the graph parser
Definition: FullWrtParser.hxx:177
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
int m_biblioId
the bibliography id
Definition: FullWrtParser.cxx:214
std::multimap< int, FullWrtStruct::EntryPtr > m_entryMap
zoneId -> entry
Definition: FullWrtParser.cxx:217
FullWrtStruct::EntryPtr m_fileZoneFlagsList
the list of file zone flags
Definition: FullWrtParser.cxx:202
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: FullWrtParser.cxx:647
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: FullWrtParser.cxx:332
bool readDocZoneStruct(FullWrtStruct::EntryPtr zone)
try to read the zone which stores the structure of zone0, ... (ie. Zone1)
Definition: FullWrtParser.cxx:1304
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: FullWrtParser.cxx:253
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:1711
bool createFileZones()
create the file zone ( first step of create zones)
Definition: FullWrtParser.cxx:524
bool readDocInfo(FullWrtStruct::EntryPtr zone)
try to read zone2, a zone which stores the document information zone, ...
Definition: FullWrtParser.cxx:673
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
bool getBorder(int bId, FullWrtStruct::Border &border) const
try to return a border corresponding to an id
Definition: FullWrtParser.cxx:338
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: FullWrtParser.cxx:243
std::vector< DocZoneStruct > m_docZoneList
the list of the documents zone list
Definition: FullWrtParser.cxx:205
long m_pos
the file position
Definition: FullWrtParser.cxx:96
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:208
bool addCorrespondance(int docId, int fileId)
insert a docId fileId in the correspondance map
Definition: FullWrtParser.cxx:164
bool readReferenceData(FullWrtStruct::EntryPtr zone)
try to read the reference data
Definition: FullWrtParser.cxx:1550
@ FootNote
Definition: libmwaw_internal.hxx:408
int m_nextId
the next id
Definition: FullWrtParser.cxx:102
int m_structType
the struct type
Definition: FullWrtParser.cxx:98
void init()
inits all internal variables
Definition: FullWrtParser.cxx:302
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
ReferenceCalledData()
Definition: FullWrtParser.cxx:132
std::map< int, int > m_variableRedirectMap
redirection docId -> variable docId
Definition: FullWrtParser.cxx:220
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
shared_ptr< Entry > EntryPtr
Definition: FullWrtStruct.hxx:147
void sendVariable(int docId)
try to send a variable, in pratice do nothing
Definition: FullWrtParser.cxx:1950
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
the main class to read the graphic part of a FullWrite Text file
Definition: FullWrtGraph.hxx:68
bool send(int fileId, MWAWColor fontColor=MWAWColor::black())
ask the text parser to send a zone
Definition: FullWrtParser.cxx:370
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18