Go to the documentation of this file.
37 #ifndef MS_WKS_MWAW_TABLE
38 # define MS_WKS_MWAW_TABLE
94 std::shared_ptr<MsWksTableInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
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
Internal: the table of a MsWksTable.
Definition: MsWksTable.cxx:92
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MsWksDocument.hxx:113
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
the cell content
Definition: MsWksTable.cxx:94
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
Table()
empty constructor
Definition: MsWksTable.cxx:121
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
Chart()
empty constructor
Definition: MsWksTable.cxx:71
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
int m_numRows
the number of rows
Definition: MsWksTable.cxx:144
MsWksTable(MsWksTable const &orig)=delete
bool sendTable(int zoneId)
try to a table zone
Definition: MsWksTable.cxx:199
MWAWColor m_baseSurfaceColor
the 2D surface color
Definition: MsWksGraph.hxx:237
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
std::vector< int > m_colsDim
Definition: MsWksTable.cxx:145
Internal: the graphic style of MsWksGraph.
Definition: MsWksGraph.hxx:208
MWAWEntry m_backgroundEntry
the background entry
Definition: MsWksTable.cxx:84
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
@ boldBit
Definition: MWAWFont.hxx:190
Internal: the structures of a MsWksTable.
Definition: MsWksTable.cxx:58
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
bool readTable(int numCol, int numRow, int zoneId, MsWksGraph::Style const &style)
try to read a table zone
Definition: MsWksTable.cxx:287
@ BottomBit
Definition: libmwaw_internal.hxx:178
Cell()
Definition: MsWksTable.cxx:95
MWAWVec2i m_pos
the cell position
Definition: MsWksTable.cxx:102
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
State()
constructor
Definition: MsWksTable.cxx:156
bool getColor(int id, MWAWColor &col, int vers)
returns the color which correspond to an index
Definition: MsWksDocument.cxx:583
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
std::shared_ptr< MsWksTableInternal::State > m_state
the state
Definition: MsWksTable.hxx:94
@ Simple
Definition: MWAWFont.hxx:49
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
MWAWGraphicStyle m_style
the graphic style
Definition: MsWksTable.cxx:143
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
Table(MsWksGraph::Style const &style)
constructor
Definition: MsWksTable.cxx:109
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWksTable.hxx:91
std::map< int, Chart > m_idChartMap
the map id->chart
Definition: MsWksTable.cxx:167
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
Internal: the state of a MsWksTable.
Definition: MsWksTable.cxx:154
bool readChart(int chartId, MsWksGraph::Style const &style)
try to read a chart zone
Definition: MsWksTable.cxx:496
std::string m_text
the text
Definition: MsWksTable.cxx:106
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
@ embossBit
Definition: MWAWFont.hxx:190
void send(int id, MWAWPosition const &pos)
send a zone (textbox, ...).
Definition: MsWksGraph.cxx:2829
Defines MWAWCell (cell content and format)
@ TableDimBit
Definition: MWAWTable.hxx:56
Cell const * getCell(MWAWVec2i const &pos) const
try to find a cell
Definition: MsWksTable.cxx:133
MsWksGraph * m_graphParser
the graph parser;
Definition: MsWksTable.hxx:99
bool sendChart(int chartId)
try to a chart zone
Definition: MsWksTable.cxx:429
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
int m_textZonesId[3]
the three text pictures
Definition: MsWksTable.cxx:82
MsWksTable & operator=(MsWksTable const &orig)=delete
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:518
@ shadowBit
Definition: MWAWFont.hxx:191
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MsWksDocument.hxx:132
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
bool getZonePosition(int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const
returns the position of the zone defined by zoneId
Definition: MsWksGraph.cxx:1140
void setChartZoneId(int chartId, int zoneId)
fix the correspondance between a chart and the zone id
Definition: MsWksTable.cxx:419
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
@ RightBit
Definition: libmwaw_internal.hxx:178
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:210
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:133
std::vector< Cell > m_cellsList
the list of cell
Definition: MsWksTable.cxx:149
int version() const
returns the file version
Definition: MsWksTable.cxx:189
virtual ~MsWksTable()
destructor
Definition: MsWksTable.cxx:186
MsWksTable(MWAWParser &parser, MsWksDocument &zone, MsWksGraph &graph)
constructor
Definition: MsWksTable.cxx:177
int m_version
the version
Definition: MsWksTable.cxx:164
MWAWGraphicStyle m_style
the graphic style
Definition: MsWksTable.cxx:80
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
Chart(MsWksGraph::Style const &style)
constructor
Definition: MsWksTable.cxx:63
@ LeftBit
Definition: libmwaw_internal.hxx:178
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
@ italicBit
Definition: MWAWFont.hxx:190
int m_zoneId
the chart zone id (in the graph parser )
Definition: MsWksTable.cxx:86
int m_numCols
the number of columns
Definition: MsWksTable.cxx:144
MWAWParser * m_mainParser
the main parser;
Definition: MsWksTable.hxx:97
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
@ TopBit
Definition: libmwaw_internal.hxx:178
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
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:130
@ YTop
Definition: MWAWPosition.hxx:57
Internal: the chart of a MsWksTable.
Definition: MsWksTable.cxx:61
std::vector< int > m_rowsDim
the rows dimensions
Definition: MsWksTable.cxx:145
@ Frame
Definition: MWAWPosition.hxx:51
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
@ Spreadsheet
Definition: MWAWParser.hxx:53
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
@ XLeft
Definition: MWAWPosition.hxx:55
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
int getEntryPicture(int zoneId, MWAWEntry &zone, bool autoSend=true, int order=-1000)
checks if the next zone is a v2 picture and returns a zone id ( or -1)
Definition: MsWksGraph.cxx:1457
MsWksDocument & m_zone
the input zone
Definition: MsWksTable.hxx:101
Class to store font.
Definition: MWAWFont.hxx:44
MWAWFont m_font
the default font
Definition: MsWksTable.cxx:147
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
std::map< int, Table > m_idTableMap
the map id->table
Definition: MsWksTable.cxx:169
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
MWAWFont m_font
the font
Definition: MsWksTable.cxx:104
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
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
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
the main class to read the table ( or a chart ) of a Microsoft Works file
Definition: MsWksTable.hxx:59
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20