MsWrd1Parser.hxx Source File documentation

MsWrd1Parser.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 #ifndef MS_WRD1_PARSER
35 # define MS_WRD1_PARSER
36
37 #include <vector>
38
39 #include "MWAWDebug.hxx"
40 #include "MWAWInputStream.hxx"
41
42 #include "MWAWParser.hxx"
43
44 namespace MsWrd1ParserInternal
45 {
46 struct Font;
47 struct Paragraph;
48 struct State;
49 class SubDocument;
50 }
51
57 class MsWrd1Parser final : public MWAWTextParser
58 {
59 friend class MsWrd1ParserInternal::SubDocument;
60 public:
62 MsWrd1Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
64 ~MsWrd1Parser() final;
65
67 bool checkHeader(MWAWHeader *header, bool strict=false) final;
68
69 // the main parse function
70 void parse(librevenge::RVNGTextInterface *documentInterface) final;
71
72 protected:
74 void init();
75
77 void createDocument(librevenge::RVNGTextInterface *documentInterface);
78
80 void sendMain();
81
83 void newPage(int number);
84
86 bool createZones();
87
89 bool sendText(MWAWEntry const &entry, bool main=false);
90
91 //
92 // internal level
93 //
94
96 bool readFont(long fPos, MsWrd1ParserInternal::Font &font);
97
99 bool readParagraph(long fPos, MsWrd1ParserInternal::Paragraph &para);
100
102 bool readFootnoteCorrespondance(MWAWVec2i limit);
103
105 bool readDocInfo(MWAWVec2i limit);
107 bool readZones(MWAWVec2i limit);
109 bool readPageBreak(MWAWVec2i limit);
110
112 bool prepareTextZones();
113
114 //
115 // low level
116 //
117
119 void removeLastCharIfEOL(MWAWEntry &entry);
121 bool readPLC(MWAWVec2i limits, int wh);
122
124 void setProperty(MsWrd1ParserInternal::Paragraph const &para);
125
126
127 protected:
128 //
129 // data
130 //
132 std::shared_ptr<MsWrd1ParserInternal::State> m_state;
133 };
134 #endif
135 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MsWrd1ParserInternal::State::m_columnsSep
float m_columnsSep
the column separator
Definition: MsWrd1Parser.cxx:220
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
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWTextParser
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MWAWNote
a note
Definition: libmwaw_internal.hxx:445
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MsWrd1ParserInternal::Font::operator<<
friend std::ostream & operator<<(std::ostream &o, Font const &ft)
operator<<
Definition: MsWrd1Parser.cxx:137
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MsWrd1ParserInternal::UNKNOWN
@ UNKNOWN
Definition: MsWrd1Parser.cxx:65
MsWrd1Parser::newPage
void newPage(int number)
adds a new page
Definition: MsWrd1Parser.cxx:322
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MsWrd1Parser::sendText
bool sendText(MWAWEntry const &entry, bool main=false)
send the text structure to the listener
Definition: MsWrd1Parser.cxx:1222
MsWrd1ParserInternal::State::m_mainTextZonesList
std::vector< int > m_mainTextZonesList
the list of main text zones
Definition: MsWrd1Parser.cxx:226
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
MsWrd1ParserInternal::Paragraph
Internal: the paragraph of a MsWrd1Parser.
Definition: MsWrd1Parser.cxx:146
MsWrd1ParserInternal::State::m_numColumns
int m_numColumns
the number of columns
Definition: MsWrd1Parser.cxx:218
MsWrd1ParserInternal::PLC::m_id
int m_id
the id
Definition: MsWrd1Parser.cxx:81
MWAWFont::Script::sub100
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MWAWTextListener
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
MsWrd1Parser
the main class to read a Microsoft Word 1 file
Definition: MsWrd1Parser.hxx:58
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MsWrd1ParserInternal::Paragraph::operator<<
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ft)
operator<<
Definition: MsWrd1Parser.cxx:171
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MsWrd1Parser::readPageBreak
bool readPageBreak(MWAWVec2i limit)
try to read the page break (zone 5)
Definition: MsWrd1Parser.cxx:829
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
MWAWFontConverter.hxx
MsWrd1ParserInternal::State::State
State()
constructor
Definition: MsWrd1Parser.cxx:196
MsWrd1ParserInternal::PLC::operator<<
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: MsWrd1Parser.cxx:86
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
MWAWSection::setColumns
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
MsWrd1ParserInternal::PLC
Internal: class to store the PLC: Pointer List Content ?
Definition: MsWrd1Parser.cxx:68
MsWrd1ParserInternal::State::m_eot
long m_eot
end of text
Definition: MsWrd1Parser.cxx:216
MWAWPrinter.hxx
MsWrd1Parser::readParagraph
bool readParagraph(long fPos, MsWrd1ParserInternal::Paragraph &para)
try to read a paragraph property
Definition: MsWrd1Parser.cxx:698
MsWrd1ParserInternal::Paragraph::operator=
Paragraph & operator=(Paragraph const &)=default
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
MsWrd1ParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: MsWrd1Parser.cxx:257
MWAWParser::getTextListener
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
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
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
MsWrd1ParserInternal::Paragraph::m_type
int m_type
the initial type
Definition: MsWrd1Parser.cxx:162
MsWrd1Parser::setProperty
void setProperty(MsWrd1ParserInternal::Paragraph const &para)
send the ruler properties
Definition: MsWrd1Parser.cxx:1352
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MsWrd1ParserInternal
Internal: the structures of a MsWrd1Parser.
Definition: MsWrd1Parser.cxx:56
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWFont::uppercaseBit
@ uppercaseBit
Definition: MWAWFont.hxx:192
MsWrd1Parser::MsWrd1Parser
MsWrd1Parser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MsWrd1Parser.cxx:297
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MWAWVariable::isSet
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
MsWrd1ParserInternal::PLC::m_extras
std::string m_extras
a string used to store the parsing extrass
Definition: MsWrd1Parser.cxx:83
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MsWrd1ParserInternal::SubDocument::SubDocument
SubDocument(MsWrd1Parser &pars, MWAWInputStreamPtr const &input, MWAWEntry const &position)
constructor for footnote, header
Definition: MsWrd1Parser.cxx:251
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MsWrd1Parser::prepareTextZones
bool prepareTextZones()
prepare the data: separate header/footer zones to the main stream...
Definition: MsWrd1Parser.cxx:532
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWDocument::MWAW_T_MICROSOFTWORD
@ MWAW_T_MICROSOFTWORD
Microsoft Word (v1-v5)
Definition: MWAWDocument.hxx:132
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParser::setTextListener
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
MsWrd1ParserInternal::State::m_plcMap
std::multimap< long, PLC > m_plcMap
the text correspondance zone ( filepos, plc )
Definition: MsWrd1Parser.cxx:236
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
MsWrd1Parser::m_state
std::shared_ptr< MsWrd1ParserInternal::State > m_state
the state
Definition: MsWrd1Parser.hxx:132
MsWrd1ParserInternal::State::m_paragraphsList
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: MsWrd1Parser.cxx:230
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
MsWrd1ParserInternal::operator<<
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: MsWrd1Parser.cxx:86
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MsWrd1ParserInternal::Paragraph::operator=
Paragraph & operator=(Paragraph &&)=default
MsWrd1ParserInternal::State::m_headersId
std::vector< int > m_headersId
the list of header id which corresponds to each page
Definition: MsWrd1Parser.cxx:240
MsWrd1ParserInternal::Paragraph::Paragraph
Paragraph()
constructor
Definition: MsWrd1Parser.cxx:148
MsWrd1Parser::createZones
bool createZones()
finds the different zones
Definition: MsWrd1Parser.cxx:471
MsWrd1Parser::~MsWrd1Parser
~MsWrd1Parser() final
destructor
Definition: MsWrd1Parser.cxx:304
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
MsWrd1ParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MsWrd1Parser.cxx:271
MsWrd1Parser::createDocument
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWrd1Parser.cxx:395
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2< int >
MWAWPictMac.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:46
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
MsWrd1ParserInternal::RULER
@ RULER
Definition: MsWrd1Parser.cxx:65
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
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
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MsWrd1ParserInternal::ZONE
@ ZONE
Definition: MsWrd1Parser.cxx:65
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MsWrd1ParserInternal::Font::Font
Font()
constructor
Definition: MsWrd1Parser.cxx:121
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MsWrd1ParserInternal::PAGE
@ PAGE
Definition: MsWrd1Parser.cxx:65
MsWrd1ParserInternal::Font::m_font
MWAWFont m_font
the basic font property
Definition: MsWrd1Parser.cxx:130
MWAWSubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
comparison operator!=
Definition: MWAWSubDocument.cxx:49
MsWrd1Parser::parse
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: MsWrd1Parser.cxx:348
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
MsWrd1ParserInternal::Paragraph::m_type2
int m_type2
another type
Definition: MsWrd1Parser.cxx:164
MsWrd1ParserInternal::FOOTNOTE
@ FOOTNOTE
Definition: MsWrd1Parser.cxx:65
MsWrd1Parser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MsWrd1Parser.cxx:1363
MsWrd1ParserInternal::Font::m_extras
std::string m_extras
a string used to store the parsing extrass
Definition: MsWrd1Parser.cxx:134
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MsWrd1Parser::readPLC
bool readPLC(MWAWVec2i limits, int wh)
read the two first zones (char and paragraph)
Definition: MsWrd1Parser.cxx:1119
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
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
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
MsWrd1ParserInternal::State::m_footnotesList
std::vector< MWAWVec2l > m_footnotesList
the footnote positions ( list of beginPos, endPos)
Definition: MsWrd1Parser.cxx:234
MsWrd1ParserInternal::FONT
@ FONT
Definition: MsWrd1Parser.cxx:65
MsWrd1Parser::removeLastCharIfEOL
void removeLastCharIfEOL(MWAWEntry &entry)
shorten an entry if the last character is EOL
Definition: MsWrd1Parser.cxx:335
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MsWrd1Parser::readFootnoteCorrespondance
bool readFootnoteCorrespondance(MWAWVec2i limit)
try to read the footnote correspondance ( zone2 )
Definition: MsWrd1Parser.cxx:874
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
MsWrd1ParserInternal::Paragraph::~Paragraph
~Paragraph() final
destructor
Definition: MsWrd1Parser.cxx:167
MWAWVec2l
MWAWVec2< long > MWAWVec2l
MWAWVec2 of long.
Definition: libmwaw_internal.hxx:840
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWSection.hxx
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MsWrd1ParserInternal::State::m_fontsList
std::vector< Font > m_fontsList
the list of fonts
Definition: MsWrd1Parser.cxx:228
MsWrd1Parser::readZones
bool readZones(MWAWVec2i limit)
try to read the list of zones: separator between text and footnote? (zone 4)
Definition: MsWrd1Parser.cxx:935
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
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
MsWrd1ParserInternal::Font::m_type
int m_type
a unknown int, maybe 0x80 means defined font
Definition: MsWrd1Parser.cxx:132
MsWrd1ParserInternal::SubDocument
Internal: the subdocument of a MsWrdParser.
Definition: MsWrd1Parser.cxx:248
MsWrd1ParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MsWrd1Parser.cxx:260
MsWrd1Parser::readFont
bool readFont(long fPos, MsWrd1ParserInternal::Font &font)
try to read a char property
Definition: MsWrd1Parser.cxx:634
MsWrd1ParserInternal::PLC::PLC
PLC(PLCType type=UNKNOWN)
constructor
Definition: MsWrd1Parser.cxx:70
MWAWNote::FootNote
@ FootNote
Definition: libmwaw_internal.hxx:447
MWAWInputStream.hxx
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MsWrd1ParserInternal::State
Internal: the state of a MsWrd1Parser.
Definition: MsWrd1Parser.cxx:194
MWAWFont.hxx
librevenge
Definition: MWAWDocument.hxx:57
MsWrd1Parser.hxx
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MsWrd1ParserInternal::PLCType
PLCType
different types
Definition: MsWrd1Parser.cxx:65
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MsWrd1ParserInternal::State::m_footersId
std::vector< int > m_footersId
the list of footer id which corresponds to each page
Definition: MsWrd1Parser.cxx:242
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWNote::EndNote
@ EndNote
Definition: libmwaw_internal.hxx:447
MsWrd1Parser::sendMain
void sendMain()
try to send the main zone
Definition: MsWrd1Parser.cxx:377
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
MsWrd1Parser::init
void init()
inits all internal variables
Definition: MsWrd1Parser.cxx:308
MsWrd1ParserInternal::State::m_textZonesList
std::vector< MWAWVec2l > m_textZonesList
the list of text zones
Definition: MsWrd1Parser.cxx:224
MsWrd1Parser::readDocInfo
bool readDocInfo(MWAWVec2i limit)
try to read the document info (zone 3)
Definition: MsWrd1Parser.cxx:982
MsWrd1ParserInternal::Paragraph::Paragraph
Paragraph(Paragraph const &)=default
MsWrd1ParserInternal::Font
Internal: the font of a MsWrd1Parser.
Definition: MsWrd1Parser.cxx:119
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
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
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWParser::resetTextListener
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
MsWrd1ParserInternal::State::m_endNote
bool m_endNote
a flag to know if we send endnote or footnote
Definition: MsWrd1Parser.cxx:232
MsWrd1ParserInternal::PLC::m_type
PLCType m_type
the type
Definition: MsWrd1Parser.cxx:79
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325