Go to the documentation of this file.
22 #ifndef LOTUS_SPREADSHEET_H
23 #define LOTUS_SPREADSHEET_H
28 #include <librevenge-stream/librevenge-stream.h>
41 struct Table123Styles;
124 bool readRowSizes(std::shared_ptr<WPSStream> stream,
long endPos);
127 bool readCell(std::shared_ptr<WPSStream> stream);
141 static bool readNote(std::shared_ptr<WPSStream> stream,
long endPos);
149 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
163 std::shared_ptr<LotusSpreadsheetInternal::State>
m_state;
bool operator==(Style const &st) const
operator==
Definition: LotusSpreadsheet.cpp:81
@ F_Text
Definition: WKSContentListener.h:59
bool readRowSizes(std::shared_ptr< WPSStream > stream, long endPos)
reads the row size ( in pt*32 )
Definition: LotusSpreadsheet.cpp:1759
Style(Style const &)=default
Cell()
constructor
Definition: LotusSpreadsheet.cpp:223
int version() const
return the file version
Definition: LotusSpreadsheet.cpp:914
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
LotusSpreadsheet(LotusSpreadsheet const &orig)=delete
LotusSpreadsheet * m_sheetParser
the spreadsheet parse
Definition: LotusSpreadsheet.cpp:779
std::vector< int > m_rowPageBreaksList
the list of row page break
Definition: LotusSpreadsheet.cpp:483
int m_styleId
the style
Definition: LotusSpreadsheet.cpp:252
bool readSheetName1B(std::shared_ptr< WPSStream > stream, long endPos)
reads a sheet name: zone 0x1b 36b0
Definition: LotusSpreadsheet.cpp:3262
int m_version
the file version
Definition: LotusSpreadsheet.cpp:735
CellsList()
constructor
Definition: LotusSpreadsheet.cpp:196
librevenge::RVNGString m_fileName
the file name (external reference)
Definition: WKSContentListener.h:96
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: WKSContentListener.h:155
bool hasSomeSpreadsheetData() const
returns true if some spreadsheet are defined
Definition: LotusSpreadsheet.cpp:921
static std::string str()
Definition: WPSDebug.h:200
WPSRowFormat getRowHeight(int row) const
returns the row size in point
Definition: LotusSpreadsheet.cpp:341
bool readSheetHeader(std::shared_ptr< WPSStream > stream)
try to read a sheet header: 0xc3
Definition: LotusSpreadsheet.cpp:1879
@ F_Long
Definition: WKSContentListener.h:59
@ C_FORMULA
Definition: WKSContentListener.h:102
#define WPS_BOLD_BIT
Definition: libwps_internal.h:506
char const * m_name
Definition: LotusSpreadsheet.cpp:2862
void addCellStyle(Vec2i const &cols, Vec2i const &rows, Format123Style const &format)
add a extra style to a list of cell
Definition: LotusSpreadsheet.cpp:621
static void addPos(long)
Definition: WPSDebug.h:220
a class used to store the styles of a table in LotusSpreadsheet in a lotus 123 files
Definition: LotusSpreadsheet.cpp:570
@ F_Cell
Definition: WKSContentListener.h:59
bool readCell(std::shared_ptr< WPSStream > stream)
reads a cell
Definition: LotusSpreadsheet.cpp:2109
long end() const
returns the end offset
Definition: WPSEntry.h:78
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: LotusSpreadsheet.h:67
bool empty() const
returns true if the spreedsheet is empty
Definition: LotusSpreadsheet.cpp:464
void setMin(Vec2< T > const &x)
resets the minimum point
Definition: libwps_internal.h:771
std::map< Vec2i, WPSRowFormat > m_rowHeightMap
the map Vec2i(min row, max row) to size in points
Definition: LotusSpreadsheet.cpp:479
static std::string getDebugStringForText(std::string const &text)
small debug function used to print text with format sequence
Definition: LotusSpreadsheet.cpp:3488
std::shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusSpreadsheet.h:161
Table123Styles()
constructor
Definition: LotusSpreadsheet.cpp:572
bool readDouble2Inv(RVNGInputStreamPtr &input, double &res, bool &isNaN)
read a double store with 2 bytes: exponent 1.5 bytes, kind of mantisse 0.5 bytes
Definition: libwps_internal.cpp:273