Go to the documentation of this file.
38 #ifndef CLARIS_DRAW_TEXT
39 # define CLARIS_DRAW_TEXT
93 bool sendZone(
int number,
int subZone=-1);
139 std::shared_ptr<ClarisDrawTextInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
long m_pos
the position
Definition: ClarisDrawText.cxx:306
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
@ Time
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Paragraph & operator=(Paragraph const &)=default
void updateListLevel()
update the list level
Definition: ClarisDrawText.cxx:149
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:113
long m_posC
a position (used in text zone to store the character )
Definition: ClarisWksStruct.hxx:281
PLCType
the different plc type
Definition: ClarisDrawText.cxx:60
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ P_Table
Definition: ClarisWksStruct.hxx:91
@ ColumnBreak
Definition: MWAWListener.hxx:58
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
friend std::ostream & operator<<(std::ostream &o, DSET const &doc)
operator<<
Definition: ClarisDrawText.cxx:427
@ TKN_UNKNOWN
Definition: ClarisDrawText.cxx:314
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
int m_numFont
the number of font
Definition: ClarisDrawText.cxx:443
@ P_TextZone
Definition: ClarisDrawText.cxx:60
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:277
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
bool readFont(int id, int &posC, MWAWFont &font)
try to read a font
Definition: ClarisDrawText.cxx:788
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
@ boldBit
Definition: MWAWFont.hxx:190
Internal : the different plc types: mainly for debugging.
Definition: ClarisDrawText.cxx:63
PLC()
the constructor
Definition: ClarisDrawText.cxx:65
bool sendText(ClarisDrawTextInternal::DSET const &zone, int subZone)
send the text zone to the listener
Definition: ClarisDrawText.cxx:1214
int m_page
the page
Definition: ClarisDrawText.cxx:336
bool readTextZoneSize(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read the text zone size
Definition: ClarisDrawText.cxx:1168
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:174
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
@ NONE
Definition: MWAWList.hxx:46
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
int m_unknown
an unknown flags
Definition: ClarisDrawText.cxx:445
int m_unknown[3]
the unknown zone
Definition: ClarisDrawText.cxx:344
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:78
ClarisDrawParser * m_mainParser
the main parser;
Definition: ClarisDrawText.hxx:142
the class to store a color
Definition: libmwaw_internal.hxx:192
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
int m_fatherId
the father id
Definition: ClarisDrawText.cxx:444
@ TKN_FIELD
Definition: ClarisDrawText.cxx:314
ParagraphPLC()
constructor
Definition: ClarisDrawText.cxx:231
@ P_Child
Definition: ClarisDrawText.cxx:60
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:225
ClarisDrawText(ClarisDrawText const &orig)=delete
MWAWEntry m_fieldEntry
the field name entry
Definition: ClarisDrawText.cxx:342
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
low level internal: main text zone
Definition: ClarisDrawText.cxx:400
@ P_Ruler
Definition: ClarisDrawText.cxx:60
std::vector< MWAWEntry > m_zones
Definition: ClarisDrawText.cxx:439
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
std::vector< Token > m_tokenList
the list of token
Definition: ClarisDrawText.cxx:450
@ Simple
Definition: MWAWFont.hxx:49
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
~DSET() final
destructor
Definition: ClarisDrawText.cxx:455
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
TextZoneInfo()
constructor
Definition: ClarisDrawText.cxx:291
int m_rulerId
the ruler id
Definition: ClarisDrawText.cxx:281
void resetState()
resets the current state
Definition: ClarisDrawText.cxx:501
bool sendZone(int number, int subZone=-1)
sends the zone data
Definition: ClarisDrawText.cxx:1445
@ TKN_PAGENUMBER
Definition: ClarisDrawText.cxx:314
Internal: the structures of a ClarisDrawText.
Definition: ClarisDrawText.cxx:58
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
@ DECIMAL
Definition: MWAWParagraph.hxx:48
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:212
PLCType m_type
the PLC types
Definition: ClarisDrawText.cxx:74
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
friend std::ostream & operator<<(std::ostream &o, TextZoneInfo const &info)
operator<<
Definition: ClarisDrawText.cxx:298
@ PageCount
Definition: libmwaw_internal.hxx:401
@ P_Frame
Definition: ClarisWksStruct.hxx:91
int m_id
the id
Definition: ClarisDrawText.cxx:76
@ Date
Definition: libmwaw_internal.hxx:401
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisDrawText.hxx:136
std::string m_extra
a string used to store the parsing errors
Definition: ClarisDrawText.cxx:346
bool isOutlined() const
true if the zone is outlined
Definition: ClarisDrawText.cxx:422
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
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
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: ClarisDrawText.cxx:473
int m_N
the number of character
Definition: ClarisDrawText.cxx:308
Paragraph(Paragraph const &)=default
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:285
bool readFonts(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to read a font sequence
Definition: ClarisDrawText.cxx:760
std::shared_ptr< ClarisWksStruct::DSET > readDSETZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry)
reads the zone Text DSET
Definition: ClarisDrawText.cxx:519
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
Internal: class to store the paragraph properties.
Definition: ClarisDrawText.cxx:113
int m_labelType
the label
Definition: ClarisDrawText.cxx:142
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:220
@ shadowBit
Definition: MWAWFont.hxx:191
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
@ TKN_FOOTNOTE
Definition: ClarisDrawText.cxx:314
Token()
constructor
Definition: ClarisDrawText.cxx:319
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
@ P_Unknown
Definition: ClarisDrawText.cxx:60
@ P_Header
Definition: ClarisWksStruct.hxx:91
int version() const
returns the file version
Definition: ClarisDrawText.cxx:494
internal class used to store a text zone
Definition: ClarisDrawText.cxx:289
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
DSET(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisDrawText.cxx:402
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
@ C_SubText
Definition: ClarisWksStruct.hxx:96
std::shared_ptr< ClarisDrawTextInternal::State > m_state
the state
Definition: ClarisDrawText.hxx:139
the main class to read a ClarisDraw style
Definition: ClarisDrawStyleManager.hxx:60
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
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 const &orig)=delete
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
std::vector< long > m_subSectionPosList
list of end of section position
Definition: ClarisDrawText.cxx:447
Internal: class to store field definition: TOKN entry.
Definition: ClarisDrawText.cxx:317
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
int m_numTextZone
the number of text zone ( ie.
Definition: ClarisDrawText.cxx:441
TokenType m_type
the type
Definition: ClarisDrawText.cxx:332
paragraph plc
Definition: ClarisDrawText.cxx:229
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: ClarisDrawText.cxx:81
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:120
Paragraph()
Constructor.
Definition: ClarisDrawText.cxx:115
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:285
TokenType
token type
Definition: ClarisDrawText.cxx:314
Internal: the state of a ClarisDrawText.
Definition: ClarisDrawText.cxx:461
int m_size[2]
the size(?)
Definition: ClarisDrawText.cxx:338
bool readParagraphs()
read the rulers block which is present at the beginning of the text
Definition: ClarisDrawText.cxx:853
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
virtual ~ClarisDrawText()
destructor
Definition: ClarisDrawText.cxx:491
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
std::string m_extra
extra data
Definition: ClarisDrawText.cxx:310
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
@ DECIMAL
Definition: MWAWList.hxx:46
@ italicBit
Definition: MWAWFont.hxx:190
@ P_Footer
Definition: ClarisWksStruct.hxx:91
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
@ BULLET
Definition: MWAWList.hxx:46
State()
constructor
Definition: ClarisDrawText.cxx:463
@ P_Font
Definition: ClarisDrawText.cxx:60
@ JustificationFull
Definition: MWAWParagraph.hxx:90
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:105
friend std::ostream & operator<<(std::ostream &o, Token const &tok)
operator <<
Definition: ClarisDrawText.cxx:348
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
int m_numChar
the number of char in text zone
Definition: ClarisDrawText.cxx:440
@ P_Token
Definition: ClarisDrawText.cxx:60
small structure to keep information about a list level
Definition: MWAWList.hxx:44
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
Type m_type
the type of the level
Definition: MWAWList.hxx:101
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
@ P_Main
Definition: ClarisWksStruct.hxx:91
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisDrawText.cxx:1456
int m_numParagInfo
the number of paragraph info
Definition: ClarisDrawText.cxx:442
int m_flags
some flags
Definition: ClarisDrawText.cxx:283
std::vector< ParagraphPLC > m_paragraphList
the list of paragraph
Definition: ClarisDrawText.cxx:449
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:103
the main class to read the text part of ClarisDraw file
Definition: ClarisDrawText.hxx:73
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ P_Unknown
Definition: ClarisWksStruct.hxx:93
int m_descent
the descent
Definition: ClarisDrawText.cxx:340
int m_zoneId
the zone id which correspond to this type
Definition: ClarisDrawText.cxx:334
@ Double
Definition: MWAWFont.hxx:51
a basic structure
Definition: ClarisWksStruct.hxx:53
std::shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawText.hxx:144
@ TKN_GRAPHIC
Definition: ClarisDrawText.cxx:314
ClarisDrawText(ClarisDrawParser &parser)
constructor
Definition: ClarisDrawText.cxx:483
int getLabelType() const
return the label type
Definition: ClarisDrawText.cxx:238
std::vector< TextZoneInfo > m_textZoneList
the list of zone
Definition: ClarisDrawText.cxx:451
std::map< int, std::shared_ptr< DSET > > m_zoneMap
the list of text zone
Definition: ClarisDrawText.cxx:475
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:64
int m_version
the file version
Definition: ClarisDrawText.cxx:471
int numPages() const
returns the number of pages
Definition: ClarisDrawText.cxx:506
@ RIGHT
Definition: MWAWParagraph.hxx:48
bool readTokens(MWAWEntry const &entry, ClarisDrawTextInternal::DSET &zone)
try to the token zone)
Definition: ClarisDrawText.cxx:1065
Class to store font.
Definition: MWAWFont.hxx:44
std::vector< MWAWFont > m_fontList
the list of fonts
Definition: ClarisDrawText.cxx:448
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:112
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: ClarisDrawText.cxx:81
std::multimap< long, PLC > m_plcMap
the plc map
Definition: ClarisDrawText.cxx:452
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
~Paragraph() final
destructor
Definition: ClarisDrawText.cxx:145
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
@ P_Footnote
Definition: ClarisWksStruct.hxx:91
friend std::ostream & operator<<(std::ostream &o, ParagraphPLC const &info)
operator<<
Definition: ClarisDrawText.cxx:243
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20