Go to the documentation of this file.
38 #ifndef CLARIS_WKS_TABLE
39 # define CLARIS_WKS_TABLE
133 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:156
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:101
shared_ptr< ClarisWksTableInternal::State > m_state
the state
Definition: ClarisWksTable.hxx:133
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:180
bool hasSurfaceColor() const
returns true if the surface is defined
Definition: MWAWGraphicStyle.hxx:288
void add(shared_ptr< MWAWCell > cell)
add a new cells
Definition: MWAWTable.hxx:74
int m_styleId
the style id
Definition: ClarisWksTable.cxx:83
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
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:355
the KSEN structure a structure related to paragraph and cell style
Definition: ClarisWksStyleManager.hxx:172
the struct which stores the Table
Definition: ClarisWksTable.cxx:128
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:129
ClarisWksTable & operator=(ClarisWksTable const &orig)
Table(ClarisWksStruct::DSET const &dset, ClarisWksTable &parser, ClarisWksStyleManager &styleManager)
constructor
Definition: ClarisWksTable.cxx:131
MWAWBorder::Style m_lineType
the line type
Definition: ClarisWksStyleManager.hxx:182
ClarisWksTable * m_parser
the main parser
Definition: ClarisWksTable.cxx:187
std::map< int, shared_ptr< Table > > m_tableMap
map id -> table
Definition: ClarisWksTable.cxx:283
bool readTablePointers(ClarisWksTableInternal::Table &table)
try to read a list of pointer ( unknown meaning )
Definition: ClarisWksTable.cxx:742
ClarisWksTable(ClarisWksDocument &document)
constructor
Definition: ClarisWksTable.cxx:291
ClarisWksStyleManager * m_styleManager
the style manager
Definition: ClarisWksTable.cxx:189
@ BottomBit
Definition: libmwaw_internal.hxx:168
std::vector< shared_ptr< MWAWCell > > m_cellsList
the list of cells
Definition: MWAWTable.hxx:179
virtual void removeChild(int cId, bool normalChild)
remove a child from a list.
Definition: ClarisWksTable.cxx:156
shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:114
shared_ptr< ClarisWksStruct::DSET > readTableZone(ClarisWksStruct::DSET const &zone, MWAWEntry const &entry, bool &complete)
reads the zone Text DSET
Definition: ClarisWksTable.cxx:324
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
friend std::ostream & operator<<(std::ostream &o, Table const &doc)
operator<<
Definition: ClarisWksTable.cxx:147
Internal: the structures of a ClarisWksTable.
Definition: ClarisWksTable.cxx:60
long m_mainPtr
the relative main pointer
Definition: ClarisWksTable.cxx:193
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:433
Internal: the border of a ClarisWksTable.
Definition: ClarisWksTable.cxx:62
@ None
Definition: libmwaw_internal.hxx:316
ClarisWksDocument & m_document
the document
Definition: ClarisWksTable.hxx:127
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
int m_ksenId
the ksen id
Definition: ClarisWksStyleManager.hxx:212
the structure to store the style in a ClarisWksStyleManager
Definition: ClarisWksStyleManager.hxx:192
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
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:277
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:51
bool m_auxiliaryDetached
true if the auxiliary zone is detached
Definition: ClarisWksTable.cxx:195
bool sendZone(int number)
sends the zone data to the listener (if it exists )
Definition: ClarisWksTable.cxx:445
void update(Table const &table)
use table to finish updating cell
Definition: ClarisWksTable.cxx:206
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:306
MWAWBorder::Type m_lineRepeat
the line repetition
Definition: ClarisWksStyleManager.hxx:184
MWAWVec2i m_position[2]
the origin and the end of edge position : unit librevenge::RVNG_POINT/256
Definition: ClarisWksTable.cxx:81
virtual bool sendContent(MWAWListenerPtr listener, MWAWTable &table)
send the cell content to a listener
Definition: ClarisWksTable.cxx:265
Internal: a cell inside a ClarisWksTable.
Definition: ClarisWksTable.cxx:90
std::vector< int > m_otherChilds
the list of other child
Definition: ClarisWksStruct.hxx:174
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
virtual ~ClarisWksTable()
destructor
Definition: ClarisWksTable.cxx:297
bool readTableBorders(ClarisWksTableInternal::Table &table)
try to read the table border
Definition: ClarisWksTable.cxx:483
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
bool get(int styleId, Style &style) const
return the style corresponding to a styleId
Definition: ClarisWksStyleManager.cxx:1645
int m_graphicId
the graphic (checkme)
Definition: ClarisWksStyleManager.hxx:214
bool m_isSent
a flag to know if the border is already sent
Definition: ClarisWksTable.cxx:85
a border
Definition: libmwaw_internal.hxx:314
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:146
TableCell(TableCell const &orig)
@ VALIGN_BOTTOM
Definition: MWAWCell.hxx:122
bool readTableBordersId(ClarisWksTableInternal::Table &table)
try to read the table border
Definition: ClarisWksTable.cxx:681
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
@ RightBit
Definition: libmwaw_internal.hxx:168
int version() const
returns the file version
Definition: ClarisWksTable.cxx:301
int m_styleId
the style id
Definition: ClarisWksTable.cxx:118
friend std::ostream & operator<<(std::ostream &o, Border const &bord)
operator<<
Definition: ClarisWksTable.cxx:66
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
std::vector< Border > m_bordersList
the list of border
Definition: ClarisWksTable.cxx:191
TableCell()
constructor
Definition: ClarisWksTable.cxx:92
ClarisWksTable(ClarisWksTable const &orig)
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:53
DSET()
constructor
Definition: ClarisWksStruct.hxx:70
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
@ VALIGN_CENTER
Definition: MWAWCell.hxx:122
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
int m_lines
an int used to add some oblique line ( or cross )
Definition: ClarisWksStyleManager.hxx:186
Table & operator=(Table const &orig)
@ E_Cross
Definition: MWAWCell.hxx:125
@ LeftBit
Definition: libmwaw_internal.hxx:168
@ Double
Definition: libmwaw_internal.hxx:318
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: ClarisWksTable.cxx:465
bool readTableCells(ClarisWksTableInternal::Table &table)
try to read the table cells
Definition: ClarisWksTable.cxx:562
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:137
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
TableCell * get(int id)
return a cell corresponding to id
Definition: ClarisWksTable.cxx:138
@ E_Line1
Definition: MWAWCell.hxx:125
@ TopBit
Definition: libmwaw_internal.hxx:168
friend std::ostream & operator<<(std::ostream &o, TableCell const &cell)
operator<<
Definition: ClarisWksTable.cxx:102
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:379
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
TableCell & operator=(TableCell const &orig)
bool askMainToSendZone(int number)
ask the main parser to send a zone
Definition: ClarisWksTable.cxx:181
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:277
int numPages() const
returns the number of pages
Definition: ClarisWksTable.cxx:312
Border()
the constructor
Definition: ClarisWksTable.cxx:64
@ E_Line2
Definition: MWAWCell.hxx:125
void updateCells()
finish updating all cells
Definition: ClarisWksTable.cxx:173
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
virtual ~Table()
destructor
Definition: ClarisWksTable.cxx:202
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
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
MWAWParserStatePtr m_parserState
the parser state
Definition: ClarisWksTable.hxx:130
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2498
State()
constructor
Definition: ClarisWksTable.cxx:279
int m_zoneId
the cell zone ( 0 is no content )
Definition: ClarisWksTable.cxx:111
std::vector< int > m_bordersId[4]
the list of border id : Left, Top, Right, Bottom
Definition: ClarisWksTable.cxx:116
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18