ClarisDrawText.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 ClarisDraw text part
36  *
37  */
38 #ifndef CLARIS_DRAW_TEXT
39 # define CLARIS_DRAW_TEXT
40 
41 #include <list>
42 #include <string>
43 #include <vector>
44 
45 #include "libmwaw_internal.hxx"
46 
47 #include "MWAWEntry.hxx"
48 #include "MWAWSubDocument.hxx"
49 
50 #include "MWAWDebug.hxx"
51 #include "MWAWInputStream.hxx"
52 
53 #include "MWAWParser.hxx"
54 
55 #include "ClarisWksStruct.hxx"
56 
57 namespace ClarisDrawTextInternal
58 {
59 struct Paragraph;
60 struct DSET;
61 struct State;
62 }
63 
65 class ClarisDrawParser;
66 
73 {
74  friend class ClarisDrawParser;
75 
76 public:
78  explicit ClarisDrawText(ClarisDrawParser &parser);
80  virtual ~ClarisDrawText();
81 
83  int version() const;
85  void resetState();
87  int numPages() const;
88 
90  shared_ptr<ClarisWksStruct::DSET> readDSETZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry);
91 protected:
93  bool sendZone(int number, int subZone=-1);
95  void flushExtra();
96 
97  //
98  // low level
99  //
100 
102  bool readFont(int id, int &posC, MWAWFont &font);
103 
105  bool readParagraphs();
106 
110  bool readParagraph(int id=-1);
112  bool readParagraphs(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone);
113 
115  bool readFonts(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone);
116 
118  bool readTokens(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone);
119 
121  bool readTextZoneSize(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone);
122 
124  bool sendText(ClarisDrawTextInternal::DSET const &zone, int subZone);
125 
126 private:
129 
130 protected:
131  //
132  // data
133  //
134 
137 
139  shared_ptr<ClarisDrawTextInternal::State> m_state;
140 
144  shared_ptr<ClarisDrawStyleManager> m_styleManager;
145 };
146 #endif
147 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ClarisDrawTextInternal::TextZoneInfo::m_pos
long m_pos
the position
Definition: ClarisDrawText.cxx:291
ClarisWksStruct::DSET::m_id
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:156
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:371
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
ClarisDrawTextInternal::Paragraph::updateListLevel
void updateListLevel()
update the list level
Definition: ClarisDrawText.cxx:141
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
MWAWFont::setUnderlineType
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:453
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWListLevel::m_suffix
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:98
ClarisWksStruct::DSET::Child::m_posC
long m_posC
a position (used in text zone to store the character )
Definition: ClarisWksStruct.hxx:233
ClarisDrawTextInternal::PLCType
PLCType
the different plc type
Definition: ClarisDrawText.cxx:60
ClarisWksStruct.hxx
ClarisWksStruct::DSET::P_Table
@ P_Table
Definition: ClarisWksStruct.hxx:62
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
ClarisDrawTextInternal::DSET::operator<<
friend std::ostream & operator<<(std::ostream &o, DSET const &doc)
operator<<
Definition: ClarisDrawText.cxx:397
ClarisDrawTextInternal::TKN_UNKNOWN
@ TKN_UNKNOWN
Definition: ClarisDrawText.cxx:299
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
ClarisDrawTextInternal::DSET::m_numFont
int m_numFont
the number of font
Definition: ClarisDrawText.cxx:413
ClarisDrawTextInternal::P_TextZone
@ P_TextZone
Definition: ClarisDrawText.cxx:60
ClarisWksStruct::DSET::Child::m_type
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:229
MWAWField::m_DTFormat
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
ClarisDrawText::readFont
bool readFont(int id, int &posC, MWAWFont &font)
try to read a font
Definition: ClarisDrawText.cxx:754
MWAWFont::Script::sub100
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:182
ClarisDrawParser.hxx
ClarisDrawTextInternal::PLC
Internal : the different plc types: mainly for debugging.
Definition: ClarisDrawText.cxx:63
ClarisDrawText::operator=
ClarisDrawText & operator=(ClarisDrawText const &orig)
ClarisDrawTextInternal::PLC::PLC
PLC()
the constructor
Definition: ClarisDrawText.cxx:65
ClarisDrawText::sendText
bool sendText(ClarisDrawTextInternal::DSET const &zone, int subZone)
send the text zone to the listener
Definition: ClarisDrawText.cxx:1196
ClarisDrawTextInternal::Token::m_page
int m_page
the page
Definition: ClarisDrawText.cxx:316
ClarisDrawTextInternal::State::m_zoneMap
std::map< int, shared_ptr< DSET > > m_zoneMap
the list of text zone
Definition: ClarisDrawText.cxx:442
ClarisDrawText::readTextZoneSize
bool readTextZoneSize(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read the text zone size
Definition: ClarisDrawText.cxx:1150
MWAWParagraph::m_listLevelIndex
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:168
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
MWAWListLevel::NONE
@ NONE
Definition: MWAWList.hxx:46
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
MWAWListLevel::LOWER_ALPHA
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::DSET::m_unknown
int m_unknown
an unknown flags
Definition: ClarisDrawText.cxx:415
ClarisDrawTextInternal::Token::m_unknown
int m_unknown[3]
the unknown zone
Definition: ClarisDrawText.cxx:324
ClarisDrawTextInternal::DSET::~DSET
virtual ~DSET()
destructor
Definition: ClarisDrawText.cxx:425
MWAWEntry.hxx
ClarisDrawTextInternal::PLC::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:75
ClarisDrawText::m_mainParser
ClarisDrawParser * m_mainParser
the main parser;
Definition: ClarisDrawText.hxx:142
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
ClarisDrawTextInternal::DSET::m_fatherId
int m_fatherId
the father id
Definition: ClarisDrawText.cxx:414
ClarisDrawTextInternal::TKN_FIELD
@ TKN_FIELD
Definition: ClarisDrawText.cxx:299
ClarisDrawTextInternal::ParagraphPLC::ParagraphPLC
ParagraphPLC()
constructor
Definition: ClarisDrawText.cxx:223
ClarisDrawTextInternal::P_Child
@ P_Child
Definition: ClarisDrawText.cxx:60
ClarisWksStruct::DSET::Child
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:182
ClarisDrawTextInternal::Token::m_fieldEntry
MWAWEntry m_fieldEntry
the field name entry
Definition: ClarisDrawText.cxx:322
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
ClarisDrawTextInternal::DSET
low level internal: main text zone
Definition: ClarisDrawText.cxx:380
ClarisDrawTextInternal::P_Ruler
@ P_Ruler
Definition: ClarisDrawText.cxx:60
ClarisDrawTextInternal::DSET::m_zones
std::vector< MWAWEntry > m_zones
Definition: ClarisDrawText.cxx:409
MWAWParagraph::m_listLevel
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:174
ClarisDrawTextInternal::DSET::m_tokenList
std::vector< Token > m_tokenList
the list of token
Definition: ClarisDrawText.cxx:420
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWListLevel::UPPER_ALPHA
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::TextZoneInfo::TextZoneInfo
TextZoneInfo()
constructor
Definition: ClarisDrawText.cxx:279
MWAWParserStatePtr
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
ClarisDrawTextInternal::ParagraphPLC::m_rulerId
int m_rulerId
the ruler id
Definition: ClarisDrawText.cxx:269
ClarisDrawText::resetState
void resetState()
resets the current state
Definition: ClarisDrawText.cxx:466
ClarisDrawText::sendZone
bool sendZone(int number, int subZone=-1)
sends the zone data
Definition: ClarisDrawText.cxx:1427
ClarisDrawTextInternal::TKN_PAGENUMBER
@ TKN_PAGENUMBER
Definition: ClarisDrawText.cxx:299
ClarisDrawTextInternal
Internal: the structures of a ClarisDrawText.
Definition: ClarisDrawText.cxx:58
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:271
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:142
ClarisWksStruct
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
ClarisWksStruct::DSET::m_flags
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:169
ClarisDrawTextInternal::PLC::m_type
PLCType m_type
the PLC types
Definition: ClarisDrawText.cxx:71
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:182
ClarisDrawTextInternal::TextZoneInfo::operator<<
friend std::ostream & operator<<(std::ostream &o, TextZoneInfo const &info)
operator<<
Definition: ClarisDrawText.cxx:283
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:371
ClarisWksStruct::DSET::P_Frame
@ P_Frame
Definition: ClarisWksStruct.hxx:62
ClarisDrawTextInternal::PLC::m_id
int m_id
the id
Definition: ClarisDrawText.cxx:73
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:371
ClarisDrawText::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisDrawText.hxx:136
ClarisDrawTextInternal::Token::m_extra
std::string m_extra
a string used to store the parsing errors
Definition: ClarisDrawText.cxx:326
ClarisDrawTextInternal::DSET::isOutlined
bool isOutlined() const
true if the zone is outlined
Definition: ClarisDrawText.cxx:392
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:406
MWAWSubDocument.hxx
ClarisDrawTextInternal::State::m_paragraphsList
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: ClarisDrawText.cxx:440
ClarisDrawTextInternal::TextZoneInfo::m_N
int m_N
the number of character
Definition: ClarisDrawText.cxx:293
ClarisWksStruct::DSET::Child::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:237
ClarisDrawStyleManager.hxx
ClarisDrawText::readFonts
bool readFonts(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read a font sequence
Definition: ClarisDrawText.cxx:726
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
ClarisDrawTextInternal::Paragraph
Internal: class to store the paragraph properties.
Definition: ClarisDrawText.cxx:110
ClarisDrawTextInternal::Paragraph::m_labelType
int m_labelType
the label
Definition: ClarisDrawText.cxx:134
ClarisWksStruct::DSET::m_parsed
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:177
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:183
MWAWParagraph.hxx
MWAWListLevel::UPPER_ROMAN
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
MWAWFont::getDebugString
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
ClarisDrawTextInternal::TKN_FOOTNOTE
@ TKN_FOOTNOTE
Definition: ClarisDrawText.cxx:299
ClarisDrawTextInternal::Token::Token
Token()
constructor
Definition: ClarisDrawText.cxx:304
libmwaw_internal.hxx
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
ClarisDrawTextInternal::P_Unknown
@ P_Unknown
Definition: ClarisDrawText.cxx:60
ClarisWksStruct::DSET::P_Header
@ P_Header
Definition: ClarisWksStruct.hxx:62
ClarisDrawText::version
int version() const
returns the file version
Definition: ClarisDrawText.cxx:459
ClarisDrawTextInternal::TextZoneInfo
internal class used to store a text zone
Definition: ClarisDrawText.cxx:277
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
ClarisDrawTextInternal::DSET::DSET
DSET(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisDrawText.cxx:382
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
ClarisWksStruct::DSET::C_SubText
@ C_SubText
Definition: ClarisWksStruct.hxx:67
ClarisDrawStyleManager
the main class to read a ClarisDraw style
Definition: ClarisDrawStyleManager.hxx:60
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
MWAWGraphicListener.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
MWAWDebug.hxx
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
ClarisDrawTextInternal::DSET::m_subSectionPosList
std::vector< long > m_subSectionPosList
list of end of section position
Definition: ClarisDrawText.cxx:417
ClarisDrawTextInternal::Token
Internal: class to store field definition: TOKN entry.
Definition: ClarisDrawText.cxx:302
MWAWListLevel::LOWER_ROMAN
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
ClarisDrawTextInternal::DSET::m_numTextZone
int m_numTextZone
the number of text zone ( ie.
Definition: ClarisDrawText.cxx:411
ClarisDrawTextInternal::Token::m_type
TokenType m_type
the type
Definition: ClarisDrawText.cxx:312
ClarisDrawTextInternal::ParagraphPLC
paragraph plc
Definition: ClarisDrawText.cxx:221
ClarisDrawText.hxx
MWAWField
a field
Definition: libmwaw_internal.hxx:369
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:371
MWAWTabStop::m_decimalCharacter
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:77
ClarisDrawTextInternal::operator<<
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: ClarisDrawText.cxx:78
ClarisDrawTextInternal::Paragraph::operator<<
friend std::ostream & operator<<(std::ostream &o, Paragraph const &ind)
operator<<
Definition: ClarisDrawText.cxx:118
MWAWFont::Script::sub
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:112
ClarisDrawTextInternal::Paragraph::Paragraph
Paragraph()
Constructor.
Definition: ClarisDrawText.cxx:112
ClarisDrawTextInternal::ParagraphPLC::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:273
ClarisDrawTextInternal::TokenType
TokenType
token type
Definition: ClarisDrawText.cxx:299
ClarisDrawTextInternal::State
Internal: the state of a ClarisDrawText.
Definition: ClarisDrawText.cxx:431
ClarisDrawTextInternal::Token::m_size
int m_size[2]
the size(?)
Definition: ClarisDrawText.cxx:318
ClarisDrawText::readParagraphs
bool readParagraphs()
read the rulers block which is present at the beginning of the text
Definition: ClarisDrawText.cxx:819
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
ClarisDrawText::~ClarisDrawText
virtual ~ClarisDrawText()
destructor
Definition: ClarisDrawText.cxx:456
MWAWListLevel::m_bullet
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:99
ClarisDrawTextInternal::TextZoneInfo::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:295
ClarisDrawText::readDSETZone
shared_ptr< ClarisWksStruct::DSET > readDSETZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry)
reads the zone Text DSET
Definition: ClarisDrawText.cxx:484
ClarisDrawText::readParagraph
bool readParagraph(int id=-1)
the definition of ruler : present at the beginning of the text in the first version of Claris Works :...
Definition: ClarisDrawText.cxx:910
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
MWAWListLevel::DECIMAL
@ DECIMAL
Definition: MWAWList.hxx:46
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:182
ClarisWksStruct::DSET::P_Footer
@ P_Footer
Definition: ClarisWksStruct.hxx:62
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
MWAWListLevel::BULLET
@ BULLET
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::State::State
State()
constructor
Definition: ClarisDrawText.cxx:433
ClarisDrawTextInternal::P_Font
@ P_Font
Definition: ClarisDrawText.cxx:60
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:87
MWAWListLevel::m_labelWidth
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:90
ClarisDrawTextInternal::Token::operator<<
friend std::ostream & operator<<(std::ostream &o, Token const &tok)
operator <<
Definition: ClarisDrawText.cxx:328
MWAWSection.hxx
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:88
ClarisDrawTextInternal::DSET::m_numChar
int m_numChar
the number of char in text zone
Definition: ClarisDrawText.cxx:410
ClarisDrawTextInternal::P_Token
@ P_Token
Definition: ClarisDrawText.cxx:60
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
MWAWListLevel::m_type
Type m_type
the type of the level
Definition: MWAWList.hxx:86
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
ClarisWksStruct::DSET::P_Main
@ P_Main
Definition: ClarisWksStruct.hxx:62
MWAWFont::Script::super
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:122
MWAWVariable::get
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
ClarisDrawText::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisDrawText.cxx:1439
MWAWListener.hxx
ClarisDrawTextInternal::DSET::m_numParagInfo
int m_numParagInfo
the number of paragraph info
Definition: ClarisDrawText.cxx:412
ClarisDrawTextInternal::ParagraphPLC::m_flags
int m_flags
some flags
Definition: ClarisDrawText.cxx:271
ClarisDrawTextInternal::DSET::m_paragraphList
std::vector< ParagraphPLC > m_paragraphList
the list of paragraph
Definition: ClarisDrawText.cxx:419
MWAWListLevel::m_numBeforeLabels
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:88
ClarisDrawText
the main class to read the text part of ClarisDraw file
Definition: ClarisDrawText.hxx:73
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
ClarisWksStruct::DSET::P_Unknown
@ P_Unknown
Definition: ClarisWksStruct.hxx:64
ClarisDrawTextInternal::Token::m_descent
int m_descent
the descent
Definition: ClarisDrawText.cxx:320
ClarisDrawText::m_state
shared_ptr< ClarisDrawTextInternal::State > m_state
the state
Definition: ClarisDrawText.hxx:139
ClarisDrawTextInternal::Token::m_zoneId
int m_zoneId
the zone id which correspond to this type
Definition: ClarisDrawText.cxx:314
MWAWFont::Line::Double
@ Double
Definition: MWAWFont.hxx:51
ClarisDrawTextInternal::TKN_GRAPHIC
@ TKN_GRAPHIC
Definition: ClarisDrawText.cxx:299
ClarisDrawText::ClarisDrawText
ClarisDrawText(ClarisDrawParser &parser)
constructor
Definition: ClarisDrawText.cxx:450
MWAWInputStream.hxx
ClarisDrawTextInternal::ParagraphPLC::getLabelType
int getLabelType() const
return the label type
Definition: ClarisDrawText.cxx:227
ClarisDrawTextInternal::Paragraph::~Paragraph
virtual ~Paragraph()
destructor
Definition: ClarisDrawText.cxx:137
ClarisDrawTextInternal::DSET::m_textZoneList
std::vector< TextZoneInfo > m_textZoneList
the list of zone
Definition: ClarisDrawText.cxx:421
ClarisDrawParser
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:64
MWAWFont.hxx
ClarisDrawTextInternal::State::m_version
int m_version
the file version
Definition: ClarisDrawText.cxx:438
ClarisDrawText::numPages
int numPages() const
returns the number of pages
Definition: ClarisDrawText.cxx:471
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
ClarisDrawText::readTokens
bool readTokens(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to the token zone)
Definition: ClarisDrawText.cxx:1048
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
ClarisDrawTextInternal::DSET::m_fontList
std::vector< MWAWFont > m_fontList
the list of fonts
Definition: ClarisDrawText.cxx:418
MWAWListLevel::m_prefix
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:97
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
ClarisDrawTextInternal::PLC::operator<<
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: ClarisDrawText.cxx:78
ClarisDrawText::ClarisDrawText
ClarisDrawText(ClarisDrawText const &orig)
MWAWParagraph::m_listId
MWAWVariable< int > m_listId
the list id (if know )
Definition: MWAWParagraph.hxx:170
ClarisDrawText::m_styleManager
shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawText.hxx:144
ClarisDrawTextInternal::DSET::m_plcMap
std::multimap< long, PLC > m_plcMap
the plc map
Definition: ClarisDrawText.cxx:422
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWListenerPtr
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
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:445
ClarisWksStruct::DSET::P_Footnote
@ P_Footnote
Definition: ClarisWksStruct.hxx:62
ClarisDrawTextInternal::ParagraphPLC::operator<<
friend std::ostream & operator<<(std::ostream &o, ParagraphPLC const &info)
operator<<
Definition: ClarisDrawText.cxx:232
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304

Generated on Wed Jun 17 2020 06:30:09 for libmwaw by doxygen 1.8.18