Go to the documentation of this file.
37 #ifndef MS_WKS_MWAW_TABLE
38 # define MS_WKS_MWAW_TABLE
94 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:161
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
Internal: the table of a MsWksTable.
Definition: MsWksTable.cxx:88
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MsWksDocument.hxx:108
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
the cell content
Definition: MsWksTable.cxx:90
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
Table()
empty constructor
Definition: MsWksTable.cxx:106
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
Chart()
empty constructor
Definition: MsWksTable.cxx:69
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
int m_numRows
the number of rows
Definition: MsWksTable.cxx:121
bool sendTable(int zoneId)
try to a table zone
Definition: MsWksTable.cxx:168
MWAWColor m_baseSurfaceColor
the 2D surface color
Definition: MsWksGraph.hxx:226
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
std::vector< int > m_colsDim
Definition: MsWksTable.cxx:122
Internal: the graphic style of MsWksGraph.
Definition: MsWksGraph.hxx:203
MWAWEntry m_backgroundEntry
the background entry
Definition: MsWksTable.cxx:80
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
@ boldBit
Definition: MWAWFont.hxx:182
Internal: the structures of a MsWksTable.
Definition: MsWksTable.cxx:58
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
bool readTable(int numCol, int numRow, int zoneId, MsWksGraph::Style const &style)
try to read a table zone
Definition: MsWksTable.cxx:256
@ BottomBit
Definition: libmwaw_internal.hxx:168
Cell()
Definition: MsWksTable.cxx:91
MWAWVec2i m_pos
the cell position
Definition: MsWksTable.cxx:93
the class to store a color
Definition: libmwaw_internal.hxx:182
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
State()
constructor
Definition: MsWksTable.cxx:133
bool getColor(int id, MWAWColor &col, int vers)
returns the color which correspond to an index
Definition: MsWksDocument.cxx:562
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
@ Simple
Definition: MWAWFont.hxx:49
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
MWAWGraphicStyle m_style
the graphic style
Definition: MsWksTable.cxx:120
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:296
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
Table(MsWksGraph::Style const &style)
constructor
Definition: MsWksTable.cxx:100
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWksTable.hxx:91
std::map< int, Chart > m_idChartMap
the map id->chart
Definition: MsWksTable.cxx:139
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:131
bool readChart(int chartId, MsWksGraph::Style const &style)
try to read a chart zone
Definition: MsWksTable.cxx:465
std::string m_text
the text
Definition: MsWksTable.cxx:97
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
@ embossBit
Definition: MWAWFont.hxx:182
void send(int id, MWAWPosition const &pos)
send a zone (textbox, ...).
Definition: MsWksGraph.cxx:2739
@ TableDimBit
Definition: MWAWTable.hxx:56
Cell const * getCell(MWAWVec2i const &pos) const
try to find a cell
Definition: MsWksTable.cxx:110
MsWksGraph * m_graphParser
the graph parser;
Definition: MsWksTable.hxx:99
bool sendChart(int chartId)
try to a chart zone
Definition: MsWksTable.cxx:398
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
int m_textZonesId[3]
the three text pictures
Definition: MsWksTable.cxx:78
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
@ shadowBit
Definition: MWAWFont.hxx:183
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MsWksTable & operator=(MsWksTable const &orig)
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:197
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MsWksDocument.hxx:127
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
a border
Definition: libmwaw_internal.hxx:314
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
bool getZonePosition(int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const
returns the position of the zone defined by zoneId
Definition: MsWksGraph.cxx:1036
void setChartZoneId(int chartId, int zoneId)
fix the correspondance between a chart and the zone id
Definition: MsWksTable.cxx:388
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
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
void setColsSize(std::vector< float > const &cSize)
define the columns size (in point)
Definition: MWAWTable.hxx:121
std::vector< Cell > m_cellsList
the list of cell
Definition: MsWksTable.cxx:126
int version() const
returns the file version
Definition: MsWksTable.cxx:158
virtual ~MsWksTable()
destructor
Definition: MsWksTable.cxx:155
MsWksTable(MWAWParser &parser, MsWksDocument &zone, MsWksGraph &graph)
constructor
Definition: MsWksTable.cxx:149
int m_version
the version
Definition: MsWksTable.cxx:136
MWAWGraphicStyle m_style
the graphic style
Definition: MsWksTable.cxx:76
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
Chart(MsWksGraph::Style const &style)
constructor
Definition: MsWksTable.cxx:63
@ LeftBit
Definition: libmwaw_internal.hxx:168
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
@ italicBit
Definition: MWAWFont.hxx:182
int m_zoneId
the chart zone id (in the graph parser )
Definition: MsWksTable.cxx:82
int m_numCols
the number of columns
Definition: MsWksTable.cxx:121
MsWksTable(MsWksTable const &orig)
MWAWParser * m_mainParser
the main parser;
Definition: MsWksTable.hxx:97
@ TopBit
Definition: libmwaw_internal.hxx:168
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
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
@ 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:122
shared_ptr< MsWksTableInternal::State > m_state
the state
Definition: MsWksTable.hxx:94
@ 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:100
@ XLeft
Definition: MWAWPosition.hxx:55
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
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:1351
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:124
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:141
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
MWAWFont m_font
the font
Definition: MsWksTable.cxx:95
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
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
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
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
the main class to read the table ( or a chart ) of a Microsoft Works file
Definition: MsWksTable.hxx:59
Generated on Wed Jun 17 2020 06:30:11 for libmwaw by
doxygen 1.8.18