22 #ifndef LOTUS_SPREADSHEET_H
23 #define LOTUS_SPREADSHEET_H
28 #include <librevenge-stream/librevenge-stream.h>
116 bool readFormula(
long endPos,
int sId,
bool newFormula,
117 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
134 shared_ptr<LotusSpreadsheetInternal::State>
m_state;
libwps::DebugFile & ascii()
returns the debug file
Definition: LotusSpreadsheet.h:122
void sendSpreadsheet(int sheetId)
send the data
Definition: LotusSpreadsheet.cpp:1405
shared_ptr< WKSContentListener > m_listener
Definition: LotusSpreadsheet.h:128
Definition: WPSDebug.h:196
LotusParser & m_mainParser
the listener (if set)
Definition: LotusSpreadsheet.h:130
LotusSpreadsheet(LotusParser &parser)
constructor
Definition: LotusSpreadsheet.cpp:355
~LotusSpreadsheet()
destructor
Definition: LotusSpreadsheet.cpp:362
a cellule of a Lotus spreadsheet
Definition: LotusSpreadsheet.cpp:119
void sendCellContent(LotusSpreadsheetInternal::Cell const &cell, LotusSpreadsheetInternal::Style const &style)
send the cell data
Definition: LotusSpreadsheet.cpp:1465
int version() const
return the file version
Definition: LotusSpreadsheet.cpp:452
a class used to store a style of a cell in LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:52
void cleanState()
clean internal state
Definition: LotusSpreadsheet.cpp:366
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:371
LotusSpreadsheet & operator=(LotusSpreadsheet const &orig)
bool readRowSizes(long endPos)
reads the row size ( in pt*32 )
Definition: LotusSpreadsheet.cpp:919
void setLastSpreadsheetId(int id)
set the last spreadsheet number ( default 0)
Definition: LotusSpreadsheet.cpp:442
shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:108
bool readSheetName()
reads a sheet name
Definition: LotusSpreadsheet.cpp:975
This class parses the Lotus style.
Definition: LotusStyleManager.h:45
bool readCellName()
reads a cell or list of cell name
Definition: LotusSpreadsheet.cpp:1034
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:82
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:1642
bool hasSomeSpreadsheetData() const
returns true if some spreadshet are defined
Definition: LotusSpreadsheet.cpp:471
bool readRowFormat(LotusSpreadsheetInternal::Style &style, int &numCell, long endPos)
reads a cell's row format
Definition: LotusSpreadsheet.cpp:737
This class parses Microsoft Works spreadsheet file.
Definition: LotusSpreadsheet.h:50
bool readColumnDefinition()
reads the columns definitions
Definition: LotusSpreadsheet.cpp:487
bool readRowFormats()
reads the row formats
Definition: LotusSpreadsheet.cpp:617
libwps::DebugFile & m_asciiFile
the ascii file
Definition: LotusSpreadsheet.h:136
shared_ptr< LotusSpreadsheetInternal::State > m_state
the internal state
Definition: LotusSpreadsheet.h:134
bool readCell()
reads a cell
Definition: LotusSpreadsheet.cpp:1112
shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusSpreadsheet.h:132
RVNGInputStreamPtr m_input
the input
Definition: LotusSpreadsheet.h:127
Definition: LotusSpreadsheet.cpp:47
bool readColumnSizes()
reads the column sizes ( in char )
Definition: LotusSpreadsheet.cpp:566
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:459