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