ClarisDrawText.hxx Source File documentation

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
64 class ClarisDrawStyleManager;
65 class ClarisDrawParser;
66
72 class ClarisDrawText
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 std::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:
127 ClarisDrawText(ClarisDrawText const &orig) = delete;
128 ClarisDrawText &operator=(ClarisDrawText const &orig) = delete;
129
130 protected:
131 //
132 // data
133 //
134
136 MWAWParserStatePtr m_parserState;
137
139 std::shared_ptr<ClarisDrawTextInternal::State> m_state;
140
142 ClarisDrawParser *m_mainParser;
144 std::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:46
ClarisDrawTextInternal::TextZoneInfo::m_pos
long m_pos
the position
Definition: ClarisDrawText.cxx:306
ClarisWksStruct::DSET::m_id
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
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
ClarisDrawTextInternal::Paragraph::operator=
Paragraph & operator=(Paragraph const &)=default
ClarisDrawTextInternal::Paragraph::updateListLevel
void updateListLevel()
update the list level
Definition: ClarisDrawText.cxx:149
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
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWListLevel::m_suffix
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:113
ClarisWksStruct::DSET::Child::m_posC
long m_posC
a position (used in text zone to store the character )
Definition: ClarisWksStruct.hxx:281
ClarisDrawTextInternal::PLCType
PLCType
the different plc type
Definition: ClarisDrawText.cxx:60
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
ClarisWksStruct.hxx
ClarisWksStruct::DSET::P_Table
@ P_Table
Definition: ClarisWksStruct.hxx:91
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:427
ClarisDrawTextInternal::TKN_UNKNOWN
@ TKN_UNKNOWN
Definition: ClarisDrawText.cxx:314
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
ClarisDrawTextInternal::DSET::m_numFont
int m_numFont
the number of font
Definition: ClarisDrawText.cxx:443
ClarisDrawTextInternal::P_TextZone
@ P_TextZone
Definition: ClarisDrawText.cxx:60
ClarisWksStruct::DSET::Child::m_type
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:277
MWAWField::m_DTFormat
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
ClarisDrawText::readFont
bool readFont(int id, int &posC, MWAWFont &font)
try to read a font
Definition: ClarisDrawText.cxx:788
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
ClarisDrawParser.hxx
ClarisDrawTextInternal::PLC
Internal : the different plc types: mainly for debugging.
Definition: ClarisDrawText.cxx:63
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:1214
ClarisDrawTextInternal::Token::m_page
int m_page
the page
Definition: ClarisDrawText.cxx:336
ClarisDrawText::readTextZoneSize
bool readTextZoneSize(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read the text zone size
Definition: ClarisDrawText.cxx:1168
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
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:129
MWAWListLevel::LOWER_ALPHA
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::DSET::m_unknown
int m_unknown
an unknown flags
Definition: ClarisDrawText.cxx:445
ClarisDrawTextInternal::Token::m_unknown
int m_unknown[3]
the unknown zone
Definition: ClarisDrawText.cxx:344
MWAWEntry.hxx
ClarisDrawTextInternal::PLC::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:78
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:192
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:156
ClarisDrawTextInternal::DSET::m_fatherId
int m_fatherId
the father id
Definition: ClarisDrawText.cxx:444
ClarisDrawTextInternal::TKN_FIELD
@ TKN_FIELD
Definition: ClarisDrawText.cxx:314
ClarisDrawTextInternal::ParagraphPLC::ParagraphPLC
ParagraphPLC()
constructor
Definition: ClarisDrawText.cxx:231
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:225
ClarisDrawTextInternal::Token::m_fieldEntry
MWAWEntry m_fieldEntry
the field name entry
Definition: ClarisDrawText.cxx:342
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
ClarisDrawTextInternal::DSET
low level internal: main text zone
Definition: ClarisDrawText.cxx:400
ClarisDrawTextInternal::P_Ruler
@ P_Ruler
Definition: ClarisDrawText.cxx:60
ClarisDrawTextInternal::DSET::m_zones
std::vector< MWAWEntry > m_zones
Definition: ClarisDrawText.cxx:439
MWAWParagraph::m_listLevel
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
ClarisDrawTextInternal::DSET::m_tokenList
std::vector< Token > m_tokenList
the list of token
Definition: ClarisDrawText.cxx:450
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWListLevel::UPPER_ALPHA
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::DSET::~DSET
~DSET() final
destructor
Definition: ClarisDrawText.cxx:455
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
ClarisDrawTextInternal::TextZoneInfo::TextZoneInfo
TextZoneInfo()
constructor
Definition: ClarisDrawText.cxx:291
ClarisDrawTextInternal::ParagraphPLC::m_rulerId
int m_rulerId
the ruler id
Definition: ClarisDrawText.cxx:281
ClarisDrawText::resetState
void resetState()
resets the current state
Definition: ClarisDrawText.cxx:501
ClarisDrawText::sendZone
bool sendZone(int number, int subZone=-1)
sends the zone data
Definition: ClarisDrawText.cxx:1445
ClarisDrawTextInternal::TKN_PAGENUMBER
@ TKN_PAGENUMBER
Definition: ClarisDrawText.cxx:314
ClarisDrawTextInternal
Internal: the structures of a ClarisDrawText.
Definition: ClarisDrawText.cxx:57
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
ClarisWksStruct
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:49
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
ClarisWksStruct::DSET::m_flags
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:212
ClarisDrawTextInternal::PLC::m_type
PLCType m_type
the PLC types
Definition: ClarisDrawText.cxx:74
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
ClarisDrawTextInternal::TextZoneInfo::operator<<
friend std::ostream & operator<<(std::ostream &o, TextZoneInfo const &info)
operator<<
Definition: ClarisDrawText.cxx:298
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
ClarisWksStruct::DSET::P_Frame
@ P_Frame
Definition: ClarisWksStruct.hxx:91
ClarisDrawTextInternal::PLC::m_id
int m_id
the id
Definition: ClarisDrawText.cxx:76
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
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:346
ClarisDrawTextInternal::DSET::isOutlined
bool isOutlined() const
true if the zone is outlined
Definition: ClarisDrawText.cxx:422
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
MWAWSubDocument.hxx
ClarisDrawTextInternal::State::m_paragraphsList
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: ClarisDrawText.cxx:473
ClarisDrawTextInternal::TextZoneInfo::m_N
int m_N
the number of character
Definition: ClarisDrawText.cxx:308
ClarisWksStruct::DSET::Child::m_box
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:285
ClarisDrawStyleManager.hxx
ClarisDrawText::readFonts
bool readFonts(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read a font sequence
Definition: ClarisDrawText.cxx:760
ClarisDrawText::readDSETZone
std::shared_ptr< ClarisWksStruct::DSET > readDSETZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry)
reads the zone Text DSET
Definition: ClarisDrawText.cxx:519
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
ClarisDrawTextInternal::Paragraph
Internal: class to store the paragraph properties.
Definition: ClarisDrawText.cxx:113
ClarisDrawTextInternal::Paragraph::m_labelType
int m_labelType
the label
Definition: ClarisDrawText.cxx:142
ClarisWksStruct::DSET::m_parsed
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:220
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWParagraph.hxx
MWAWListLevel::UPPER_ROMAN
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
ClarisDrawTextInternal::TKN_FOOTNOTE
@ TKN_FOOTNOTE
Definition: ClarisDrawText.cxx:314
ClarisDrawTextInternal::Token::Token
Token()
constructor
Definition: ClarisDrawText.cxx:319
libmwaw_internal.hxx
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
ClarisDrawTextInternal::P_Unknown
@ P_Unknown
Definition: ClarisDrawText.cxx:60
ClarisWksStruct::DSET::P_Header
@ P_Header
Definition: ClarisWksStruct.hxx:91
ClarisDrawText::version
int version() const
returns the file version
Definition: ClarisDrawText.cxx:494
ClarisDrawTextInternal::TextZoneInfo
internal class used to store a text zone
Definition: ClarisDrawText.cxx:289
ClarisWksStruct::DSET::m_fileType
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
ClarisDrawTextInternal::DSET::DSET
DSET(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisDrawText.cxx:402
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
ClarisWksStruct::DSET::C_SubText
@ C_SubText
Definition: ClarisWksStruct.hxx:96
ClarisDrawText::m_state
std::shared_ptr< ClarisDrawTextInternal::State > m_state
the state
Definition: ClarisDrawText.hxx:139
ClarisDrawStyleManager
the main class to read a ClarisDraw style
Definition: ClarisDrawStyleManager.hxx:59
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
ClarisWksStruct::Struct::readHeader
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
MWAWGraphicListener.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
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
ClarisDrawText::operator=
ClarisDrawText & operator=(ClarisDrawText const &orig)=delete
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
ClarisDrawTextInternal::DSET::m_subSectionPosList
std::vector< long > m_subSectionPosList
list of end of section position
Definition: ClarisDrawText.cxx:447
MWAWVariable::get
const T & get() const
return the current value
Definition: libmwaw_internal.hxx:630
ClarisDrawTextInternal::Token
Internal: class to store field definition: TOKN entry.
Definition: ClarisDrawText.cxx:317
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
MWAWListLevel::LOWER_ROMAN
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
ClarisWksStruct::DSET
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
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
ClarisDrawTextInternal::DSET::m_numTextZone
int m_numTextZone
the number of text zone ( ie.
Definition: ClarisDrawText.cxx:441
ClarisDrawTextInternal::Token::m_type
TokenType m_type
the type
Definition: ClarisDrawText.cxx:332
ClarisDrawTextInternal::ParagraphPLC
paragraph plc
Definition: ClarisDrawText.cxx:229
ClarisDrawText.hxx
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
ClarisDrawTextInternal::operator<<
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: ClarisDrawText.cxx:81
MWAWFont::Script::sub
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:120
ClarisDrawTextInternal::Paragraph::Paragraph
Paragraph()
Constructor.
Definition: ClarisDrawText.cxx:115
ClarisDrawTextInternal::ParagraphPLC::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:285
ClarisDrawTextInternal::TokenType
TokenType
token type
Definition: ClarisDrawText.cxx:314
ClarisDrawTextInternal::State
Internal: the state of a ClarisDrawText.
Definition: ClarisDrawText.cxx:461
ClarisDrawTextInternal::Token::m_size
int m_size[2]
the size(?)
Definition: ClarisDrawText.cxx:338
ClarisDrawText::readParagraphs
bool readParagraphs()
read the rulers block which is present at the beginning of the text
Definition: ClarisDrawText.cxx:853
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
ClarisDrawText::~ClarisDrawText
virtual ~ClarisDrawText()
destructor
Definition: ClarisDrawText.cxx:491
MWAWListLevel::m_bullet
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
ClarisDrawTextInternal::TextZoneInfo::m_extra
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:310
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:927
MWAWListLevel::DECIMAL
@ DECIMAL
Definition: MWAWList.hxx:46
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
ClarisWksStruct::DSET::P_Footer
@ P_Footer
Definition: ClarisWksStruct.hxx:91
ClarisWksStruct::DSET::m_numData
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
MWAWListLevel::BULLET
@ BULLET
Definition: MWAWList.hxx:46
ClarisDrawTextInternal::State::State
State()
constructor
Definition: ClarisDrawText.cxx:463
ClarisDrawTextInternal::P_Font
@ P_Font
Definition: ClarisDrawText.cxx:60
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWListLevel::m_labelWidth
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:105
ClarisDrawTextInternal::Token::operator<<
friend std::ostream & operator<<(std::ostream &o, Token const &tok)
operator <<
Definition: ClarisDrawText.cxx:348
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
ClarisDrawTextInternal::DSET::m_numChar
int m_numChar
the number of char in text zone
Definition: ClarisDrawText.cxx:440
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:101
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
ClarisWksStruct::DSET::P_Main
@ P_Main
Definition: ClarisWksStruct.hxx:91
MWAWFont::Script::super
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
ClarisDrawText::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisDrawText.cxx:1456
MWAWListener.hxx
ClarisDrawTextInternal::DSET::m_numParagInfo
int m_numParagInfo
the number of paragraph info
Definition: ClarisDrawText.cxx:442
ClarisDrawTextInternal::ParagraphPLC::m_flags
int m_flags
some flags
Definition: ClarisDrawText.cxx:283
ClarisDrawTextInternal::DSET::m_paragraphList
std::vector< ParagraphPLC > m_paragraphList
the list of paragraph
Definition: ClarisDrawText.cxx:449
MWAWListLevel::m_numBeforeLabels
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:103
ClarisDrawText
the main class to read the text part of ClarisDraw file
Definition: ClarisDrawText.hxx:72
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:65
ClarisWksStruct::DSET::P_Unknown
@ P_Unknown
Definition: ClarisWksStruct.hxx:93
ClarisDrawTextInternal::Token::m_descent
int m_descent
the descent
Definition: ClarisDrawText.cxx:340
ClarisDrawTextInternal::Token::m_zoneId
int m_zoneId
the zone id which correspond to this type
Definition: ClarisDrawText.cxx:334
MWAWFont::Line::Double
@ Double
Definition: MWAWFont.hxx:51
ClarisWksStruct::Struct
a basic structure
Definition: ClarisWksStruct.hxx:53
ClarisDrawText::m_styleManager
std::shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawText.hxx:144
ClarisDrawTextInternal::TKN_GRAPHIC
@ TKN_GRAPHIC
Definition: ClarisDrawText.cxx:314
ClarisDrawText::ClarisDrawText
ClarisDrawText(ClarisDrawParser &parser)
constructor
Definition: ClarisDrawText.cxx:483
MWAWInputStream.hxx
ClarisDrawTextInternal::ParagraphPLC::getLabelType
int getLabelType() const
return the label type
Definition: ClarisDrawText.cxx:238
ClarisDrawTextInternal::DSET::m_textZoneList
std::vector< TextZoneInfo > m_textZoneList
the list of zone
Definition: ClarisDrawText.cxx:451
ClarisDrawTextInternal::State::m_zoneMap
std::map< int, std::shared_ptr< DSET > > m_zoneMap
the list of text zone
Definition: ClarisDrawText.cxx:475
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
ClarisDrawParser
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:63
MWAWFont.hxx
ClarisDrawTextInternal::State::m_version
int m_version
the file version
Definition: ClarisDrawText.cxx:471
ClarisDrawText::numPages
int numPages() const
returns the number of pages
Definition: ClarisDrawText.cxx:506
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:1065
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
ClarisDrawTextInternal::DSET::m_fontList
std::vector< MWAWFont > m_fontList
the list of fonts
Definition: ClarisDrawText.cxx:448
MWAWListLevel::m_prefix
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:112
MWAWParagraph::m_extra
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
ClarisDrawTextInternal::PLC::operator<<
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: ClarisDrawText.cxx:81
ClarisDrawTextInternal::DSET::m_plcMap
std::multimap< long, PLC > m_plcMap
the plc map
Definition: ClarisDrawText.cxx:452
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
ClarisDrawTextInternal::Paragraph::~Paragraph
~Paragraph() final
destructor
Definition: ClarisDrawText.cxx:145
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
ClarisWksStruct::DSET::P_Footnote
@ P_Footnote
Definition: ClarisWksStruct.hxx:91
ClarisDrawTextInternal::ParagraphPLC::operator<<
friend std::ostream & operator<<(std::ostream &o, ParagraphPLC const &info)
operator<<
Definition: ClarisDrawText.cxx:243
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325