22#ifndef WKS4_SPREADSHEET_H
23#define WKS4_SPREADSHEET_H
28#include <librevenge-stream/librevenge-stream.h>
131 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
147 std::shared_ptr<WKS4SpreadsheetInternal::State>
m_state;
This class parses Microsoft Works spreadsheet or a database file.
Definition WKS4.h:49
a cellule of a WKS4 spreadsheet
Definition WKS4Spreadsheet.cpp:187
libwps::DebugFile & m_asciiFile
the ascii file
Definition WKS4Spreadsheet.h:149
~WKS4Spreadsheet()
destructor
Definition WKS4Spreadsheet.cpp:520
bool readMsWorksDOSPageBreak()
reads a page break (in a dos file)
Definition WKS4Spreadsheet.cpp:1372
bool readFilterClose()
reads the filter's end zone 11:54
Definition WKS4Spreadsheet.cpp:2200
friend class WKS4Parser
Definition WKS4Spreadsheet.h:51
bool readReportOpen()
reads the report's header zone 17:54
Definition WKS4Spreadsheet.cpp:2234
bool readMsWorksDOSCellExtraProperty()
reads the actual cell addendum properties ( contains at least the color)
Definition WKS4Spreadsheet.cpp:1298
std::shared_ptr< WKS4SpreadsheetInternal::State > m_state
the internal state
Definition WKS4Spreadsheet.h:147
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition WKS4Spreadsheet.h:58
libwps::DebugFile & ascii()
returns the debug file
Definition WKS4Spreadsheet.h:137
bool readMsWorksPageBreak()
reads a page break
Definition WKS4Spreadsheet.cpp:768
bool readHiddenColumns()
reads the list of hidden columns zone ( unused )
Definition WKS4Spreadsheet.cpp:648
int getNumSpreadsheets() const
returns the number of spreadsheet
Definition WKS4Spreadsheet.cpp:548
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition WKS4Spreadsheet.cpp:536
bool readMsWorksRowSize()
reads the row size ( in ???)
Definition WKS4Spreadsheet.cpp:731
WKS4Spreadsheet(WKS4Spreadsheet const &orig)=delete
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition WKS4Spreadsheet.cpp:553
std::shared_ptr< WKSContentListener > m_listener
Definition WKS4Spreadsheet.h:143
bool readFilterOpen()
reads the filter's header zone 10:54
Definition WKS4Spreadsheet.cpp:2174
void sendCellContent(WKS4SpreadsheetInternal::Cell const &cell)
send the cell data
Definition WKS4Spreadsheet.cpp:2386
bool readFormula(long endPos, Vec2i const &pos, std::vector< WKSContentListener::FormulaInstruction > &formula, std::string &error)
Definition WKS4Spreadsheet.cpp:1900
WKS4Spreadsheet(WKS4Parser &parser)
constructor
Definition WKS4Spreadsheet.cpp:510
WKS4Spreadsheet & operator=(WKS4Spreadsheet const &orig)=delete
void sendSpreadsheet(int sId)
send the sId'th spreadsheet
Definition WKS4Spreadsheet.cpp:2336
bool readCellFormulaResult()
reads the result of a text formula
Definition WKS4Spreadsheet.cpp:1745
bool readMsWorksDOSCellProperty()
reads actualCell properties
Definition WKS4Spreadsheet.cpp:1042
bool readReportClose()
reads the report's end zone 18:54
Definition WKS4Spreadsheet.cpp:2302
bool readMsWorksStyle()
reads a style
Definition WKS4Spreadsheet.cpp:798
bool readColumnSize()
reads the column size ( in ??? )
Definition WKS4Spreadsheet.cpp:602
bool readMsWorksDOSFieldProperty()
reads a field property
Definition WKS4Spreadsheet.cpp:1211
RVNGInputStreamPtr m_input
the input
Definition WKS4Spreadsheet.h:142
bool readSheetSize()
reads sheet size
Definition WKS4Spreadsheet.cpp:564
WKS4Parser & m_mainParser
the listener (if set)
Definition WKS4Spreadsheet.h:145
int version() const
return the file version
Definition WKS4Spreadsheet.cpp:529
bool readCell()
reads a cell content data
Definition WKS4Spreadsheet.cpp:1405
bool readMsWorksColumnSize()
reads the column size ( in ???)
Definition WKS4Spreadsheet.cpp:692
void resetInput(RVNGInputStreamPtr const &input)
reset the main input
Definition WKS4Spreadsheet.cpp:524
Definition WPSDebug.h:208
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition libwps_internal.h:114
Vec2< int > Vec2i
Vec2 of int.
Definition libwps_internal.h:702
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition libwps_internal.h:87
Definition WKS4Spreadsheet.cpp:46
the state of WKS4Spreadsheet
Definition WKS4Spreadsheet.cpp:427
small class use to define a formula instruction
Definition WKSContentListener.h:58