Go to the documentation of this file.
38 #ifndef CLARIS_WKS_TEXT
39 # define CLARIS_WKS_TEXT
167 std::shared_ptr<ClarisWksTextInternal::State>
m_state;
std::ostream & operator<<(std::ostream &o, PLC const &plc)
Definition: ClarisWksText.cxx:82
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ P_Font
Definition: ClarisWksText.cxx:61
@ P_Ruler
Definition: ClarisWksText.cxx:61
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
int numPages() const
returns the number of pages
Definition: ClarisWksText.cxx:661
int m_labelType
the label
Definition: ClarisWksText.cxx:146
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
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
friend std::ostream & operator<<(std::ostream &o, Token const &tok)
operator <<
Definition: ClarisWksText.cxx:444
@ TKN_FIELD
Definition: ClarisWksText.cxx:408
std::vector< MWAWFont > m_fontList
the list of fonts
Definition: ClarisWksText.cxx:555
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
@ P_Table
Definition: ClarisWksStruct.hxx:91
@ ColumnBreak
Definition: MWAWListener.hxx:58
std::string m_extra
extra data
Definition: ClarisWksText.cxx:405
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: ClarisWksText.cxx:580
Paragraph()
constructor
Definition: ClarisWksText.cxx:119
long m_headerSize
the header size
Definition: ClarisWksStruct.hxx:75
Section()
the constructor
Definition: ClarisWksText.cxx:292
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
void removeChild(int cId, bool normalChild) final
remove a child from a list.
Definition: ClarisWksText.cxx:533
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
void setProperty(MWAWListener &listener, ClarisWksTextInternal::Paragraph const &ruler, int listId=-1)
sends a paragraph property to the listener
Definition: ClarisWksText.cxx:2141
PLC()
the constructor
Definition: ClarisWksText.cxx:66
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ClarisWksText.cxx:619
ChildType m_type
the type
Definition: ClarisWksStruct.hxx:277
int m_HFId[4]
the header/footer id
Definition: ClarisWksText.cxx:379
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
Internal: class to store the paragraph properties.
Definition: ClarisWksText.cxx:117
Paragraph & operator=(Paragraph const &)=default
MWAWVariable< int > m_listLevelIndex
the actual level index
Definition: MWAWParagraph.hxx:174
@ NONE
Definition: MWAWList.hxx:46
bool m_hasTitlePage
true if the first page is a title page(ie.
Definition: ClarisWksText.cxx:373
@ CENTER
Definition: MWAWParagraph.hxx:48
std::vector< ParagraphPLC > m_paragraphList
the list of paragraph
Definition: ClarisWksText.cxx:556
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
bool updatePageSpanList(MWAWPageSpan const &page, std::vector< MWAWPageSpan > &spanList)
updates the page span list and returns true if this is possible
Definition: ClarisWksText.cxx:682
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
Paragraph(Paragraph const &)=default
Token()
constructor
Definition: ClarisWksText.cxx:413
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
std::vector< Token > m_tokenList
the list of token
Definition: ClarisWksText.cxx:558
ClarisWksText & operator=(ClarisWksText const &orig)=delete
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
ClarisWksText & m_textParser
the document manager
Definition: ClarisWksText.cxx:614
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ClarisWksText.cxx:599
bool readFonts(MWAWEntry const &entry, ClarisWksTextInternal::Zone &zone)
try to read a font sequence
Definition: ClarisWksText.cxx:1030
int m_numTextZone
the number of text zone ( ie.
Definition: ClarisWksText.cxx:549
structure used to define the child of a DSET structure
Definition: ClarisWksStruct.hxx:225
int m_rulerId
the ruler id
Definition: ClarisWksText.cxx:280
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:453
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
int m_version
the file version
Definition: ClarisWksText.cxx:578
~SubDocument() final
destructor
Definition: ClarisWksText.cxx:596
MWAWVariable< MWAWListLevel > m_listLevel
the actual level
Definition: MWAWParagraph.hxx:180
bool canSendTextAsGraphic(int number) const
check if we can send a textzone as graphic
Definition: ClarisWksText.cxx:2152
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
int m_unknown[3]
the unknown zone
Definition: ClarisWksText.cxx:439
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
int m_descent
the descent
Definition: ClarisWksText.cxx:435
@ P_Child
Definition: ClarisWksText.cxx:61
SubDocument(ClarisWksText &parser, MWAWInputStreamPtr const &input, int zoneId)
Definition: ClarisWksText.cxx:590
std::shared_ptr< ClarisWksTextInternal::State > m_state
the state
Definition: ClarisWksText.hxx:167
ClarisWksDocument & m_document
the document
Definition: ClarisWksText.hxx:161
friend std::ostream & operator<<(std::ostream &o, TextZoneInfo const &info)
operator<<
Definition: ClarisWksText.cxx:394
bool m_leftRightHF
true if the left/right header/footer are different
Definition: ClarisWksText.cxx:377
bool readTextZoneSize(MWAWEntry const &entry, ClarisWksTextInternal::Zone &zone)
try to read the text zone size
Definition: ClarisWksText.cxx:1411
std::string m_extra
a string used to store the parsing errors
Definition: ClarisWksText.cxx:441
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:207
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
Definition: ClarisWksText.cxx:232
Zone(ClarisWksStruct::DSET const &dset=ClarisWksStruct::DSET())
constructor
Definition: ClarisWksText.cxx:497
std::vector< MWAWEntry > m_zones
Definition: ClarisWksText.cxx:547
int version() const
returns the file version
Definition: ClarisWksText.cxx:654
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ TKN_GRAPHIC
Definition: ClarisWksText.cxx:408
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
some flags
Definition: ClarisWksText.cxx:284
int numColumns() const
returns the number of columns
Definition: MWAWSection.hxx:71
@ PageCount
Definition: libmwaw_internal.hxx:401
int findListId(ClarisWksTextInternal::Zone const &zone, int actListId, long cPos, long &lastPos)
try to find a list id which corresponds to the list beginning in actPos
Definition: ClarisWksText.cxx:1783
bool readParagraphs()
read the rulers block which is present at the beginning of the text in the first version of Claris Wo...
Definition: ClarisWksText.cxx:1854
@ P_Frame
Definition: ClarisWksStruct.hxx:91
@ Date
Definition: libmwaw_internal.hxx:401
void newPage(int page, bool softBreak=false)
send a page break
Definition: ClarisWksDocument.cxx:326
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
@ P_Unknown
Definition: ClarisWksText.cxx:61
bool m_continuousHF
true if the header/footer are shared with previous sections
Definition: ClarisWksText.cxx:375
std::map< int, std::shared_ptr< Zone > > m_zoneMap
the list of text zone
Definition: ClarisWksText.cxx:582
SubDocumentType
Definition: libmwaw_internal.hxx:188
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
MWAWBox2f m_box
the bdbox
Definition: ClarisWksStruct.hxx:285
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:217
bool m_parsed
a flag to know if the entry is sent or not to the listener
Definition: ClarisWksStruct.hxx:220
std::string m_extra
extra data
Definition: ClarisWksText.cxx:79
@ P_Section
Definition: ClarisWksText.cxx:61
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
int m_numParagInfo
the number of paragraph info
Definition: ClarisWksText.cxx:550
bool readTokens(MWAWEntry const &entry, ClarisWksTextInternal::Zone &zone)
try to the token zone)
Definition: ClarisWksText.cxx:1164
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
ClarisWksText(ClarisWksDocument &document)
constructor
Definition: ClarisWksText.cxx:642
@ P_Header
Definition: ClarisWksStruct.hxx:91
int m_numFont
the number of font
Definition: ClarisWksText.cxx:551
ParagraphPLC()
Definition: ClarisWksText.cxx:233
virtual void setParagraph(MWAWParagraph const ¶graph)=0
sets the paragraph
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::string m_extra
extra data
Definition: ClarisWksText.cxx:286
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
@ P_Token
Definition: ClarisWksText.cxx:61
@ C_SubText
Definition: ClarisWksStruct.hxx:96
int m_unknown
an unknown flags
Definition: ClarisWksText.cxx:553
bool sendText(ClarisWksTextInternal::Zone const &zone, MWAWListenerPtr listener)
send the text zone to the listener
Definition: ClarisWksText.cxx:1469
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
@ TKN_PAGENUMBER
Definition: ClarisWksText.cxx:408
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
the main class to read the text part of Claris Works file
Definition: ClarisWksText.hxx:76
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:46
friend std::ostream & operator<<(std::ostream &o, ParagraphPLC const &info)
Definition: ClarisWksText.cxx:241
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
bool readParagraph(int id=-1)
the definition of ruler : present at the beginning of the text in the first version of Claris Works :...
Definition: ClarisWksText.cxx:1893
int m_fatherId
the father id
Definition: ClarisWksText.cxx:552
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
int m_id
the subdocument id
Definition: ClarisWksText.cxx:616
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksText.hxx:164
Definition: ClarisWksText.cxx:495
@ TKN_FOOTNOTE
Definition: ClarisWksText.cxx:408
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
std::shared_ptr< ClarisWksStruct::DSET > readDSETZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksText.cxx:759
bool sendZone(int number, MWAWListenerPtr const &listener=MWAWListenerPtr())
sends the zone data to the listener (if it exists )
Definition: ClarisWksText.cxx:2160
int m_firstPage
the first page
Definition: ClarisWksText.cxx:371
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::shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:134
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:335
int m_size[2]
the size(?)
Definition: ClarisWksText.cxx:433
@ Char
Definition: MWAWPosition.hxx:51
PLCType
the different plc type
Definition: ClarisWksText.cxx:61
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
int m_zoneId
the zone id which correspond to this type
Definition: ClarisWksText.cxx:429
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:367
Internal: the subdocument of a ClarisWksDocument.
Definition: ClarisWksText.cxx:588
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
MWAWSection getSection() const
returns a section
Definition: ClarisWksText.cxx:307
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:114
virtual ~ClarisWksText()
destructor
Definition: ClarisWksText.cxx:650
@ DECIMAL
Definition: MWAWList.hxx:46
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
PLCType m_type
the PLC types
Definition: ClarisWksText.cxx:75
std::string m_extra
a string to store unparsed data
Definition: ClarisWksText.cxx:381
internal class used to store a section
Definition: ClarisWksText.cxx:290
TokenType
Definition: ClarisWksText.cxx:408
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisWksText.cxx:2169
int m_page
the page
Definition: ClarisWksText.cxx:431
@ P_Footer
Definition: ClarisWksStruct.hxx:91
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
long m_pos
the character position
Definition: ClarisWksText.cxx:361
std::vector< int > m_columnsSep
the columns separator
Definition: ClarisWksText.cxx:367
TextZoneInfo()
constructor
Definition: ClarisWksText.cxx:387
@ BULLET
Definition: MWAWList.hxx:46
internal class used to store a text zone
Definition: ClarisWksText.cxx:385
@ Right
Definition: libmwaw_internal.hxx:176
int m_styleId
the style id ( via the style lookup table )
Definition: ClarisWksText.cxx:282
@ JustificationFull
Definition: MWAWParagraph.hxx:90
double m_labelWidth
the minimum label width
Definition: MWAWList.hxx:105
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
small structure to keep information about a list level
Definition: MWAWList.hxx:44
std::vector< TextZoneInfo > m_textZoneList
the list of zone
Definition: ClarisWksText.cxx:559
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
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
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
ClarisWksText(ClarisWksText const &orig)=delete
std::multimap< long, PLC > m_plcMap
the plc map
Definition: ClarisWksText.cxx:560
@ Left
Definition: libmwaw_internal.hxx:176
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:103
Internal: the structures of a ClarisWksText.
Definition: ClarisWksText.cxx:59
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_numColumns
the number of column
Definition: ClarisWksText.cxx:363
@ XLeft
Definition: MWAWPosition.hxx:55
@ YBottom
Definition: MWAWPosition.hxx:57
a basic structure
Definition: ClarisWksStruct.hxx:53
MWAWEntry m_fieldEntry
the field name entry
Definition: ClarisWksText.cxx:437
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
int m_numChar
the number of char in text zone
Definition: ClarisWksText.cxx:548
int m_rulerId
the ruler
Definition: ClarisWksStyleManager.hxx:230
std::vector< Section > m_sectionList
the list of section
Definition: ClarisWksText.cxx:557
~Zone() final
destructor
Definition: ClarisWksText.cxx:563
@ RIGHT
Definition: MWAWParagraph.hxx:48
~Paragraph() final
destructor
Definition: ClarisWksText.cxx:149
Class to store font.
Definition: MWAWFont.hxx:44
std::vector< int > m_columnsWidth
the columns width
Definition: ClarisWksText.cxx:365
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
bool m_startOnNewPage
a new section generates a page break
Definition: ClarisWksText.cxx:369
@ P_TextZone
Definition: ClarisWksText.cxx:61
MWAWVariable< int > m_listId
the list id (if know )
Definition: MWAWParagraph.hxx:176
Internal: class to store field definition: TOKN entry.
Definition: ClarisWksText.cxx:411
State()
constructor
Definition: ClarisWksText.cxx:570
long m_pos
Definition: ClarisWksText.cxx:401
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Internal: the state of a ClarisWksText.
Definition: ClarisWksText.cxx:568
bool readTextSection(ClarisWksTextInternal::Zone &zone)
try to read the section
Definition: ClarisWksText.cxx:1289
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator <<
Definition: ClarisWksText.cxx:335
@ TKN_UNKNOWN
Definition: ClarisWksText.cxx:408
@ P_Footnote
Definition: ClarisWksStruct.hxx:91
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
TokenType m_type
the type
Definition: ClarisWksText.cxx:427
friend std::ostream & operator<<(std::ostream &o, PLC const &plc)
operator<<
Definition: ClarisWksText.cxx:82
int m_N
the number of character
Definition: ClarisWksText.cxx:403
bool readSTYL_RULR(int N, int fSz)
read a STYL Paragraph sequence
Definition: ClarisWksText.cxx:1826
int numPages() const
returns the document number of page
Definition: ClarisWksDocument.cxx:245
void updateListLevel()
update the list level
Definition: ClarisWksText.cxx:153
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:71
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksText.hxx:170
int m_id
the id
Definition: ClarisWksText.cxx:77
Internal : the different plc types: mainly for debugging.
Definition: ClarisWksText.cxx:64
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20