Go to the documentation of this file.
131 void sendString(std::string
const &str)
const;
144 shared_ptr<DocMkrTextInternal::State>
m_state;
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
std::string m_name
the name
Definition: DocMkrText.cxx:146
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: DocMkrText.cxx:248
TOC()
constructor
Definition: DocMkrText.cxx:63
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: DocMkrParser.cxx:229
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
update the page span list
Definition: DocMkrText.cxx:334
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
shared_ptr< DocMkrTextInternal::State > m_state
the state
Definition: DocMkrText.hxx:144
int m_id
the subdocument id
Definition: DocMkrText.cxx:214
Zone()
constructor
Definition: DocMkrText.cxx:129
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
Zone & getZone(int id)
returns the zone corresponding to an id
Definition: DocMkrText.cxx:162
bool sendText(DocMkrTextInternal::Zone const &zone)
try to send the text corresponding to a zone
Definition: DocMkrText.cxx:485
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
bool sendFooter(int zId)
try to send a footer corresponding to a zone id
Definition: DocMkrText.cxx:877
@ boldBit
Definition: MWAWFont.hxx:182
Internal: the subdocument of a DocMkrText.
Definition: DocMkrText.cxx:186
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: DocMkrParser.cxx:224
State()
constructor
Definition: DocMkrText.cxx:158
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
TOC m_toc
the table of content
Definition: DocMkrText.cxx:180
@ CENTER
Definition: MWAWParagraph.hxx:48
int id() const
returns the id
Definition: MWAWEntry.hxx:153
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
the class to store a color
Definition: libmwaw_internal.hxx:182
void sendString(std::string const &str) const
send a string to the listener
Definition: DocMkrText.cxx:1013
SubDocument & operator=(SubDocument const &orig)
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
bool createZones()
finds the different text zones
Definition: DocMkrText.cxx:385
std::map< long, MWAWFont > m_posFontMap
the map of id -> font
Definition: DocMkrText.cxx:148
DocMkrText(DocMkrParser &parser)
constructor
Definition: DocMkrText.cxx:264
virtual ~DocMkrText()
destructor
Definition: DocMkrText.cxx:269
libmwaw::SubDocumentType m_type
the subdocument type
Definition: DocMkrText.cxx:218
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
SubDocument(DocMkrText &pars, MWAWInputStreamPtr input, std::string const &text, libmwaw::SubDocumentType type)
constructor for a comment zone
Definition: DocMkrText.cxx:193
MWAWParserStatePtr m_parserState
the parser state
Definition: DocMkrText.hxx:141
@ Simple
Definition: MWAWFont.hxx:49
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
bool readWindows(MWAWEntry const &entry)
try to read the windows information zone? ( resource Wndo )
Definition: DocMkrText.cxx:814
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:212
bool readStyles(MWAWEntry const &entry)
try to read the styles ( resource styl )
Definition: DocMkrText.cxx:628
void computeNumPages(DocMkrTextInternal::Zone const &zone) const
compute the number of page of a zone
Definition: DocMkrText.cxx:317
@ embossBit
Definition: MWAWFont.hxx:182
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:174
@ Date
Definition: libmwaw_internal.hxx:371
bool sendMainText()
send a main zone
Definition: DocMkrText.cxx:1022
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
int numChapters() const
returns the number of chapter
Definition: DocMkrText.cxx:297
SubDocumentType
Definition: libmwaw_internal.hxx:178
std::vector< std::string > m_textList
the toc texts
Definition: DocMkrText.cxx:74
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:252
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: DocMkrText.cxx:1038
std::string m_extra
extra data
Definition: MWAWFont.hxx:552
virtual ~SubDocument()
destructor
Definition: DocMkrText.cxx:197
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:87
@ shadowBit
Definition: MWAWFont.hxx:183
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
MWAWParagraph::Justification m_justify
the paragraph justification
Definition: DocMkrText.cxx:138
std::map< int, Zone > m_idZoneMap
the map of id -> text zone
Definition: DocMkrText.cxx:176
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
Internal: structure to store a the data of a DocMkrText Zone.
Definition: DocMkrText.cxx:127
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
int m_numPages
Definition: DocMkrText.cxx:172
std::string m_text
the string text
Definition: DocMkrText.cxx:216
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWColor m_backgroundColor
the background color
Definition: DocMkrText.cxx:140
Internal: the structures of a DocMkrText.
Definition: DocMkrText.cxx:58
MWAWEntry m_pos
the text entry
Definition: DocMkrText.cxx:136
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
DocMkrText & operator=(DocMkrText const &orig)
SubDocument(DocMkrText &pars, MWAWInputStreamPtr input, int id, libmwaw::SubDocumentType type)
constructor for a footer zone
Definition: DocMkrText.cxx:189
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
SubDocument(SubDocument const &orig)
bool sendTOC()
try to send a TOC zone
Definition: DocMkrText.cxx:698
Footer m_footer
the footer
Definition: DocMkrText.cxx:178
bool readFooter(MWAWEntry const &entry)
try to read the footer zone ( resource foot )
Definition: DocMkrText.cxx:951
@ italicBit
Definition: MWAWFont.hxx:182
int numPages() const
returns the number of pages
Definition: DocMkrText.cxx:279
int m_actualPage
Definition: DocMkrText.cxx:172
DocMkrParser * m_mainParser
the main parser;
Definition: DocMkrText.hxx:147
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: DocMkrText.cxx:224
Internal: structure to store a table of contents of a DocMkrText.
Definition: DocMkrText.cxx:61
@ JustificationRight
Definition: MWAWParagraph.hxx:88
bool sendPicture(int zId, int lId, double lineW)
try to send a picture knowing zId and local id
Definition: DocMkrParser.cxx:422
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:302
bool m_parsed
a flag to know if we have send the data to the listener
Definition: DocMkrText.cxx:152
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
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
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
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
int version() const
returns the file version
Definition: DocMkrText.cxx:272
Internal: the state of a DocMkrText.
Definition: DocMkrText.cxx:156
int m_numPages
the number of page
Definition: DocMkrText.cxx:150
@ RIGHT
Definition: MWAWParagraph.hxx:48
bool empty() const
returns true if the table is empty
Definition: DocMkrText.cxx:67
Class to store font.
Definition: MWAWFont.hxx:44
bool readTOC(MWAWEntry const &entry)
try to read a TOC zone? ( resource cnt# )
Definition: DocMkrText.cxx:752
@ Title
Definition: libmwaw_internal.hxx:371
bool m_useFooter
print or ignore the footer
Definition: DocMkrText.cxx:142
DocMkrText(DocMkrText const &orig)
std::vector< int > m_cIdList
the toc chapter id
Definition: DocMkrText.cxx:72
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 setPageNumber(const int pageNumber)
set the page number
Definition: MWAWPageSpan.hxx:257
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
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
int m_margins[4]
the margins L,T,R,B in points
Definition: DocMkrText.cxx:144
void newPage(int number)
adds a new page
Definition: DocMkrParser.cxx:237
int m_version
the file version
Definition: DocMkrText.cxx:170
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
bool readFontNames(MWAWEntry const &entry)
try to read the font name ( resource rQDF )
Definition: DocMkrText.cxx:556
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: DocMkrText.cxx:202
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18