Go to the documentation of this file.
38 #ifndef CLARIS_WKS_TABLE
39 # define CLARIS_WKS_TABLE
133 std::shared_ptr<ClarisWksTableInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
the main class to read the text part of Claris Works file
Definition: ClarisWksTable.hxx:70
int m_valign
the vertical alignment
Definition: ClarisWksStyleManager.hxx:195
ClarisWksTable & operator=(ClarisWksTable const &orig)=delete
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:421
int m_styleId
the style id
Definition: ClarisWksTable.cxx:85
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
the KSEN structure a structure related to paragraph and cell style
Definition: ClarisWksStyleManager.hxx:182
long m_headerSize
the header size
Definition: ClarisWksStruct.hxx:75
the struct which stores the Table
Definition: ClarisWksTable.cxx:133
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
Table(ClarisWksStruct::DSET const &dset, ClarisWksTable &parser, ClarisWksStyleManager &styleManager)
constructor
Definition: ClarisWksTable.cxx:136
MWAWBorder::Style m_lineType
the line type
Definition: ClarisWksStyleManager.hxx:197
ClarisWksTable * m_parser
the main parser
Definition: ClarisWksTable.cxx:198
bool readTablePointers(ClarisWksTableInternal::Table &table)
try to read a list of pointer ( unknown meaning )
Definition: ClarisWksTable.cxx:713
ClarisWksTable(ClarisWksDocument &document)
constructor
Definition: ClarisWksTable.cxx:303
ClarisWksStyleManager * m_styleManager
the style manager
Definition: ClarisWksTable.cxx:200
@ BottomBit
Definition: libmwaw_internal.hxx:178
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:447
friend std::ostream & operator<<(std::ostream &o, Table const &doc)
operator<<
Definition: ClarisWksTable.cxx:158
Internal: the structures of a ClarisWksTable.
Definition: ClarisWksTable.cxx:60
long m_mainPtr
the relative main pointer
Definition: ClarisWksTable.cxx:204
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:453
Internal: the border of a ClarisWksTable.
Definition: ClarisWksTable.cxx:62
@ None
Definition: libmwaw_internal.hxx:335
ClarisWksDocument & m_document
the document
Definition: ClarisWksTable.hxx:127
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
int m_ksenId
the ksen id
Definition: ClarisWksStyleManager.hxx:236
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
TableCell(TableCell const &orig)=delete
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
bool hasLine() const
returns true if the border is defined
Definition: MWAWGraphicStyle.hxx:410
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
bool m_auxiliaryDetached
true if the auxiliary zone is detached
Definition: ClarisWksTable.cxx:206
bool sendZone(int number)
sends the zone data to the listener (if it exists )
Definition: ClarisWksTable.cxx:459
Table(Table const &orig)=delete
void update(Table const &table)
use table to finish updating cell
Definition: ClarisWksTable.cxx:217
MWAWParser * m_mainParser
the main parser;
Definition: ClarisWksTable.hxx:136
bool askMainToSendZone(int number)
ask the main parser to send a zone
Definition: ClarisWksTable.cxx:320
Defines MWAWCell (cell content and format)
MWAWBorder::Type m_lineRepeat
the line repetition
Definition: ClarisWksStyleManager.hxx:199
MWAWVec2i m_position[2]
the origin and the end of edge position : unit librevenge::RVNG_POINT/256
Definition: ClarisWksTable.cxx:83
ClarisWksTable(ClarisWksTable const &orig)=delete
~Table() final
destructor
Definition: ClarisWksTable.cxx:213
Internal: a cell inside a ClarisWksTable.
Definition: ClarisWksTable.cxx:92
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:217
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
virtual ~ClarisWksTable()
destructor
Definition: ClarisWksTable.cxx:311
std::shared_ptr< ClarisWksStruct::DSET > readTableZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksTable.cxx:338
bool readTableBorders(ClarisWksTableInternal::Table &table)
try to read the table border
Definition: ClarisWksTable.cxx:494
std::map< int, std::shared_ptr< Table > > m_tableMap
map id -> table
Definition: ClarisWksTable.cxx:295
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
void removeChild(int cId, bool normalChild) final
remove a child from a list.
Definition: ClarisWksTable.cxx:167
TableCell & operator=(TableCell const &orig)=delete
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:238
bool m_isSent
a flag to know if the border is already sent
Definition: ClarisWksTable.cxx:87
a border
Definition: libmwaw_internal.hxx:333
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
@ VALIGN_BOTTOM
Definition: MWAWCell.hxx:134
bool readTableBordersId(ClarisWksTableInternal::Table &table)
try to read the table border
Definition: ClarisWksTable.cxx:668
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
@ RightBit
Definition: libmwaw_internal.hxx:178
int version() const
returns the file version
Definition: ClarisWksTable.cxx:315
bool sendContent(MWAWListenerPtr listener, MWAWTable &table) final
send the cell content to a listener
Definition: ClarisWksTable.cxx:276
std::vector< std::shared_ptr< MWAWCell > > m_cellsList
the list of cells
Definition: MWAWTable.hxx:191
int m_styleId
the style id
Definition: ClarisWksTable.cxx:123
friend std::ostream & operator<<(std::ostream &o, Border const &bord)
operator<<
Definition: ClarisWksTable.cxx:68
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
std::vector< Border > m_bordersList
the list of border
Definition: ClarisWksTable.cxx:202
TableCell()
constructor
Definition: ClarisWksTable.cxx:94
std::shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:134
bool readIntZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete, int intSz, std::vector< int > &res)
try to read a int structured zone where fSz to the int size: 1(int8), 2(int16), 4(int32)
Definition: ClarisWksStruct.cxx:99
DSET()
constructor
Definition: ClarisWksStruct.hxx:99
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
@ VALIGN_CENTER
Definition: MWAWCell.hxx:134
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
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
std::shared_ptr< ClarisWksTableInternal::State > m_state
the state
Definition: ClarisWksTable.hxx:133
int m_lines
an int used to add some oblique line ( or cross )
Definition: ClarisWksStyleManager.hxx:201
@ E_Cross
Definition: MWAWCell.hxx:137
@ LeftBit
Definition: libmwaw_internal.hxx:178
@ Double
Definition: libmwaw_internal.hxx:337
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisWksTable.cxx:478
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
bool readTableCells(ClarisWksTableInternal::Table &table)
try to read the table cells
Definition: ClarisWksTable.cxx:561
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
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
TableCell * get(int id)
return a cell corresponding to id
Definition: ClarisWksTable.cxx:149
@ E_Line1
Definition: MWAWCell.hxx:137
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
@ TopBit
Definition: libmwaw_internal.hxx:178
friend std::ostream & operator<<(std::ostream &o, TableCell const &cell)
operator<<
Definition: ClarisWksTable.cxx:107
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:382
long m_dataSize
the data size
Definition: ClarisWksStruct.hxx:73
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
bool askMainToSendZone(int number)
ask the main parser to send a zone
Definition: ClarisWksTable.cxx:192
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
Internal: the state of a ClarisWksTable.
Definition: ClarisWksTable.cxx:288
int numPages() const
returns the number of pages
Definition: ClarisWksTable.cxx:326
a basic structure
Definition: ClarisWksStruct.hxx:53
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Border()
the constructor
Definition: ClarisWksTable.cxx:64
@ E_Line2
Definition: MWAWCell.hxx:137
void updateCells()
finish updating all cells
Definition: ClarisWksTable.cxx:184
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
Table & operator=(Table const &orig)=delete
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksTable.hxx:130
void add(std::shared_ptr< MWAWCell > cell)
add a new cells
Definition: MWAWTable.hxx:86
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2580
State()
constructor
Definition: ClarisWksTable.cxx:290
int m_zoneId
the cell zone ( 0 is no content )
Definition: ClarisWksTable.cxx:116
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:71
std::vector< int > m_bordersId[4]
the list of border id : Left, Top, Right, Bottom
Definition: ClarisWksTable.cxx:121
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20