22 #ifndef WKS4_SPREADSHEET_H 23 #define WKS4_SPREADSHEET_H 28 #include <librevenge-stream/librevenge-stream.h> 74 int getNumSpreadsheets()
const;
76 void sendSpreadsheet(
int sId);
86 bool readReportOpen();
88 bool readReportClose();
91 bool readFilterOpen();
93 bool readFilterClose();
103 bool readCellFormulaResult();
105 bool readSheetSize();
107 bool readColumnSize();
109 bool readHiddenColumns();
112 bool readMsWorksDOSFieldProperty();
114 bool readMsWorksDOSCellProperty();
116 bool readMsWorksDOSCellExtraProperty();
118 bool readMsWorksDOSPageBreak();
121 bool readMsWorksColumnSize();
123 bool readMsWorksRowSize();
125 bool readMsWorksPageBreak();
127 bool readMsWorksStyle();
132 bool readFormula(
long endPos,
Vec2i const &pos,
133 std::vector<WKSContentListener::FormulaInstruction> &formula, std::string &error);
149 std::shared_ptr<WKS4SpreadsheetInternal::State>
m_state;
RVNGInputStreamPtr m_input
the input
Definition: WKS4Spreadsheet.h:144
bool checkFilePosition(long pos)
return true if the pos is in the file, update the file size if need
Definition: WKS4.cpp:265
void setListener(WKSContentListenerPtr &listen)
sets the listener
Definition: WKS4Spreadsheet.h:58
a cellule of a WKS4 spreadsheet
Definition: WKS4Spreadsheet.cpp:179
librevenge::RVNGString getSheetName(int id) const
returns the name of the id's spreadsheet
Definition: WKS4.cpp:316
Definition: WPSDebug.h:207
libwps::DebugFile & m_asciiFile
the ascii file
Definition: WKS4Spreadsheet.h:151
std::shared_ptr< WKS4SpreadsheetInternal::State > m_state
the internal state
Definition: WKS4Spreadsheet.h:149
Definition: WKS4Spreadsheet.cpp:45
This class parses Microsoft Works spreadsheet or a database file.
Definition: WKS4.h:48
int version() const
return the file version
Definition: WKS4.cpp:247
std::shared_ptr< WKSContentListener > m_listener
Definition: WKS4Spreadsheet.h:145
std::shared_ptr< WKSContentListener > m_listener
Definition: WKS4.h:148
libwps::DebugFile & ascii()
returns the debug file
Definition: WKS4Spreadsheet.h:139
friend class WKS4Spreadsheet
Definition: WKS4.h:52
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
libwps::DebugFile m_asciiFile
the debug file
Definition: WKSParser.h:79
This class parses Microsoft Works spreadsheet file.
Definition: WKS4Spreadsheet.h:48
WKSParser & operator=(const WKSParser &)=delete
std::shared_ptr< WKSContentListener > WKSContentListenerPtr
shared pointer to WKSContentListener
Definition: libwps_internal.h:114
small class use to define a formula instruction
Definition: WKSContentListener.h:57
bool hasLICSCharacters() const
returns the true if the file has LICS characters
Definition: WKS4.cpp:309
void resetInput(RVNGInputStreamPtr const &newInput)
Definition: WKSParser.h:45