basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ Time
Definition: libmwaw_internal.hxx:371
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
@ BookMark
Definition: ZWrtText.hxx:76
SubDocument(ZWrtText &pars, MWAWInputStreamPtr input, int id, MWAWEntry entry, ZWrtText::TextCode type)
Definition: ZWrtText.cxx:174
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
Internal: the structures of a ZWrtText.
Definition: ZWrtText.cxx:59
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
a structure to store a field of a ZWrite file
Definition: ZWrtParser.hxx:56
shared_ptr< ZWrtTextInternal::State > m_state
the state
Definition: ZWrtText.hxx:126
bool createZones()
finds the different text zones
Definition: ZWrtText.cxx:305
bool getBool(MWAWInputStreamPtr &input, bool &val) const
returns the boolean corresponding to a field ( T or F )
Definition: ZWrtParser.cxx:964
int m_numPages
Definition: ZWrtText.cxx:159
SubDocument & operator=(SubDocument const &orig)
MWAWEntry m_pos
the field position in the rsrc data file
Definition: ZWrtParser.hxx:76
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ZWrtText.cxx:183
@ boldBit
Definition: MWAWFont.hxx:182
bool sendText(ZWrtTextInternal::Section const &zone, MWAWEntry const &entry)
try to send a section
Definition: ZWrtText.cxx:425
Font m_font
the font
Definition: ZWrtText.cxx:114
ZWrtText::TextCode m_type
the type of document
Definition: ZWrtText.cxx:197
HFZone m_header
the header zone
Definition: ZWrtText.cxx:164
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
int id() const
returns the id
Definition: MWAWEntry.hxx:153
bool getString(MWAWInputStreamPtr &input, std::string &str) const
returns the string corresponding to a field
Definition: ZWrtParser.cxx:928
the class to store a color
Definition: libmwaw_internal.hxx:182
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ZWrtText.cxx:931
Internal: struct used to store the font of a ZWrtText.
Definition: ZWrtText.cxx:62
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:495
bool readStyles(MWAWEntry const &entry)
read the styles
Definition: ZWrtText.cxx:640
MWAWParserStatePtr m_parserState
the parser state
Definition: ZWrtText.hxx:123
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
virtual ~ZWrtText()
destructor
Definition: ZWrtText.cxx:246
Font()
constructor
Definition: ZWrtText.cxx:64
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
int m_id
the section id
Definition: ZWrtText.cxx:127
ZWrtText * m_textParser
the text parser
Definition: ZWrtText.cxx:193
std::map< long, Font > m_idFontMap
a map pos -> font
Definition: ZWrtText.cxx:133
@ Simple
Definition: MWAWFont.hxx:49
Section()
constructor
Definition: ZWrtText.cxx:123
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
std::string getDebugString(MWAWFontConverterPtr &convert) const
operator<<
Definition: ZWrtText.cxx:100
the main class to read a ZWrite file
Definition: ZWrtParser.hxx:82
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
int m_version
the file version
Definition: ZWrtText.cxx:158
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
bool m_parsed
true if the section is parsed
Definition: ZWrtText.cxx:135
std::string m_name
the section name
Definition: ZWrtText.cxx:131
@ PageCount
Definition: libmwaw_internal.hxx:371
@ Link
Definition: ZWrtText.hxx:76
int numPages() const
returns the number of pages
Definition: ZWrtText.cxx:256
@ Date
Definition: libmwaw_internal.hxx:371
SubDocument(SubDocument const &orig)
TextCode
the list of code in the text
Definition: ZWrtText.hxx:76
bool sendMainText()
send a main zone
Definition: ZWrtText.cxx:551
State()
constructor
Definition: ZWrtText.cxx:142
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
bool getIntList(MWAWInputStreamPtr &input, std::vector< int > &val) const
returns a list of int corresponding to a field
Definition: ZWrtParser.cxx:1028
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWFont m_font
the font
Definition: ZWrtText.cxx:71
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
int version() const
returns the file version
Definition: ZWrtText.cxx:249
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ZWrtText.cxx:217
bool getInt(MWAWInputStreamPtr &input, int &val) const
returns the int corresponding to a field
Definition: ZWrtParser.cxx:985
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:142
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: ZWrtParser.cxx:153
bool getDebugString(MWAWInputStreamPtr &input, std::string &str) const
returns a debug string corresponding to a field ( replacing \n by ##[0d], ...)
Definition: ZWrtParser.cxx:946
virtual ~SubDocument()
destructor
Definition: ZWrtText.cxx:178
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
the main class to read the text part of ZWrite Text file
Definition: ZWrtText.hxx:59
Internal: struct used to store a section of a ZWrtText.
Definition: ZWrtText.cxx:121
MWAWEntry m_pos
the file pos
Definition: ZWrtText.cxx:199
void newPage(int number)
adds a new page
Definition: ZWrtParser.cxx:187
float size() const
returns the font size
Definition: MWAWFont.hxx:249
Internal: the subdocument of a ZWrtText.
Definition: ZWrtText.cxx:172
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
ZWrtText(ZWrtParser &parser)
constructor
Definition: ZWrtText.cxx:241
int m_id
the section id
Definition: ZWrtText.cxx:195
ZWrtText & operator=(ZWrtText const &orig)
bool hasHeaderFooter(bool header) const
returns true if there is a header/footer
Definition: ZWrtText.cxx:264
@ None
Definition: ZWrtText.hxx:76
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
std::map< int, Section > m_idSectionMap
a map id -> section
Definition: ZWrtText.cxx:162
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
TextCode isTextCode(MWAWInputStreamPtr &input, long endPos, MWAWEntry &dPos) const
check if a character after '<' corresponds to a text code
Definition: ZWrtText.cxx:365
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
@ Center
Definition: ZWrtText.hxx:76
bool getFieldList(MWAWEntry const &entry, std::vector< ZWField > &list)
returns a list of field
Definition: ZWrtParser.cxx:901
void computePositions()
compute the positions
Definition: ZWrtText.cxx:270
bool readSectionFonts(MWAWEntry const &entry)
read a section fonts
Definition: ZWrtText.cxx:569
ZWrtText(ZWrtText const &orig)
bool ok() const
returns true if the zone is not empty
Definition: ZWrtText.cxx:95
@ italicBit
Definition: MWAWFont.hxx:182
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ZWrtText.cxx:205
MWAWEntry m_pos
the text position
Definition: ZWrtText.cxx:129
std::string m_extra
extra data
Definition: ZWrtText.cxx:116
@ NewPage
Definition: ZWrtText.hxx:76
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
std::string m_extra
extra data
Definition: ZWrtText.cxx:75
int m_actualPage
Definition: ZWrtText.cxx:159
std::ostream & operator<<(std::ostream &o, Font const &font)
Definition: ZWrtText.cxx:78
bool sendHeaderFooter(bool header)
try to send the header/footer
Definition: ZWrtText.cxx:737
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
HFZone m_footer
the footer zone
Definition: ZWrtText.cxx:166
int m_height
the line height
Definition: ZWrtText.cxx:73
ZWrtParser * m_mainParser
the main parser;
Definition: ZWrtText.hxx:129
@ Tag
Definition: ZWrtText.hxx:76
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
HFZone()
constructor
Definition: ZWrtText.cxx:90
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: ZWrtText.cxx:78
Class to store font.
Definition: MWAWFont.hxx:44
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
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
Section & getSection(int id)
return a section for an id ( if it does not exists, create id )
Definition: ZWrtText.cxx:146
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWEntry m_pos
the text position
Definition: ZWrtText.cxx:112
Internal: the state of a ZWrtText.
Definition: ZWrtText.cxx:140
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
Internal: struct used to store a header/footer of a ZWrtText.
Definition: ZWrtText.cxx:88
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: ZWrtParser.cxx:158
bool readHFZone(MWAWEntry const &entry)
read the header/footer zone
Definition: ZWrtText.cxx:802
Generated on Wed Jun 17 2020 06:30:13 for libmwaw by
doxygen 1.8.18