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 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 getLeftTopPosition(Vec2i const &cell, int spreadsheet, Vec2f &pos)
returns the left top position of a cell
Definition: LotusSpreadsheet.cpp:800
void sendSpreadsheet(int sheetId)
send the data
Definition: LotusSpreadsheet.cpp:2392
bool readExtraRowFormats(std::shared_ptr< WPSStream > stream)
try to read an extra row format: 0xc5
Definition: LotusSpreadsheet.cpp:1907
Internal: the subdocument of a LotusSpreadsheet.
Definition: LotusSpreadsheet.cpp:736
void sendText(RVNGInputStreamPtr &input, long endPos, LotusSpreadsheetInternal::Style const &style) const
try to send a formated text
Definition: LotusSpreadsheet.cpp:3333
LotusParser & m_mainParser
the listener (if set)
Definition: LotusSpreadsheet.h:159
LotusSpreadsheet(LotusParser &parser)
constructor
Definition: LotusSpreadsheet.cpp:783
std::shared_ptr< LotusSpreadsheetInternal::State > m_state
the internal state
Definition: LotusSpreadsheet.h:163
~LotusSpreadsheet()
destructor
Definition: LotusSpreadsheet.cpp:791
a cellule of a Lotus spreadsheet
Definition: LotusSpreadsheet.cpp:210
bool readRowFormats(std::shared_ptr< WPSStream > stream)
reads the row formats
Definition: LotusSpreadsheet.cpp:1056
LotusSpreadsheet & operator=(LotusSpreadsheet const &orig)=delete
bool readCellName(std::shared_ptr< WPSStream > stream)
reads a cell or list of cell name
Definition: LotusSpreadsheet.cpp:2018
bool readNote(std::shared_ptr< WPSStream > stream, long endPos)
try to read a note: subZone id 9065
Definition: LotusSpreadsheet.cpp:3292
a class used to store the styles of a table in LotusSpreadsheet in a lotus 123 files ...
Definition: LotusSpreadsheet.cpp:552
a class used to store a style of a cell in LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:56
void sendTextNote(RVNGInputStreamPtr &input, WPSEntry const &entry) const
try to send a note
Definition: LotusSpreadsheet.cpp:3429
void cleanState()
clean internal state
Definition: LotusSpreadsheet.cpp:795
This class parses a wk3,wk4,123 Lotus spreadsheet.
Definition: Lotus.h:72
void updateState()
update internal state (must be called one time before sending data)
Definition: LotusSpreadsheet.cpp:819
std::shared_ptr< WKSContentListener > m_listener
Definition: LotusSpreadsheet.h:157
void setLastSpreadsheetId(int id)
set the last spreadsheet number ( default 0)
Definition: LotusSpreadsheet.cpp:887
int version() const
return the file version
Definition: LotusSpreadsheet.cpp:897
bool readSheetName1B(std::shared_ptr< WPSStream > stream, long endPos)
reads a sheet name: zone 0x1b 36b0
Definition: LotusSpreadsheet.cpp:3251
WKSParser * parser() const
returns the parser
Definition: WKSSubDocument.h:44
bool hasSomeSpreadsheetData() const
returns true if some spreadsheet are defined
Definition: LotusSpreadsheet.cpp:904
This class parses the Lotus style.
Definition: LotusStyleManager.h:47
bool readRowSizes(std::shared_ptr< WPSStream > stream, long endPos)
reads the row size ( in pt*32 )
Definition: LotusSpreadsheet.cpp:1742
void sendRowContent(LotusSpreadsheetInternal::Spreadsheet const &sheet, int row, LotusSpreadsheetInternal::Table123Styles const *table123Styles)
send the cell data in a row
Definition: LotusSpreadsheet.cpp:2488
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
std::shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusSpreadsheet.h:161
static std::string getDebugStringForText(std::string const &text)
small debug function used to print text with format sequence
Definition: LotusSpreadsheet.cpp:3466
bool readSheetHeader(std::shared_ptr< WPSStream > stream)
try to read a sheet header: 0xc3
Definition: LotusSpreadsheet.cpp:1863
the spreadsheet of a LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:284
bool readCell(std::shared_ptr< WPSStream > stream)
reads a cell
Definition: LotusSpreadsheet.cpp:2093
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: LotusSpreadsheet.h:67
bool readSheetName(std::shared_ptr< WPSStream > stream)
reads a sheet name: zone 0x23
Definition: LotusSpreadsheet.cpp:1804
This class parses Microsoft Works spreadsheet file.
Definition: LotusSpreadsheet.h:52
bool readRowFormat(std::shared_ptr< WPSStream > stream, LotusSpreadsheetInternal::Style &style, int &numCell, long endPos)
reads a cell's row format
Definition: LotusSpreadsheet.cpp:1183
bool readColumnDefinition(std::shared_ptr< WPSStream > stream)
reads the columns definitions
Definition: LotusSpreadsheet.cpp:920
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: LotusSpreadsheet.cpp:814
bool readColumnSizes(std::shared_ptr< WPSStream > stream)
reads the column sizes ( in char )
Definition: LotusSpreadsheet.cpp:1002
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
bool parseVariable(std::string const &variable, WKSContentListener::FormulaInstruction &instr) const
Definition: LotusSpreadsheet.cpp:2776
bool readCellsFormat801(std::shared_ptr< WPSStream > stream, WPSVec3i const &minC, WPSVec3i const &maxC, int typeZone)
reads a cell zone formats: zone 801, lotus 123
Definition: LotusSpreadsheet.cpp:1389
basic class to store an entry in a file This contained :
Definition: WPSEntry.h:38
bool readFormula(WPSStream &stream, long endPos, int sId, bool newFormula, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)
Definition: LotusSpreadsheet.cpp:2914
Definition: LotusSpreadsheet.cpp:51
small structure use to store a stream and it debug file
Definition: WPSStream.h:29
void sendCellContent(LotusSpreadsheetInternal::Cell const &cell, LotusSpreadsheetInternal::Style const &style, int numRepeated=1)
send the cell data
Definition: LotusSpreadsheet.cpp:2722
small class use to define a formula instruction
Definition: WKSContentListener.h:57