22 #ifndef LOTUS_SPREADSHEET_H
23 #define LOTUS_SPREADSHEET_H
28 #include <librevenge-stream/librevenge-stream.h>
120 bool readFormula(
long endPos,
int sId,
bool newFormula,
121 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
138 shared_ptr<LotusSpreadsheetInternal::State>
m_state;
libwps::DebugFile & ascii()
returns the debug file
Definition: LotusSpreadsheet.h:126
void sendSpreadsheet(int sheetId)
send the data
Definition: LotusSpreadsheet.cpp:1420
shared_ptr< WKSContentListener > m_listener
Definition: LotusSpreadsheet.h:132
Definition: WPSDebug.h:196
LotusParser & m_mainParser
the listener (if set)
Definition: LotusSpreadsheet.h:134
LotusSpreadsheet(LotusParser &parser)
constructor
Definition: LotusSpreadsheet.cpp:367
~LotusSpreadsheet()
destructor
Definition: LotusSpreadsheet.cpp:374
a cellule of a Lotus spreadsheet
Definition: LotusSpreadsheet.cpp:117
void sendRowContent(LotusSpreadsheetInternal::Spreadsheet const &sheet, int row)
send the cell data in a row
Definition: LotusSpreadsheet.cpp:1491
int version() const
return the file version
Definition: LotusSpreadsheet.cpp:463
a class used to store a style of a cell in LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:52
void cleanState()
clean internal state
Definition: LotusSpreadsheet.cpp:378
This class parses a WK2..WK4 Lotus spreadsheet.
Definition: Lotus.h:47
void updateState()
update internal state (must be called one time before sending data)
Definition: LotusSpreadsheet.cpp:383
LotusSpreadsheet & operator=(LotusSpreadsheet const &orig)
bool readRowSizes(long endPos)
reads the row size ( in pt*32 )
Definition: LotusSpreadsheet.cpp:934
void setLastSpreadsheetId(int id)
set the last spreadsheet number ( default 0)
Definition: LotusSpreadsheet.cpp:453
shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:113
bool readSheetName()
reads a sheet name
Definition: LotusSpreadsheet.cpp:990
This class parses the Lotus style.
Definition: LotusStyleManager.h:45
bool readCellName()
reads a cell or list of cell name
Definition: LotusSpreadsheet.cpp:1049
the spreadsheet of a LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:178
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: LotusSpreadsheet.h:64
bool readFormula(long endPos, int sId, bool newFormula, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)
Definition: LotusSpreadsheet.cpp:1738
bool hasSomeSpreadsheetData() const
returns true if some spreadsheet are defined
Definition: LotusSpreadsheet.cpp:482
bool readRowFormat(LotusSpreadsheetInternal::Style &style, int &numCell, long endPos)
reads a cell's row format
Definition: LotusSpreadsheet.cpp:752
This class parses Microsoft Works spreadsheet file.
Definition: LotusSpreadsheet.h:50
bool readColumnDefinition()
reads the columns definitions
Definition: LotusSpreadsheet.cpp:498
bool readRowFormats()
reads the row formats
Definition: LotusSpreadsheet.cpp:628
libwps::DebugFile & m_asciiFile
the ascii file
Definition: LotusSpreadsheet.h:140
shared_ptr< LotusSpreadsheetInternal::State > m_state
the internal state
Definition: LotusSpreadsheet.h:138
bool readCell()
reads a cell
Definition: LotusSpreadsheet.cpp:1127
shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusSpreadsheet.h:136
RVNGInputStreamPtr m_input
the input
Definition: LotusSpreadsheet.h:131
Definition: LotusSpreadsheet.cpp:47
bool readColumnSizes()
reads the column sizes ( in char )
Definition: LotusSpreadsheet.cpp:577
void sendCellContent(LotusSpreadsheetInternal::Cell const &cell, LotusSpreadsheetInternal::Style const &style, int numRepeated=1)
send the cell data
Definition: LotusSpreadsheet.cpp:1561
small class use to define a formula instruction
Definition: WKSContentListener.h:54
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: LotusSpreadsheet.cpp:470