MoreText.hxx Source File documentation

MoreText.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33
34 /*
35 * Parser to More document
36 *
37 */
38 #ifndef MORE_TEXT
39 # define MORE_TEXT
40
41 #include <set>
42
43 #include "libmwaw_internal.hxx"
44 #include "MWAWDebug.hxx"
45
46 struct MWAWListLevel;
47
48 namespace MoreTextInternal
49 {
50 struct Outline;
51 struct Paragraph;
52 struct State;
53
54 class SubDocument;
55 }
56
57 class MoreParser;
58
64 class MoreText
65 {
66 friend class MoreParser;
67 friend class MoreTextInternal::SubDocument;
68 public:
70 explicit MoreText(MoreParser &parser);
72 virtual ~MoreText();
73
75 int version() const;
76
78 int numPages() const;
79
80 protected:
82 bool createZones();
84 bool sendMainText();
85
87 std::shared_ptr<MWAWSubDocument> getHeaderFooter(bool header);
88
89 //
90 // intermediate level
91 //
92
94 bool readTopic(MWAWEntry const &entry);
95
97 int getLastTopicChildId(int tId) const;
98
101 int checkTopicList(size_t tId, std::set<size_t> &parent);
102
104 bool readComment(MWAWEntry const &entry);
105
107 bool readSpeakerNote(MWAWEntry const &entry);
108
110 bool sendText(MWAWEntry const &entry, MWAWFont const &font);
111
113 bool sendComment(int cId);
114
116 bool sendSpeakerNote(int nId);
117
119 bool sendTopic(int tId, int dLevel, std::vector<MWAWParagraph> &paraStack);
120
122 bool readFonts(MWAWEntry const &entry);
123
125 bool readOutlineList(MWAWEntry const &entry);
126
128 bool readOutline(MWAWEntry const &entry, MoreTextInternal::Outline &outline);
129
134 bool readFont(MWAWEntry const &entry, std::string &fName, int &fId);
136 bool readTabs(MWAWEntry const &entry, MoreTextInternal::Paragraph &para, std::string &mess);
138 bool readCustomListLevel(MWAWEntry const &entry, MWAWListLevel &level);
139
141 bool parseUnknown(MWAWEntry const &entry, long fDecal);
142
143 private:
144 MoreText(MoreText const &orig) = delete;
145 MoreText &operator=(MoreText const &orig) = delete;
146
147 protected:
148 //
149 // data
150 //
152 MWAWParserStatePtr m_parserState;
153
155 std::shared_ptr<MoreTextInternal::State> m_state;
156
158 MoreParser *m_mainParser;
159 };
160 #endif
161 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
MoreText::sendTopic
bool sendTopic(int tId, int dLevel, std::vector< MWAWParagraph > &paraStack)
try to send a topic knowing the topic id
Definition: MoreText.cxx:922
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
MoreText::m_state
std::shared_ptr< MoreTextInternal::State > m_state
the state
Definition: MoreText.hxx:155
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MoreTextInternal::Topic::m_entry
MWAWEntry m_entry
the text entry
Definition: MoreText.cxx:387
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MoreText
the main class to read the text part of More Text file
Definition: MoreText.hxx:65
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MoreTextInternal::SubDocument::SubDocument
SubDocument(MoreText &pars, MWAWInputStreamPtr const &input, int zId, int what)
Definition: MoreText.cxx:447
MoreText::MoreText
MoreText(MoreText const &orig)=delete
MoreParser::readBackside
bool readBackside(long endPos, std::string &extra)
read a backside ( some sub zone of block 9)
Definition: MoreParser.cxx:1102
MoreTextInternal::Topic::m_extra
std::string m_extra
extra data
Definition: MoreText.cxx:403
MoreText::getLastTopicChildId
int getLastTopicChildId(int tId) const
returns the last sub topic id corresponding to a topic and its child
Definition: MoreText.cxx:653
MoreTextInternal::State::m_actualComment
int m_actualComment
the actual comment
Definition: MoreText.cxx:434
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MoreTextInternal::Topic::m_cloneId
int m_cloneId
if not 0, indicate that we must cloned the cloneId^th clone
Definition: MoreText.cxx:393
MWAWListLevel::m_suffix
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:113
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MoreTextInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MoreTextInternal::OutlineMod::m_unknowns
int m_unknowns[2]
some unknown flags
Definition: MoreText.cxx:322
MoreTextInternal::State::m_outlineList
std::vector< Outline > m_outlineList
the outline list
Definition: MoreText.cxx:432
MoreTextInternal::State::m_topicList
std::vector< Topic > m_topicList
the topic list
Definition: MoreText.cxx:426
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
MoreTextInternal::SubDocument::m_textParser
MoreText * m_textParser
the text parser
Definition: MoreText.cxx:466
MWAWFont::id
int id() const
returns the font id
Definition: MWAWFont.hxx:259
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MoreText::getHeaderFooter
std::shared_ptr< MWAWSubDocument > getHeaderFooter(bool header)
returns a subdocument to send the header or the footer
Definition: MoreText.cxx:549
MoreTextInternal
Internal: the structures of a MoreText.
Definition: MoreText.cxx:61
MoreText::readTabs
bool readTabs(MWAWEntry const &entry, MoreTextInternal::Paragraph &para, std::string &mess)
try to read some tabs
Definition: MoreText.cxx:2022
MWAWParagraph::m_listLevelIndex
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:174
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MoreParser
the main class to read a More file
Definition: MoreParser.hxx:81
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MWAWListLevel::LOWER_ALPHA
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
MoreTextInternal::Topic::m_attachList
int m_attachList[3]
a list of id to retrieve the attachment
Definition: MoreText.cxx:397
MoreTextInternal::Paragraph::Paragraph
Paragraph()
constructor
Definition: MoreText.cxx:66
MoreTextInternal::Paragraph::m_keepOutlineTogether
bool m_keepOutlineTogether
true if we need to keep outline together
Definition: MoreText.cxx:183
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWFont::outlineBit
@ outlineBit
Definition: MWAWFont.hxx:191
MoreTextInternal::Paragraph::m_pageBreak
bool m_pageBreak
true if we need to add a page break before
Definition: MoreText.cxx:181
MoreTextInternal::OutlineMod::m_extra
std::string m_extra
extra data
Definition: MoreText.cxx:324
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MoreTextInternal::Paragraph::m_marginsFromParent
double m_marginsFromParent[2]
the left and right margins from parent in inches
Definition: MoreText.cxx:175
MWAWParagraph::m_listLevel
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
MWAWListManager::getNewList
std::shared_ptr< MWAWList > getNewList(std::shared_ptr< MWAWList > actList, int levl, MWAWListLevel const &level)
returns a new list corresponding to a list where we have a new level
Definition: MWAWList.cxx:404
MoreText::numPages
int numPages() const
returns the number of pages
Definition: MoreText.cxx:539
MoreTextInternal::OutlineMod::OutlineMod
OutlineMod()
constructor
Definition: MoreText.cxx:210
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWListLevel::UPPER_ALPHA
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
MoreTextInternal::Paragraph::setRightMargin
void setRightMargin(double margin, bool fromParent)
set the right margin in inch
Definition: MoreText.cxx:93
MoreStruct::Pattern
Definition: MoreParser.hxx:59
MoreTextInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: MoreText.cxx:456
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MoreTextInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: MoreText.cxx:468
MoreTextInternal::Topic::m_level
int m_level
the topic level
Definition: MoreText.cxx:389
MoreTextInternal::Topic::AOutline
@ AOutline
Definition: MoreText.cxx:352
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWFont::Line::isSet
bool isSet() const
return true if the line is not empty
Definition: MWAWFont.hxx:62
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
MoreTextInternal::Paragraph::m_customListLevel
MWAWListLevel m_customListLevel
a custom list level ( only defined if m_listType>=0xb)
Definition: MoreText.cxx:179
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MoreTextInternal::SubDocument
Internal: the subdocument of a MoreText.
Definition: MoreText.cxx:445
MoreParser::newPage
void newPage(int number)
adds a new page
Definition: MoreParser.cxx:220
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
MoreTextInternal::Comment::m_extra
std::string m_extra
extra data
Definition: MoreText.cxx:345
MoreText::readOutline
bool readOutline(MWAWEntry const &entry, MoreTextInternal::Outline &outline)
read a outline
Definition: MoreText.cxx:1522
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MoreTextInternal::State::m_numPages
int m_numPages
Definition: MoreText.cxx:439
MoreTextInternal::State::m_commentList
std::vector< Comment > m_commentList
the header/footer/comment list
Definition: MoreText.cxx:428
MoreTextInternal::Topic::m_numPageBreak
int m_numPageBreak
the number of pages in the sub list
Definition: MoreText.cxx:399
MoreText::checkTopicList
int checkTopicList(size_t tId, std::set< size_t > &parent)
check that the topic and its child does not loop (if so, cut some edge), return the number of breakpa...
Definition: MoreText.cxx:667
MWAWSubDocument.hxx
MoreText::readFont
bool readFont(MWAWEntry const &entry, std::string &fName, int &fId)
try to read a fontname
Definition: MoreText.cxx:1870
MoreTextInternal::State::m_actualSpeaker
int m_actualSpeaker
the actual speaker note
Definition: MoreText.cxx:436
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWParagraph::AtLeast
@ AtLeast
Definition: MWAWParagraph.hxx:94
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MoreText::parseUnknown
bool parseUnknown(MWAWEntry const &entry, long fDecal)
try to read either a font, a fontname, a pattern, a int
Definition: MoreText.cxx:2098
MWAWFont::Line::None
@ None
Definition: MWAWFont.hxx:49
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParagraph.hxx
MWAWListLevel::UPPER_ROMAN
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWRSRCParser.hxx
MWAWFont::getColor
void getColor(MWAWColor &c) const
returns the font color
Definition: MWAWFont.hxx:336
libmwaw::Debug::dumpFile
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
libmwaw_internal.hxx
MWAWPosition.hxx
MoreTextInternal::State::State
State()
constructor
Definition: MoreText.cxx:410
MoreParser::readPattern
bool readPattern(long endPos, MoreStruct::Pattern &pattern)
read a pattern ( some sub zone of block 9)
Definition: MoreParser.cxx:1148
MoreTextInternal::Topic::AttachementType
AttachementType
an enum used to define the different type of data attached to a topic
Definition: MoreText.cxx:352
MoreText::~MoreText
virtual ~MoreText()
destructor
Definition: MoreText.cxx:528
MoreParser::checkAndFindSize
bool checkAndFindSize(MWAWEntry &entry)
check if the entry is valid defined by the begin pos points to a zone: dataSz data
Definition: MoreParser.cxx:201
MoreText::readSpeakerNote
bool readSpeakerNote(MWAWEntry const &entry)
read the list of speaker note
Definition: MoreText.cxx:830
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MoreTextInternal::OutlineMod::operator<<
friend std::ostream & operator<<(std::ostream &o, OutlineMod const &head)
operator<<
Definition: MoreText.cxx:236
MoreText.hxx
MoreParser.hxx
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MoreTextInternal::State::m_actualOutline
int m_actualOutline
the actual outline
Definition: MoreText.cxx:438
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPictData.hxx
MoreTextInternal::Topic::m_isCloned
bool m_isCloned
true if the entry is cloned
Definition: MoreText.cxx:391
MoreTextInternal::Paragraph::Paragraph
Paragraph(Paragraph const &)=default
MoreTextInternal::Outline::Outline
Outline()
constructor
Definition: MoreText.cxx:194
MWAWFont::size
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MoreText::readTopic
bool readTopic(MWAWEntry const &entry)
read the list of topic positions
Definition: MoreText.cxx:708
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MoreTextInternal::Paragraph::operator=
Paragraph & operator=(Paragraph const &)=default
MWAWListLevel::LOWER_ROMAN
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MoreTextInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MoreText.cxx:476
MoreTextInternal::Paragraph::~Paragraph
~Paragraph() final
destructor
Definition: MoreText.cxx:186
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
MWAWTabStop::m_decimalCharacter
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
MWAWParagraph::JustificationLeft
@ JustificationLeft
Definition: MWAWParagraph.hxx:90
MoreTextInternal::Outline
Internal: the outline data of a MoreText.
Definition: MoreText.cxx:192
MoreTextInternal::Outline::m_paragraphs
Paragraph m_paragraphs[4]
the paragraphs : organizer, slide, tree, unknowns
Definition: MoreText.cxx:201
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
MoreTextInternal::Comment
Internal: the comment data of a MoreText.
Definition: MoreText.cxx:329
MWAWListLevel::LABEL
@ LABEL
Definition: MWAWList.hxx:47
MoreTextInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
MoreTextInternal::Topic
Internal: the topic data of a MoreText.
Definition: MoreText.cxx:350
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWListLevel::m_bullet
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
MWAWList.hxx
MoreTextInternal::SubDocument::m_what
int m_what
a int to know what to send 0: header/footer, 1: comment, 2:note
Definition: MoreText.cxx:470
MWAWListLevel::DECIMAL
@ DECIMAL
Definition: MWAWList.hxx:46
MoreTextInternal::State::m_speakerList
std::vector< MWAWEntry > m_speakerList
the speaker note list
Definition: MoreText.cxx:430
MoreText::sendSpeakerNote
bool sendSpeakerNote(int nId)
try to send a speakernote knowing the note id
Definition: MoreText.cxx:908
MoreText::sendComment
bool sendComment(int cId)
try to send a comment knowing the comment id
Definition: MoreText.cxx:894
MoreText::sendText
bool sendText(MWAWEntry const &entry, MWAWFont const &font)
send a text entry
Definition: MoreText.cxx:1011
MoreTextInternal::Topic::ASpeakerNote
@ ASpeakerNote
Definition: MoreText.cxx:352
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWPageSpan.hxx
MoreText::readFonts
bool readFonts(MWAWEntry const &entry)
read the list of fonts
Definition: MoreText.cxx:1412
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
MoreTextInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MoreText.cxx:507
MoreText::sendMainText
bool sendMainText()
send a main zone
Definition: MoreText.cxx:867
MWAWListLevel::BULLET
@ BULLET
Definition: MWAWList.hxx:46
MoreText::readCustomListLevel
bool readCustomListLevel(MWAWEntry const &entry, MWAWListLevel &level)
read a custom list level
Definition: MoreText.cxx:1900
MWAWListLevel::m_label
librevenge::RVNGString m_label
the text label
Definition: MWAWList.hxx:111
MoreTextInternal::Topic::m_hasList
bool m_hasList[3]
a list of boolean use to note if a topic is associated with a Outline, ...
Definition: MoreText.cxx:395
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWListLevel::m_labelWidth
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:105
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MoreTextInternal::Paragraph
Internal: the paragraph of a MoreText.
Definition: MoreText.cxx:64
MoreTextInternal::Paragraph::updateToFinalState
void updateToFinalState(MWAWParagraph const &parent, int level, MWAWListManager &listManager)
update the paragraph to obtain the final paragraph
Definition: MoreText.cxx:105
MoreTextInternal::Comment::Comment
Comment()
constructor
Definition: MoreText.cxx:331
MWAWListLevel
small structure to keep information about a list level
Definition: MWAWList.hxx:44
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MoreTextInternal::State
Internal: the state of a MoreText.
Definition: MoreText.cxx:408
MWAWListLevel::m_type
Type m_type
the type of the level
Definition: MWAWList.hxx:101
MoreTextInternal::Topic::m_isStartSlide
bool m_isStartSlide
true if we start a new slide
Definition: MoreText.cxx:401
MoreTextInternal::Topic::AComment
@ AComment
Definition: MoreText.cxx:352
MoreTextInternal::OutlineMod
Internal and low level: the outline modifier header of a MoreText.
Definition: MoreText.cxx:208
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWVariable::get
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
MWAWFont::getUnderline
Line const & getUnderline() const
returns the underline
Definition: MWAWFont.hxx:456
MWAWListLevel::m_extra
std::string m_extra
extra data
Definition: MWAWList.hxx:118
MoreTextInternal::Outline::m_fonts
MWAWFont m_fonts[4]
the fonts : organizer, slide, tree unknowns
Definition: MoreText.cxx:203
MoreTextInternal::Topic::operator<<
friend std::ostream & operator<<(std::ostream &o, Topic const &topic)
operator<<
Definition: MoreText.cxx:367
MWAWListLevel::m_numBeforeLabels
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:103
MoreText::createZones
bool createZones()
try to create the text zones using read data
Definition: MoreText.cxx:573
MoreText::readOutlineList
bool readOutlineList(MWAWEntry const &entry)
read the list of outlines
Definition: MoreText.cxx:1472
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
MoreTextInternal::OutlineMod::m_flags
int m_flags
the flag
Definition: MoreText.cxx:318
MoreTextInternal::Comment::operator<<
friend std::ostream & operator<<(std::ostream &o, Comment const &comment)
operator<<
Definition: MoreText.cxx:337
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
MWAWListManager
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:216
MoreTextInternal::State::m_version
int m_version
the file version
Definition: MoreText.cxx:424
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
MWAWFont::flags
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:320
MoreText::m_mainParser
MoreParser * m_mainParser
the main parser;
Definition: MoreText.hxx:158
MoreText::readComment
bool readComment(MWAWEntry const &entry)
read the list of comment/header/footer zones
Definition: MoreText.cxx:782
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MoreTextInternal::OutlineMod::m_type
int m_type
the type
Definition: MoreText.cxx:316
MoreText::MoreText
MoreText(MoreParser &parser)
constructor
Definition: MoreText.cxx:521
MWAWListLevel::m_prefix
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:112
MWAWField::Title
@ Title
Definition: libmwaw_internal.hxx:401
MoreTextInternal::Topic::Topic
Topic()
constructor
Definition: MoreText.cxx:354
MoreText::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MoreText.hxx:152
MWAWParagraph::m_listId
MWAWVariable< int > m_listId
the list id (if know )
Definition: MWAWParagraph.hxx:176
MoreTextInternal::Paragraph::m_listType
int m_listType
the list type (0: none, 1: leader, ...)
Definition: MoreText.cxx:177
MoreText::operator=
MoreText & operator=(MoreText const &orig)=delete
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParagraph::NoBreakWithNextBit
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:88
MoreTextInternal::Comment::m_entry
MWAWEntry m_entry
the text entry
Definition: MoreText.cxx:343
MWAWFont::setUnderlineStyle
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
MoreTextInternal::OutlineMod::getModId
int getModId() const
returns the data id to change in Outline
Definition: MoreText.cxx:219
MWAWListManager::getList
std::shared_ptr< MWAWList > getList(int index) const
returns a list with given index ( if found )
Definition: MWAWList.cxx:391
MoreTextInternal::State::m_actualPage
int m_actualPage
Definition: MoreText.cxx:439
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
MoreTextInternal::Paragraph::setLeftMargin
void setLeftMargin(double margin, bool fromParent)
set the left margin in inch
Definition: MoreText.cxx:81
MoreText::version
int version() const
returns the file version
Definition: MoreText.cxx:532
MoreTextInternal::OutlineMod::m_entry
MWAWEntry m_entry
the data entry
Definition: MoreText.cxx:320