Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool readWindowPos(MWAWEntry const &entry)
read the window position
Definition: ZWrtParser.cxx:658
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
Internal: the state of a ZWrtParser.
Definition: ZWrtParser.cxx:59
State()
constructor
Definition: ZWrtParser.cxx:61
ZWField()
constructor
Definition: ZWrtParser.hxx:58
ZWrtParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ZWrtParser.cxx:133
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
a structure to store a field of a ZWrite file
Definition: ZWrtParser.hxx:56
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
std::shared_ptr< ZWrtText > m_textParser
the text parser
Definition: ZWrtParser.hxx:157
bool getBool(MWAWInputStreamPtr &input, bool &val) const
returns the boolean corresponding to a field ( T or F )
Definition: ZWrtParser.cxx:968
MWAWEntry m_pos
the field position in the rsrc data file
Definition: ZWrtParser.hxx:77
void init()
inits all internal variables
Definition: ZWrtParser.cxx:145
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
int id() const
returns the id
Definition: MWAWEntry.hxx:164
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
bool m_headerUsed
true if the header is used
Definition: ZWrtParser.cxx:74
bool readHTMLPref(MWAWEntry const &entry)
read the html export pref
Definition: ZWrtParser.cxx:538
bool getString(MWAWInputStreamPtr &input, std::string &str) const
returns the string corresponding to a field
Definition: ZWrtParser.cxx:932
bool m_footerUsed
true if the footer is used
Definition: ZWrtParser.cxx:76
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ZWrtParser.cxx:96
bool getFloat(MWAWInputStreamPtr &input, float &val) const
returns the float corresponding to a field
Definition: ZWrtParser.cxx:1018
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ZWrtParser.cxx:113
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
bool readSectionRange(MWAWEntry const &entry)
read the section range block
Definition: ZWrtParser.cxx:604
the main class to read a ZWrite file
Definition: ZWrtParser.hxx:83
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
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 m_headerHeight
the header height if known
Definition: ZWrtParser.cxx:77
Internal: the structures of a ZWrtParser.
Definition: ZWrtParser.cxx:56
friend class ZWrtText
Definition: ZWrtParser.hxx:85
SubDocumentType
Definition: libmwaw_internal.hxx:188
~SubDocument() final
destructor
Definition: ZWrtParser.cxx:93
bool sendHeaderFooter(bool header)
try to send the header/footer
Definition: ZWrtParser.cxx:180
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
bool getIntList(MWAWInputStreamPtr &input, std::vector< int > &val) const
returns a list of int corresponding to a field
Definition: ZWrtParser.cxx:1032
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
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
bool getInt(MWAWInputStreamPtr &input, int &val) const
returns the int corresponding to a field
Definition: ZWrtParser.cxx:989
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: ZWrtParser.cxx:158
bool getDebugString(MWAWInputStreamPtr &input, std::string &str) const
returns a debug string corresponding to a field ( replacing \n by ##[0d], ...)
Definition: ZWrtParser.cxx:950
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
the main class to read the text part of ZWrite Text file
Definition: ZWrtText.hxx:59
bool readBarState(MWAWEntry const &entry)
read the bar state
Definition: ZWrtParser.cxx:492
@ PageBreak
Definition: MWAWListener.hxx:58
void newPage(int number)
adds a new page
Definition: ZWrtParser.cxx:192
Definition: libmwaw_internal.hxx:144
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ZWrtParser.cxx:171
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
std::shared_ptr< ZWrtParserInternal::State > m_state
the state
Definition: ZWrtParser.hxx:154
int m_numPages
the number of page of the final document
Definition: ZWrtParser.cxx:71
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ZWrtParser.cxx:880
bool createZones()
finds the different objects zones
Definition: ZWrtParser.cxx:276
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
bool getFieldList(MWAWEntry const &entry, std::vector< ZWField > &list)
returns a list of field
Definition: ZWrtParser.cxx:905
int m_isHeader
true if we need to send the parser
Definition: ZWrtParser.cxx:110
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Internal: the subdocument of a ZWrtParser.
Definition: ZWrtParser.cxx:84
Defines MWAWTextListener: the libmwaw word processor listener.
bool readSLen(MWAWEntry const &entry)
read a section length ?
Definition: ZWrtParser.cxx:782
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ZWrtParser.cxx:235
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
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
bool readCPRT(MWAWEntry const &entry)
try to read a xml printinfo zone
Definition: ZWrtParser.cxx:462
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
bool readUnknownZone(MWAWEntry const &entry)
read a unknown block
Definition: ZWrtParser.cxx:834
int m_footerHeight
the footer height if known
Definition: ZWrtParser.cxx:78
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
int m_actPage
the actual page
Definition: ZWrtParser.cxx:71
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
bool readCPos(MWAWEntry const &entry)
read a cursor position in a section?
Definition: ZWrtParser.cxx:732
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
SubDocument(ZWrtParser &pars, MWAWInputStreamPtr const &input, bool header)
Definition: ZWrtParser.cxx:86
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: ZWrtParser.cxx:208
~ZWrtParser() final
destructor
Definition: ZWrtParser.cxx:141
bool readPrintInfo(MWAWEntry const &entry)
read a PrintInfo block
Definition: ZWrtParser.cxx:353
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
@ MWAW_T_ZWRITE
Z-Write (v1.3)
Definition: MWAWDocument.hxx:159
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: ZWrtParser.cxx:163
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20