22 #ifndef LOTUS_SPREADSHEET_H 23 #define LOTUS_SPREADSHEET_H 28 #include <librevenge-stream/librevenge-stream.h> 69 void setLastSpreadsheetId(
int id);
79 bool hasSomeSpreadsheetData()
const;
82 void sendSpreadsheet(
int sheetId);
102 bool readSheetName(shared_ptr<WPSStream> stream);
104 bool readSheetName1B(shared_ptr<WPSStream> stream,
long endPos);
107 bool readColumnDefinition(shared_ptr<WPSStream> stream);
109 bool readColumnSizes(shared_ptr<WPSStream> stream);
111 bool readRowFormats(shared_ptr<WPSStream> stream);
115 bool readRowSizes(shared_ptr<WPSStream> stream,
long endPos);
118 bool readCell(shared_ptr<WPSStream> stream);
120 bool readCellName(shared_ptr<WPSStream> stream);
125 bool readSheetHeader(shared_ptr<WPSStream> stream);
127 bool readExtraRowFormats(shared_ptr<WPSStream> stream);
132 bool readNote(shared_ptr<WPSStream> stream,
long endPos);
139 bool readFormula(
WPSStream &stream,
long endPos,
int sId,
bool newFormula,
140 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
143 static std::string getDebugStringForText(std::string
const &text);
153 shared_ptr<LotusSpreadsheetInternal::State>
m_state;
shared_ptr< WKSContentListener > m_listener
Definition: LotusSpreadsheet.h:147
a cellule of a Lotus spreadsheet
Definition: LotusSpreadsheet.cpp:192
int version() const
return the file version
Definition: Lotus.cpp:217
a class used to store a style of a cell in LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:53
bool getLeftTopPosition(Vec2i const &cell, int spreadsheet, Vec2f &pos) const
returns the left top position of a cell
Definition: Lotus.cpp:253
This class parses a WK2..WK4 Lotus spreadsheet.
Definition: Lotus.h:66
shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:115
This class parses the Lotus style.
Definition: LotusStyleManager.h:45
the spreadsheet of a LotusSpreadsheet
Definition: LotusSpreadsheet.cpp:256
WKSParser & operator=(const WKSParser &)
shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:88
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: LotusSpreadsheet.h:64
This class parses Microsoft Works spreadsheet file.
Definition: LotusSpreadsheet.h:50
shared_ptr< LotusSpreadsheetInternal::State > m_state
the internal state
Definition: LotusSpreadsheet.h:153
shared_ptr< LotusStyleManager > m_styleManager
the style manager
Definition: LotusSpreadsheet.h:151
Definition: LotusSpreadsheet.cpp:48
small structure use to store a stream and it debug file
Definition: WPSStream.h:29
small class use to define a formula instruction
Definition: WKSContentListener.h:54
shared_ptr< WKSContentListener > m_listener
Definition: Lotus.h:164
friend class LotusSpreadsheet
Definition: Lotus.h:70