Go to the documentation of this file.
131 void sendString(std::string
const &str)
const;
144 std::shared_ptr<DocMkrTextInternal::State>
m_state;
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: DocMkrText.cxx:245
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
@ Time
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::string m_name
the name
Definition: DocMkrText.cxx:158
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
TOC()
constructor
Definition: DocMkrText.cxx:63
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: DocMkrParser.cxx:240
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
update the page span list
Definition: DocMkrText.cxx:357
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
int m_id
the subdocument id
Definition: DocMkrText.cxx:235
Zone()
constructor
Definition: DocMkrText.cxx:135
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
Zone & getZone(int id)
returns the zone corresponding to an id
Definition: DocMkrText.cxx:181
bool sendText(DocMkrTextInternal::Zone const &zone)
try to send the text corresponding to a zone
Definition: DocMkrText.cxx:505
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
DocMkrText(DocMkrText const &orig)=delete
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
bool sendFooter(int zId)
try to send a footer corresponding to a zone id
Definition: DocMkrText.cxx:894
@ boldBit
Definition: MWAWFont.hxx:190
Internal: the subdocument of a DocMkrText.
Definition: DocMkrText.cxx:205
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: DocMkrParser.cxx:235
State()
constructor
Definition: DocMkrText.cxx:170
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
TOC m_toc
the table of content
Definition: DocMkrText.cxx:199
@ CENTER
Definition: MWAWParagraph.hxx:48
int id() const
returns the id
Definition: MWAWEntry.hxx:164
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
the class to store a color
Definition: libmwaw_internal.hxx:192
void sendString(std::string const &str) const
send a string to the listener
Definition: DocMkrText.cxx:1029
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
bool createZones()
finds the different text zones
Definition: DocMkrText.cxx:406
std::map< long, MWAWFont > m_posFontMap
the map of id -> font
Definition: DocMkrText.cxx:160
DocMkrText(DocMkrParser &parser)
constructor
Definition: DocMkrText.cxx:285
virtual ~DocMkrText()
destructor
Definition: DocMkrText.cxx:292
libmwaw::SubDocumentType m_type
the subdocument type
Definition: DocMkrText.cxx:239
SubDocument(DocMkrText &pars, MWAWInputStreamPtr const &input, int id, libmwaw::SubDocumentType type)
constructor for a footer zone
Definition: DocMkrText.cxx:208
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWParserStatePtr m_parserState
the parser state
Definition: DocMkrText.hxx:141
@ Simple
Definition: MWAWFont.hxx:49
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
bool readWindows(MWAWEntry const &entry)
try to read the windows information zone? ( resource Wndo )
Definition: DocMkrText.cxx:833
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
DocMkrText * m_textParser
the text parser
Definition: DocMkrText.cxx:233
bool readStyles(MWAWEntry const &entry)
try to read the styles ( resource styl )
Definition: DocMkrText.cxx:648
void computeNumPages(DocMkrTextInternal::Zone const &zone) const
compute the number of page of a zone
Definition: DocMkrText.cxx:340
@ embossBit
Definition: MWAWFont.hxx:190
the main class to read a DocMake file
Definition: DocMkrParser.hxx:57
double m_pageWidth
the page width ( not really define so default value 8.5)
Definition: DocMkrText.cxx:193
@ Date
Definition: libmwaw_internal.hxx:401
bool sendMainText()
send a main zone
Definition: DocMkrText.cxx:1038
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
int numChapters() const
returns the number of chapter
Definition: DocMkrText.cxx:320
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::vector< std::string > m_textList
the toc texts
Definition: DocMkrText.cxx:76
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:258
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: DocMkrText.cxx:1053
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
SubDocument & operator=(SubDocument const &orig)=delete
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: DocMkrText.cxx:150
std::map< int, Zone > m_idZoneMap
the map of id -> text zone
Definition: DocMkrText.cxx:195
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
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
Internal: structure to store a the data of a DocMkrText Zone.
Definition: DocMkrText.cxx:133
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
int m_numPages
Definition: DocMkrText.cxx:191
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
std::string m_text
the string text
Definition: DocMkrText.cxx:237
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWColor m_backgroundColor
the background color
Definition: DocMkrText.cxx:152
Internal: the structures of a DocMkrText.
Definition: DocMkrText.cxx:58
MWAWEntry m_pos
the text entry
Definition: DocMkrText.cxx:148
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
SubDocument(SubDocument const &orig)=delete
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
~SubDocument() final
destructor
Definition: DocMkrText.cxx:224
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
DocMkrText & operator=(DocMkrText const &orig)=delete
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
bool sendTOC()
try to send a TOC zone
Definition: DocMkrText.cxx:717
Footer m_footer
the footer
Definition: DocMkrText.cxx:197
bool readFooter(MWAWEntry const &entry)
try to read the footer zone ( resource foot )
Definition: DocMkrText.cxx:968
@ italicBit
Definition: MWAWFont.hxx:190
int numPages() const
returns the number of pages
Definition: DocMkrText.cxx:303
int m_actualPage
Definition: DocMkrText.cxx:191
DocMkrParser * m_mainParser
the main parser;
Definition: DocMkrText.hxx:147
Defines MWAWTextListener: the libmwaw word processor listener.
Internal: structure to store a table of contents of a DocMkrText.
Definition: DocMkrText.cxx:61
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
bool sendPicture(int zId, int lId, double lineW)
try to send a picture knowing zId and local id
Definition: DocMkrParser.cxx:430
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void sendComment(std::string const &str)
send a string as comment
Definition: DocMkrText.cxx:325
bool m_parsed
a flag to know if we have send the data to the listener
Definition: DocMkrText.cxx:164
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
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
the main class to read the text part of DocMaker file
Definition: DocMkrText.hxx:60
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
int version() const
returns the file version
Definition: DocMkrText.cxx:296
Internal: the state of a DocMkrText.
Definition: DocMkrText.cxx:168
int m_numPages
the number of page
Definition: DocMkrText.cxx:162
@ RIGHT
Definition: MWAWParagraph.hxx:48
bool empty() const
returns true if the table is empty
Definition: DocMkrText.cxx:69
Class to store font.
Definition: MWAWFont.hxx:44
bool readTOC(MWAWEntry const &entry)
try to read a TOC zone? ( resource cnt# )
Definition: DocMkrText.cxx:771
std::shared_ptr< DocMkrTextInternal::State > m_state
the state
Definition: DocMkrText.hxx:144
@ Title
Definition: libmwaw_internal.hxx:401
bool m_useFooter
print or ignore the footer
Definition: DocMkrText.cxx:154
std::vector< int > m_cIdList
the toc chapter id
Definition: DocMkrText.cxx:74
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:263
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: DocMkrText.cxx:269
int m_margins[4]
the margins L,T,R,B in points
Definition: DocMkrText.cxx:156
void newPage(int number)
adds a new page
Definition: DocMkrParser.cxx:248
int m_version
the file version
Definition: DocMkrText.cxx:189
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
bool readFontNames(MWAWEntry const &entry)
try to read the font name ( resource rQDF )
Definition: DocMkrText.cxx:576
SubDocument(DocMkrText &pars, MWAWInputStreamPtr const &input, std::string const &text, libmwaw::SubDocumentType type)
constructor for a comment zone
Definition: DocMkrText.cxx:216
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20