22#ifndef LOTUS_SPREADSHEET_H
23#define LOTUS_SPREADSHEET_H
28#include <librevenge-stream/librevenge-stream.h>
122 bool readRowSizes(shared_ptr<WPSStream> stream,
long endPos);
125 bool readCell(shared_ptr<WPSStream> stream);
139 bool readNote(shared_ptr<WPSStream> stream,
long endPos);
147 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
160 shared_ptr<LotusSpreadsheetInternal::State>
m_state;
This class parses a WK2..WK4 Lotus spreadsheet.
Definition Lotus.h:67
a cellule of a Lotus spreadsheet
Definition LotusSpreadsheet.cpp:195
the spreadsheet of a LotusSpreadsheet
Definition LotusSpreadsheet.cpp:259
Internal: the subdocument of a LotusSpreadsheet.
Definition LotusSpreadsheet.cpp:693
This class parses Microsoft Works spreadsheet file.
Definition LotusSpreadsheet.h:53
bool hasSomeSpreadsheetData() const
returns true if some spreadsheet are defined
Definition LotusSpreadsheet.cpp:853
bool readColumnDefinition(shared_ptr< WPSStream > stream)
reads the columns definitions
Definition LotusSpreadsheet.cpp:869
bool readNote(shared_ptr< WPSStream > stream, long endPos)
try to read a note: subZone id 9065
Definition LotusSpreadsheet.cpp:3221
shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition LotusSpreadsheet.h:158
shared_ptr< WKSContentListener > m_listener
Definition LotusSpreadsheet.h:154
bool readSheetName1B(shared_ptr< WPSStream > stream, long endPos)
reads a sheet name: zone 0x1b 36b0
Definition LotusSpreadsheet.cpp:3180
bool readCell(shared_ptr< WPSStream > stream)
reads a cell
Definition LotusSpreadsheet.cpp:2048
bool readRowFormats(shared_ptr< WPSStream > stream)
reads the row formats
Definition LotusSpreadsheet.cpp:1005
void sendText(RVNGInputStreamPtr &input, long endPos, LotusSpreadsheetInternal::Style const &style) const
try to send a formated text
Definition LotusSpreadsheet.cpp:3262
bool readSheetHeader(shared_ptr< WPSStream > stream)
try to read a sheet header: 0xc3
Definition LotusSpreadsheet.cpp:1812
LotusSpreadsheet & operator=(LotusSpreadsheet const &orig)
void setLastSpreadsheetId(int id)
set the last spreadsheet number ( default 0)
Definition LotusSpreadsheet.cpp:836
void sendTextNote(RVNGInputStreamPtr &input, WPSEntry const &entry) const
try to send a note
Definition LotusSpreadsheet.cpp:3358
static std::string getDebugStringForText(std::string const &text)
small debug function used to print text with format sequence
Definition LotusSpreadsheet.cpp:3395
bool readCellName(shared_ptr< WPSStream > stream)
reads a cell or list of cell name
Definition LotusSpreadsheet.cpp:1967
void sendSpreadsheet(int sheetId)
send the data
Definition LotusSpreadsheet.cpp:2347
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition LotusSpreadsheet.h:67
void cleanState()
clean internal state
Definition LotusSpreadsheet.cpp:747
bool readColumnSizes(shared_ptr< WPSStream > stream)
reads the column sizes ( in char )
Definition LotusSpreadsheet.cpp:951
shared_ptr< LotusSpreadsheetInternal::State > m_state
the internal state
Definition LotusSpreadsheet.h:160
bool readExtraRowFormats(shared_ptr< WPSStream > stream)
try to read an extra row format: 0xc5
Definition LotusSpreadsheet.cpp:1856
void updateState()
update internal state (must be called one time before sending data)
Definition LotusSpreadsheet.cpp:766
void sendRowContent(LotusSpreadsheetInternal::Spreadsheet const &sheet, int row, LotusSpreadsheetInternal::Table123Styles const *table123Styles)
send the cell data in a row
Definition LotusSpreadsheet.cpp:2449
~LotusSpreadsheet()
destructor
Definition LotusSpreadsheet.cpp:743
LotusParser & m_mainParser
the listener (if set)
Definition LotusSpreadsheet.h:156
bool readCellsFormat801(shared_ptr< WPSStream > stream, WPSVec3i const &minC, WPSVec3i const &maxC, int typeZone)
reads a cell zone formats: zone 801, lotus 123
Definition LotusSpreadsheet.cpp:1338
int version() const
return the file version
Definition LotusSpreadsheet.cpp:846
bool readSheetName(shared_ptr< WPSStream > stream)
reads a sheet name: zone 0x23
Definition LotusSpreadsheet.cpp:1753
bool readRowFormat(shared_ptr< WPSStream > stream, LotusSpreadsheetInternal::Style &style, int &numCell, long endPos)
reads a cell's row format
Definition LotusSpreadsheet.cpp:1132
LotusSpreadsheet(LotusSpreadsheet const &orig)
bool readRowSizes(shared_ptr< WPSStream > stream, long endPos)
reads the row size ( in pt*32 )
Definition LotusSpreadsheet.cpp:1691
void sendCellContent(LotusSpreadsheetInternal::Cell const &cell, LotusSpreadsheetInternal::Style const &style, int numRepeated=1)
send the cell data
Definition LotusSpreadsheet.cpp:2687
bool getLeftTopPosition(Vec2i const &cell, int spreadsheet, Vec2f &pos)
returns the left top position of a cell
Definition LotusSpreadsheet.cpp:752
bool readFormula(WPSStream &stream, long endPos, int sId, bool newFormula, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)
Definition LotusSpreadsheet.cpp:2847
This class parses the Lotus style.
Definition LotusStyleManager.h:48
basic class to store an entry in a file This contained :
Definition WPSEntry.h:39
small class which defines a vector with 3 elements
Definition libwps_internal.h:913
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:88
shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition libwps_internal.h:115
Definition LotusSpreadsheet.cpp:51
a class used to store a style of a cell in LotusSpreadsheet
Definition LotusSpreadsheet.cpp:56
a class used to store the styles of a table in LotusSpreadsheet in a lotus 123 files
Definition LotusSpreadsheet.cpp:519
small class use to define a formula instruction
Definition WKSContentListener.h:57
small structure use to store a stream and it debug file
Definition WPSStream.h:30