HanMacWrdKText.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 HanMac Word text document
36  *
37  */
38 #ifndef HAN_MAC_WRD_K_TEXT
39 # define HAN_MAC_WRD_K_TEXT
40 
41 #include <map>
42 
43 #include "libmwaw_internal.hxx"
44 #include "MWAWDebug.hxx"
45 
46 namespace HanMacWrdKTextInternal
47 {
48 struct Paragraph;
49 struct Token;
50 struct State;
51 }
52 
53 struct HanMacWrdKZone;
54 class HanMacWrdKParser;
55 
62 {
63  friend class HanMacWrdKParser;
64 public:
66  explicit HanMacWrdKText(HanMacWrdKParser &parser);
68  virtual ~HanMacWrdKText();
69 
71  int version() const;
72 
74  int numPages() const;
75 
76 protected:
78  bool sendMainText();
80  bool sendText(long id, long subId, MWAWListenerPtr listener=MWAWListenerPtr());
82  bool canSendTextAsGraphic(long id, long subId);
84  void flushExtra();
86  void updateTextZoneTypes(std::map<long,int> const &idTypeMap);
88  int computeNumPages(HanMacWrdKZone const &zone) const;
90  std::vector<long> const &getTokenIdList() const;
92  void getHeaderFooterId(long &headerId, long &footerId) const;
93 
94  //
95  // intermediate level
96  //
97 
99  bool readTextZone(std::shared_ptr<HanMacWrdKZone> zone);
101  bool readFontNames(std::shared_ptr<HanMacWrdKZone> zone);
103  bool readStyles(std::shared_ptr<HanMacWrdKZone> zone);
105  bool readSections(std::shared_ptr<HanMacWrdKZone> zone);
106 
108  bool sendText(HanMacWrdKZone &zone, MWAWListenerPtr listener=MWAWListenerPtr());
111 
112  //
113  // low level
114  //
116  bool readFont(HanMacWrdKZone const &zone, MWAWFont &font) const;
117 
119  bool readParagraph(HanMacWrdKZone const &zone, HanMacWrdKTextInternal::Paragraph &para) const;
121  void setProperty(HanMacWrdKTextInternal::Paragraph const &para, float width);
122 
124  bool readToken(HanMacWrdKZone const &zone, HanMacWrdKTextInternal::Token &token) const;
125 
126 private:
127  HanMacWrdKText(HanMacWrdKText const &orig) = delete;
128  HanMacWrdKText &operator=(HanMacWrdKText const &orig) = delete;
129 
130 protected:
131  //
132  // data
133  //
136 
138  std::shared_ptr<HanMacWrdKTextInternal::State> m_state;
139 
142 };
143 #endif
144 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
HanMacWrdKZone::valid
bool valid() const
returns true if the zone data exists
Definition: HanMacWrdKParser.hxx:83
HanMacWrdKTextInternal::getSection
static Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:272
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
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
MWAWFont::reverseVideoBit
@ reverseVideoBit
Definition: MWAWFont.hxx:192
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MWAWFont::setUnderlineType
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
HanMacWrdKParser
the main class to read a HanMac Word-K file
Definition: HanMacWrdKParser.hxx:186
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
HanMacWrdKTextInternal::Paragraph::m_type
int m_type
the type
Definition: HanMacWrdKText.cxx:96
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWParagraph::resizeBorders
void resizeBorders(size_t newSize)
a function used to resize the borders list ( adding empty borders if needed )
Definition: MWAWParagraph.hxx:122
MWAWListener::ColumnBreak
@ ColumnBreak
Definition: MWAWListener.hxx:58
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
HanMacWrdKText::canSendTextAsGraphic
bool canSendTextAsGraphic(long id, long subId)
check if we can send a textzone as graphic
Definition: HanMacWrdKText.cxx:519
HanMacWrdKZone::ascii
libmwaw::DebugFile & ascii() const
returns the debug file
Definition: HanMacWrdKParser.hxx:133
libmwaw::Position
Position
basic position enum
Definition: libmwaw_internal.hxx:176
HanMacWrdKTextInternal::State::m_numPages
int m_numPages
Definition: HanMacWrdKText.cxx:265
HanMacWrdKZone::m_id
long m_id
the zone id
Definition: HanMacWrdKParser.hxx:142
MWAWField::m_DTFormat
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
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
HanMacWrdKTextInternal::Token::operator=
Token & operator=(Token const &)=default
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
HanMacWrdKText
the main class to read the text part of HanMac Word file
Definition: HanMacWrdKText.hxx:62
MWAWFont::setWidthStreching
void setWidthStreching(float scale=1.0)
sets the text width streching
Definition: MWAWFont.hxx:303
HanMacWrdKZone::name
std::string name() const
returns the zone name
Definition: HanMacWrdKParser.hxx:122
HanMacWrdKText::setProperty
void setProperty(HanMacWrdKTextInternal::Paragraph const &para, float width)
send the ruler properties
Definition: HanMacWrdKText.cxx:1209
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
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
MWAWFont::outlineBit
@ outlineBit
Definition: MWAWFont.hxx:191
MWAWFont::setOverlineStyle
void setOverlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the overline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:388
HanMacWrdKTextInternal::Token::operator<<
friend std::ostream & operator<<(std::ostream &o, Token const &tkn)
operator<<
Definition: HanMacWrdKText.cxx:190
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWBorder::None
@ None
Definition: libmwaw_internal.hxx:335
HanMacWrdKText::version
int version() const
returns the file version
Definition: HanMacWrdKText.cxx:297
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
HanMacWrdKText::readSections
bool readSections(std::shared_ptr< HanMacWrdKZone > zone)
try to read a section info zone (type 4)
Definition: HanMacWrdKText.cxx:1481
HanMacWrdKTextInternal::Section::operator<<
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: HanMacWrdKText.cxx:147
HanMacWrdKTextInternal::Section
Internal: class to store a section of a HanMacWrdKText.
Definition: HanMacWrdKText.cxx:106
HanMacWrdKTextInternal::Section::m_colSep
std::vector< double > m_colSep
the columns separator width
Definition: HanMacWrdKText.cxx:167
HanMacWrdKParser::newPage
void newPage(int number)
adds a new page
Definition: HanMacWrdKParser.cxx:206
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWFont::setDeltaLetterSpacing
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
HanMacWrdKTextInternal::Token::m_type
int m_type
the type
Definition: HanMacWrdKText.cxx:231
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
HanMacWrdKText::m_state
std::shared_ptr< HanMacWrdKTextInternal::State > m_state
the state
Definition: HanMacWrdKText.hxx:138
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
HanMacWrdKTextInternal::Token::m_id
long m_id
the identificator
Definition: HanMacWrdKText.cxx:233
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
HanMacWrdKTextInternal::State
Internal: the state of a HanMacWrdKText.
Definition: HanMacWrdKText.cxx:240
HanMacWrdKText::getTokenIdList
std::vector< long > const & getTokenIdList() const
returns the list of zoneId which corresponds to the token
Definition: HanMacWrdKText.cxx:322
MWAWFont::setStrikeOutType
void setStrikeOutType(Line::Type type=Line::Single)
sets the strikeoutline type
Definition: MWAWFont.hxx:435
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MWAWFont::setStrikeOutStyle
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
HanMacWrdKText::readParagraph
bool readParagraph(HanMacWrdKZone const &zone, HanMacWrdKTextInternal::Paragraph &para) const
try to read a paragraph in a text zone
Definition: HanMacWrdKText.cxx:1215
MWAWParagraph::NoBreakBit
@ NoBreakBit
Definition: MWAWParagraph.hxx:88
HanMacWrdKText::readFontNames
bool readFontNames(std::shared_ptr< HanMacWrdKZone > zone)
try to read the fonts name zone (type 5)
Definition: HanMacWrdKText.cxx:1021
MWAWFont::setUnderlineWidth
void setUnderlineWidth(float w)
sets the underline width
Definition: MWAWFont.hxx:484
MWAWParagraph::m_borders
std::vector< MWAWVariable< MWAWBorder > > m_borders
list of border ( order MWAWBorder::Pos)
Definition: MWAWParagraph.hxx:186
MWAWParser::getPageWidth
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
HanMacWrdKText::readToken
bool readToken(HanMacWrdKZone const &zone, HanMacWrdKTextInternal::Token &token) const
try to read an token in a text zone
Definition: HanMacWrdKText.cxx:1436
HanMacWrdKTextInternal::State::State
State()
constructor
Definition: HanMacWrdKText.cxx:242
MWAWFont::m_extra
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
HanMacWrdKTextInternal::State::m_IdTextMaps
std::multimap< long, std::shared_ptr< HanMacWrdKZone > > m_IdTextMaps
the map of id -> text zone
Definition: HanMacWrdKText.cxx:258
HanMacWrdKText::getHeaderFooterId
void getHeaderFooterId(long &headerId, long &footerId) const
return sthe header/footer id
Definition: HanMacWrdKText.cxx:316
HanMacWrdKText::updateTextZoneTypes
void updateTextZoneTypes(std::map< long, int > const &idTypeMap)
update the text zone type with map id->type
Definition: HanMacWrdKText.cxx:327
MWAWFont::boxedRoundedBit
@ boxedRoundedBit
Definition: MWAWFont.hxx:196
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWParagraph::m_breakStatus
MWAWVariable< int > m_breakStatus
a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
Definition: MWAWParagraph.hxx:169
HanMacWrdKTextInternal::State::m_tokenIdList
std::vector< long > m_tokenIdList
the token id list
Definition: HanMacWrdKText.cxx:262
HanMacWrdKParser.hxx
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParagraph.hxx
MWAWRSRCParser.hxx
HanMacWrdKTextInternal::Section::Section
Section()
constructor
Definition: HanMacWrdKText.cxx:108
libmwaw::Bottom
@ Bottom
Definition: libmwaw_internal.hxx:176
libmwaw_internal.hxx
MWAWPosition.hxx
HanMacWrdKText::readTextZone
bool readTextZone(std::shared_ptr< HanMacWrdKZone > zone)
try to read a text zone (type 1)
Definition: HanMacWrdKText.cxx:452
HanMacWrdKText::numPages
int numPages() const
returns the number of pages
Definition: HanMacWrdKText.cxx:304
HanMacWrdKTextInternal::State::m_version
int m_version
the file version
Definition: HanMacWrdKText.cxx:256
HanMacWrdKZone::end
long end() const
returns the last position in the input
Definition: HanMacWrdKParser.hxx:72
HanMacWrdKText::HanMacWrdKText
HanMacWrdKText(HanMacWrdKParser &parser)
constructor
Definition: HanMacWrdKText.cxx:286
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
HanMacWrdKText::computeNumPages
int computeNumPages(HanMacWrdKZone const &zone) const
compute the number of pages present in a zone
Definition: HanMacWrdKText.cxx:353
MWAWSection::m_columns
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
libmwaw::VMiddle
@ VMiddle
Definition: libmwaw_internal.hxx:176
HanMacWrdKTextInternal::Section::m_colWidth
std::vector< double > m_colWidth
the columns width
Definition: HanMacWrdKText.cxx:165
HanMacWrdKTextInternal::State::m_sectionList
std::map< long, Section > m_sectionList
the list of section
Definition: HanMacWrdKText.cxx:264
MWAWFont::size
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MWAWGraphicListener.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWFont::boxedBit
@ boxedBit
Definition: MWAWFont.hxx:195
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:46
MWAWDebug.hxx
HanMacWrdKTextInternal::Token::~Token
~Token()
destructor
Definition: HanMacWrdKText.cxx:186
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
HanMacWrdKZone::begin
long begin() const
returns the first position in the input
Definition: HanMacWrdKParser.hxx:67
HanMacWrdKText::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: HanMacWrdKText.hxx:135
MWAWFont::setOverlineWidth
void setOverlineWidth(float w)
sets the overline width
Definition: MWAWFont.hxx:406
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
HanMacWrdKText::sendText
bool sendText(long id, long subId, MWAWListenerPtr listener=MWAWListenerPtr())
send a text zone
Definition: HanMacWrdKText.cxx:532
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
HanMacWrdKTextInternal::State::m_IdTypeMaps
std::map< long, int > m_IdTypeMaps
the zone frame type if known
Definition: HanMacWrdKText.cxx:260
HanMacWrdKZone::m_input
MWAWInputStreamPtr m_input
the main input
Definition: HanMacWrdKParser.hxx:148
HanMacWrdKTextInternal::Section::m_id
long m_id
the id
Definition: HanMacWrdKText.cxx:169
libmwaw::Top
@ Top
Definition: libmwaw_internal.hxx:176
HanMacWrdKTextInternal::Paragraph
Internal: class to store the paragraph properties of a HanMacWrdKText.
Definition: HanMacWrdKText.cxx:60
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
HanMacWrdKText::readStyles
bool readStyles(std::shared_ptr< HanMacWrdKZone > zone)
try to read the style zone (type 3)
Definition: HanMacWrdKText.cxx:1082
HanMacWrdKTextInternal::State::m_footerId
long m_footerId
the footer text zone id or 0
Definition: HanMacWrdKText.cxx:269
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
HanMacWrdKTextInternal::Paragraph::Paragraph
Paragraph()
Constructor.
Definition: HanMacWrdKText.cxx:62
HanMacWrdKText::~HanMacWrdKText
virtual ~HanMacWrdKText()
destructor
Definition: HanMacWrdKText.cxx:293
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWFont::Line::Dot
@ Dot
Definition: MWAWFont.hxx:49
MWAWTextListener.hxx
Defines MWAWTextListener: the libmwaw word processor listener.
HanMacWrdKTextInternal::Section::m_numCols
int m_numCols
the number of column
Definition: HanMacWrdKText.cxx:163
HanMacWrdKText::readFont
bool readFont(HanMacWrdKZone const &zone, MWAWFont &font) const
try to read a font in a text zone
Definition: HanMacWrdKText.cxx:896
libmwaw::Right
@ Right
Definition: libmwaw_internal.hxx:176
HanMacWrdKTextInternal::Token::m_extra
std::string m_extra
extra data, mainly for debugging
Definition: HanMacWrdKText.cxx:235
MWAWParagraph::m_spacingsInterlineUnit
MWAWVariable< librevenge::RVNGUnit > m_spacingsInterlineUnit
the interline unit PERCENT or INCH, ...
Definition: MWAWParagraph.hxx:158
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
HanMacWrdKTextInternal
Internal: the structures of a HanMacWrdKText.
Definition: HanMacWrdKText.cxx:58
MWAWSection.hxx
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
HanMacWrdKTextInternal::Token
Internal: class to store the token properties of a HanMacWrdKText.
Definition: HanMacWrdKText.cxx:175
HanMacWrdKParser::getColor
bool getColor(int colId, int patternId, MWAWColor &color) const
returns the color associated with a pattern
Definition: HanMacWrdKParser.cxx:189
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
HanMacWrdKZone::fileBeginPos
long fileBeginPos() const
returns the file begin position
Definition: HanMacWrdKParser.hxx:91
HanMacWrdKTextInternal::Paragraph::~Paragraph
~Paragraph() final
destructor
Definition: HanMacWrdKText.cxx:101
HanMacWrdKTextInternal::Token::Token
Token()
Constructor.
Definition: HanMacWrdKText.cxx:177
HanMacWrdKText::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: HanMacWrdKText.cxx:1584
MWAWFont::Script::super
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
HanMacWrdKTextInternal::Paragraph::m_addPageBreak
bool m_addPageBreak
flag to store a force page break
Definition: HanMacWrdKText.cxx:98
MWAWVariable::get
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
HanMacWrdKText::sendMainText
bool sendMainText()
send the main text zone
Definition: HanMacWrdKText.cxx:549
libmwaw::Left
@ Left
Definition: libmwaw_internal.hxx:176
MWAWTabStop::BAR
@ BAR
Definition: MWAWParagraph.hxx:48
MWAWFont::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the font background color
Definition: MWAWFont.hxx:352
HanMacWrdKText::HanMacWrdKText
HanMacWrdKText(HanMacWrdKText const &orig)=delete
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
HanMacWrdKTextInternal::Paragraph::operator=
Paragraph & operator=(Paragraph &&)=default
HanMacWrdKTextInternal::State::m_actualPage
int m_actualPage
Definition: HanMacWrdKText.cxx:265
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
MWAWFont::Line::Double
@ Double
Definition: MWAWFont.hxx:51
HanMacWrdKTextInternal::State::m_headerId
long m_headerId
the header text zone id or 0
Definition: HanMacWrdKText.cxx:267
HanMacWrdKTextInternal::Section::getSection
MWAWSection getSection() const
returns a MWAWSection
Definition: HanMacWrdKText.cxx:117
HanMacWrdKTextInternal::Section::m_extra
std::string m_extra
extra string string
Definition: HanMacWrdKText.cxx:171
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
HanMacWrdKTextInternal::Token::operator=
Token & operator=(Token &&)=default
MWAWFont.hxx
HanMacWrdKZone
Small class used to store the decoded zone of HanMacWrdKParser.
Definition: HanMacWrdKParser.hxx:58
HanMacWrdKParser::sendZone
bool sendZone(long zId)
send a zone
Definition: HanMacWrdKParser.cxx:182
HanMacWrdKZone::m_parsed
bool m_parsed
true if the zone is sended
Definition: HanMacWrdKParser.hxx:154
HanMacWrdKText.hxx
MWAWFont::Line::Dash
@ Dash
Definition: MWAWFont.hxx:49
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
MWAWField::Title
@ Title
Definition: libmwaw_internal.hxx:401
HanMacWrdKText::m_mainParser
HanMacWrdKParser * m_mainParser
the main parser;
Definition: HanMacWrdKText.hxx:141
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
HanMacWrdKText::operator=
HanMacWrdKText & operator=(HanMacWrdKText const &orig)=delete
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
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
HanMacWrdKZone::length
long length() const
returns the zone size
Definition: HanMacWrdKParser.hxx:77
HanMacWrdKTextInternal::Paragraph::operator=
Paragraph & operator=(Paragraph const &)=default

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20