Quattro.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* libwps
3  * Version: MPL 2.0 / LGPLv2.1+
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Major Contributor(s):
10  * Copyright (C) 2006, 2007 Andrew Ziem
11  * Copyright (C) 2003-2005 William Lachance (william.lachance@sympatico.ca)
12  * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
13  *
14  * For minor contributions see the git repository.
15  *
16  * Alternatively, the contents of this file may be used under the terms
17  * of the GNU Lesser General Public License Version 2.1 or later
18  * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
19  * applicable instead of those above.
20  */
21 
22 #ifndef QUATTRO_H
23 #define QUATTRO_H
24 
25 #include <vector>
26 
27 #include <librevenge-stream/librevenge-stream.h>
28 #include "libwps/libwps.h"
29 
30 #include "libwps_internal.h"
31 #include "libwps_tools_win.h"
32 
33 #include "WKSParser.h"
34 
35 namespace QuattroParserInternal
36 {
37 class SubDocument;
38 struct State;
39 }
40 
41 //class QuattroChart;
42 class QuattroGraph;
43 class QuattroSpreadsheet;
44 
46 {
47 class CellReference;
48 }
53 class QuattroParser final : public WKSParser
54 {
56  //friend class QuattroChart;
57  friend class QuattroGraph;
58  friend class QuattroSpreadsheet;
59 public:
63  char const *password=nullptr);
65  ~QuattroParser() final;
67  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
69  bool checkHeader(WPSHeader *header, bool strict=false);
70 
71 protected:
73  int version() const;
77  libwps_tools_win::Font::Type getDefaultFontType() const;
79  bool getExternalFileName(int fId, librevenge::RVNGString &fName) const;
81  bool getField(int fId, librevenge::RVNGString &text,
82  QuattroFormulaInternal::CellReference &ref,
83  librevenge::RVNGString const &fileName) const;
84 
85  //
86  // interface with QuattroSpreadsheet
87  //
88 
90  bool getColor(int id, WPSColor &color) const;
92  bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const;
94  Vec2f getCellPosition(int sheetId, Vec2i const &cell) const;
95 
96  //
97  // interface with QuattroGraph
98  //
99 
101  bool sendPageGraphics(int sheetId) const;
103  bool sendGraphics(int sheetId, Vec2i const &cell) const;
104 
105  //
106  //
107  //
108 
110  std::shared_ptr<WKSContentListener> createListener(librevenge::RVNGSpreadsheetInterface *interface);
111 
113  void sendHeaderFooter(bool header);
114 
115  //
116  // low level
117  //
118 
120  bool checkHeader(std::shared_ptr<WPSStream> stream, bool strict);
122  bool readZones();
124  bool readOLEZones(std::shared_ptr<WPSStream> &stream);
126  bool readZone(std::shared_ptr<WPSStream> &stream);
127 
129 
131  bool readFieldName(std::shared_ptr<WPSStream> stream);
133  bool readCellPosition(std::shared_ptr<WPSStream> stream);
135  bool readExternalData(std::shared_ptr<WPSStream> stream);
137  bool readFontDef(std::shared_ptr<WPSStream> stream);
139  bool readColorList(std::shared_ptr<WPSStream> stream);
141  bool readStyleName(std::shared_ptr<WPSStream> stream);
143  bool readHeaderFooter(std::shared_ptr<WPSStream> stream, bool header);
145  bool readPaneAttribute(std::shared_ptr<WPSStream> stream);
147  bool readOptimizer(std::shared_ptr<WPSStream> stream);
149  bool readQueryCommand(std::shared_ptr<WPSStream> stream);
151  bool readSerieExtension(std::shared_ptr<WPSStream> stream);
153  bool readCString(std::shared_ptr<WPSStream> stream, librevenge::RVNGString &string, long maxSize);
154 
156 
158  bool readBlockList(std::shared_ptr<WPSStream> stream);
160  bool readZone341(std::shared_ptr<WPSStream> stream);
161 
163 
165  bool parseOLEStream(RVNGInputStreamPtr input, std::string const &avoid="");
167  bool readOleLinkInfo(std::shared_ptr<WPSStream> stream, librevenge::RVNGString &link);
169  bool readOleBOlePart(std::shared_ptr<WPSStream> stream);
170 
172 
174  RVNGInputStreamPtr decodeStream(RVNGInputStreamPtr input, std::vector<uint8_t> const &key) const;
175 
176  std::shared_ptr<WKSContentListener> m_listener;
177  std::shared_ptr<QuattroParserInternal::State> m_state;
179  // the chart manager
180  // std::shared_ptr<QuattroChart> m_chartParser;
182  std::shared_ptr<QuattroGraph> m_graphParser;
185 };
186 
187 #endif /* WPS4_H */
188 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
QuattroParserInternal::SubDocument::SubDocument
SubDocument(RVNGInputStreamPtr const &input, QuattroParser &pars, bool header)
constructor for a text entry
Definition: Quattro.cpp:84
WKSContentListener::FormulaInstruction::F_Text
Definition: WKSContentListener.h:59
WPS_N_ELEMENTS
#define WPS_N_ELEMENTS(m)
Definition: libwps_internal.h:124
QuattroParserInternal::ZoneName::m_extra
std::string m_extra
the extra data
Definition: Quattro.cpp:140
QuattroParser::readOleBOlePart
bool readOleBOlePart(std::shared_ptr< WPSStream > stream)
try to read the BOlePart sub stream: a zone which contains 5 long
Definition: Quattro.cpp:2650
QuattroFormula.h
QuattroParser::m_listener
std::shared_ptr< WKSContentListener > m_listener
Definition: Quattro.h:176
QuattroParser::parseOLEStream
bool parseOLEStream(RVNGInputStreamPtr input, std::string const &avoid="")
try to parse the OLE stream(except the main stream)
Definition: Quattro.cpp:820
QuattroParser::sendHeaderFooter
void sendHeaderFooter(bool header)
send the header/footer
Definition: Quattro.cpp:1987
WPS_STRIKEOUT_BIT
#define WPS_STRIKEOUT_BIT
Definition: libwps_internal.h:507
QuattroParser::readOLEZones
bool readOLEZones(std::shared_ptr< WPSStream > &stream)
finds the different OLE zones: wb2
Definition: Quattro.cpp:875
QuattroFormulaInternal::CellReference
small class use to store Quattro Pro cell reference (.wb1-3 and qpw)
Definition: QuattroFormula.h:42
libwps::DebugStream::str
static std::string str()
Definition: WPSDebug.h:200
libwps::DebugFile::open
static bool open(std::string const &)
Definition: WPSDebug.h:215
QuattroParserInternal::State::getDefaultFont
WPSFont getDefaultFont() const
returns a default font (Courier12) with file's version to define the default encoding *‍/
Definition: Quattro.cpp:180
WPS_BOLD_BIT
#define WPS_BOLD_BIT
Definition: libwps_internal.h:506
QuattroParser::getCellPosition
Vec2f getCellPosition(int sheetId, Vec2i const &cell) const
returns the beginning position of a cell
Definition: Quattro.cpp:571
libwps::DebugFile::addPos
static void addPos(long)
Definition: WPSDebug.h:220
QuattroParser::m_graphParser
std::shared_ptr< QuattroGraph > m_graphParser
the graph manager
Definition: Quattro.h:182
WPSPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
Definition: WPSPageSpan.h:164
QuattroParserInternal::ZoneName::m_name
std::string m_name
the zone name
Definition: Quattro.cpp:138
QuattroParser::readOleLinkInfo
bool readOleLinkInfo(std::shared_ptr< WPSStream > stream, librevenge::RVNGString &link)
try to read the link info sub stream
Definition: Quattro.cpp:2619
QuattroParserInternal::State::m_footerString
librevenge::RVNGString m_footerString
the footer string
Definition: Quattro.cpp:213
WPSCell.h
libwps_tools_win::Font::Type
Type
enum Type
Definition: libwps_tools_win.h:46
WPSHeader::setKind
void setKind(libwps::WPSKind kind)
Definition: WPSHeader.h:64
WPS_SUBSCRIPT_BIT
#define WPS_SUBSCRIPT_BIT
Definition: libwps_internal.h:500
QuattroParserInternal::State::m_fontsList
std::vector< Font > m_fontsList
the font list
Definition: Quattro.cpp:198
WPS_UNDERLINE_BIT
#define WPS_UNDERLINE_BIT
Definition: libwps_internal.h:508
QuattroParserInternal::State::State
State(libwps_tools_win::Font::Type fontType, char const *password)
constructor
Definition: Quattro.cpp:147
WKSSubDocument.h
libwps
Definition: libwps_internal.cpp:38
libwps_OLE::getOLEInputStream
RVNGInputStreamPtr getOLEInputStream(RVNGInputStreamPtr input)
Definition: WPSOLEStream.cpp:1881
QuattroParserInternal::ZoneName::ZoneName
ZoneName(char const *name, char const *extra=nullptr)
constructor
Definition: Quattro.cpp:132
QuattroParserInternal::State::m_idToExternalFileMap
std::map< int, librevenge::RVNGString > m_idToExternalFileMap
map id to filename
Definition: Quattro.cpp:202
QuattroParserInternal::State::m_readingZone341
bool m_readingZone341
true if zone 341 is being read. Avoids recursion.
Definition: Quattro.cpp:223
WPS_SUPERSCRIPT_BIT
#define WPS_SUPERSCRIPT_BIT
Definition: libwps_internal.h:499
QuattroGraph.h
WPSStream
small structure use to store a stream and it debug file
Definition: WPSStream.h:29
QuattroParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: Quattro.cpp:87
QuattroParserInternal::Font::Font
Font(libwps_tools_win::Font::Type type)
constructor
Definition: Quattro.cpp:65
QuattroParserInternal::State
the state of QuattroParser
Definition: Quattro.cpp:144
QuattroParserInternal::SubDocument::operator==
bool operator==(std::shared_ptr< WPSSubDocument > const &doc) const final
operator==
Definition: Quattro.cpp:90
QuattroParserInternal::State::m_isEncrypted
bool m_isEncrypted
true if the file is encrypted
Definition: Quattro.cpp:217
QuattroParserInternal::State::m_fontType
libwps_tools_win::Font::Type m_fontType
the user font type
Definition: Quattro.cpp:190
libwps::DebugFile::reset
static void reset()
Definition: WPSDebug.h:224
QuattroParser::readFontDef
bool readFontDef(std::shared_ptr< WPSStream > stream)
read a font: zone cf, fc and 110
Definition: Quattro.cpp:1842
WPSOLEParser
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: WPSOLEParser.h:85
libwps::DebugFile::skipZone
static void skipZone(long, long)
Definition: WPSDebug.h:226
libwps_tools_win::Font::unicodeString
static librevenge::RVNGString unicodeString(const unsigned char *p, unsigned long size, Type type, bool skipUnknown=true)
converts a list of character in unicode
Definition: libwps_tools_win.cpp:7283
WPSPageSpan::ALL
Definition: WPSPageSpan.h:44
QuattroParser::readQueryCommand
bool readQueryCommand(std::shared_ptr< WPSStream > stream)
read the table query command zone: 12f
Definition: Quattro.cpp:2161
WPSHeader.h
WPS_OUTLINE_BIT
#define WPS_OUTLINE_BIT
Definition: libwps_internal.h:501
QuattroParserInternal::State::m_headerString
librevenge::RVNGString m_headerString
the header string
Definition: Quattro.cpp:211
WPS_DOUBLE_UNDERLINE_BIT
#define WPS_DOUBLE_UNDERLINE_BIT
Definition: libwps_internal.h:505
WPSFont
define the font properties
Definition: WPSFont.h:36
QuattroFormulaInternal::CellReference::addInstruction
void addInstruction(WKSContentListener::FormulaInstruction const &instr)
add an instruction
Definition: QuattroFormula.h:51
QuattroParser::readFieldName
bool readFieldName(std::shared_ptr< WPSStream > stream)
read a list of field name + ...: zone b
Definition: Quattro.cpp:1721
WPS_ITALICS_BIT
#define WPS_ITALICS_BIT
Definition: libwps_internal.h:502
WPSPageSpan::HEADER
Definition: WPSPageSpan.h:43
WPSPageSpan::FOOTER
Definition: WPSPageSpan.h:43
WPSHeader::setMajorVersion
void setMajorVersion(int version)
Definition: WPSHeader.h:94
QuattroParserInternal::State::getDefaultFontType
libwps_tools_win::Font::Type getDefaultFontType() const
return the default font style
Definition: Quattro.cpp:170
QuattroParser::m_state
std::shared_ptr< QuattroParserInternal::State > m_state
the listener (if set)
Definition: Quattro.h:178
WPSHeader::setCreator
void setCreator(libwps::WPSCreator creator)
Definition: WPSHeader.h:54
QuattroParser::getExternalFileName
bool getExternalFileName(int fId, librevenge::RVNGString &fName) const
returns the name of the fId file
Definition: Quattro.cpp:495
WKSContentListener::FormulaInstruction::m_type
What m_type
the type
Definition: WKSContentListener.h:77
WPSPageSpan.h
WPSStringStream
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: WPSStringStream.h:41
Quattro.h
QuattroParser::getColor
bool getColor(int id, WPSColor &color) const
returns the color corresponding to an id
Definition: Quattro.cpp:576
QuattroParserInternal::State::m_password
const char * m_password
the password (if known)
Definition: Quattro.cpp:215
QuattroFormulaInternal::CellReference::m_cells
std::vector< WKSContentListener::FormulaInstruction > m_cells
the list of instruction coding each cell's block
Definition: QuattroFormula.h:70
WPSOLEParser::parse
bool parse(RVNGInputStreamPtr fileInput)
tries to parse basic OLE (excepted mainName)
Definition: WPSOLEParser.cpp:318
WPSHeader::setNeedEncoding
void setNeedEncoding(bool needEncoding)
Definition: WPSHeader.h:84
WKSParser::getInput
RVNGInputStreamPtr & getInput()
Definition: WKSParser.h:41
libwps::ParseException
Definition: libwps_internal.h:151
libwps::Debug::flattenFileName
std::string flattenFileName(std::string const &name)
Definition: WPSDebug.h:185
Vec2< int >
libwps::PasswordException
Definition: libwps_internal.h:156
WPS_DEBUG_MSG
#define WPS_DEBUG_MSG(M)
Definition: libwps_internal.h:134
libwps::readU32
uint32_t readU32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:76
QuattroSpreadsheet
This class parses Quattro Pro spreadsheet file.
Definition: QuattroSpreadsheet.h:51
QuattroParserInternal::State::m_actualSheet
int m_actualSheet
the actual sheet
Definition: Quattro.cpp:196
WKSParser.h
QuattroFormulaInternal
namespace to regroup data used to read QuattroPro .wb1-3, .qpw formula
Definition: Quattro.h:45
WPSOLEParser.h
WPSHeader
Definition: WPSHeader.h:31
WPSHeader::setIsEncrypted
void setIsEncrypted(bool isEncrypted)
Definition: WPSHeader.h:74
QuattroParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
called by WPSDocument to parse the file
Definition: Quattro.cpp:595
libwps_tools_win::Font::UNKNOWN
Definition: libwps_tools_win.h:63
QuattroParser::QuattroParser
QuattroParser(RVNGInputStreamPtr &input, WPSHeaderPtr &header, libwps_tools_win::Font::Type encoding=libwps_tools_win::Font::UNKNOWN, char const *password=nullptr)
constructor
Definition: Quattro.cpp:470
QuattroParser::sendPageGraphics
bool sendPageGraphics(int sheetId) const
send the page graphic corresponding to a sheet
Definition: Quattro.cpp:556
libwps::read32
int32_t read32(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:85
libwps::SubDocumentType
SubDocumentType
Definition: libwps_internal.h:248
WKSContentListener::FormulaInstruction
small class use to define a formula instruction
Definition: WKSContentListener.h:57
QuattroParser::readZone
bool readZone(std::shared_ptr< WPSStream > &stream)
try to read a zone
Definition: Quattro.cpp:968
QuattroParser::readCString
bool readCString(std::shared_ptr< WPSStream > stream, librevenge::RVNGString &string, long maxSize)
try to read a basic C string, knowing the maximum size
Definition: Quattro.cpp:1699
QuattroParserInternal::State::m_idToExternalNameMap
std::map< int, librevenge::RVNGString > m_idToExternalNameMap
map id to external name
Definition: Quattro.cpp:204
WPSFont.h
QuattroParser::version
int version() const
return the file version
Definition: Quattro.cpp:485
WPSEntry.h
WPSFont::m_attributes
uint32_t m_attributes
the font attributes defined as a set of bits
Definition: WPSFont.h:85
libwps.h
libwps::DebugFile::addNote
static void addNote(char const *)
Definition: WPSDebug.h:221
libwps::WPS_SPREADSHEET
Definition: WPSDocument.h:60
libwps::read8
int8_t read8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:59
WPSFont::m_size
double m_size
font size
Definition: WPSFont.h:83
WPSSubDocumentPtr
std::shared_ptr< WPSSubDocument > WPSSubDocumentPtr
shared pointer to WPSSubDocument
Definition: libwps_internal.h:111
QuattroParser::getField
bool getField(int fId, librevenge::RVNGString &text, QuattroFormulaInternal::CellReference &ref, librevenge::RVNGString const &fileName) const
returns the text and cell of a field instruction
Definition: Quattro.cpp:507
libwps::readDouble8
bool readDouble8(RVNGInputStreamPtr &input, double &res, bool &isNaN)
read a double store with 8 bytes: mantisse 6.5 bytes, exponent 1.5 bytes
Definition: libwps_internal.cpp:173
QuattroParserInternal
Internal: namespace to define internal class of QuattroParser.
Definition: Quattro.cpp:59
libwps::WPS_QUATTRO_PRO
Quattro Pro wq1,wq2, wb1,wb2,wb3, qpw spreadsheets and qpw spreadsheet.
Definition: WPSDocument.h:50
WPSHeaderPtr
std::shared_ptr< WPSHeader > WPSHeaderPtr
shared pointer to WPSHeader
Definition: libwps_internal.h:109
QuattroGraph
This class parses QuattroPro graph file.
Definition: QuattroGraph.h:55
WKSSubDocument
Basic class used to store a spreadsheet sub document.
Definition: WKSSubDocument.h:35
libwps::DebugStream
Definition: WPSDebug.h:191
libwps::readU8
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:40
QuattroParser::~QuattroParser
~QuattroParser() final
destructor
Definition: Quattro.cpp:481
QuattroParser::checkHeader
bool checkHeader(WPSHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: Quattro.cpp:673
QuattroParser::sendGraphics
bool sendGraphics(int sheetId, Vec2i const &cell) const
send the graphic corresponding to a cell
Definition: Quattro.cpp:561
QuattroParser::readSerieExtension
bool readSerieExtension(std::shared_ptr< WPSStream > stream)
read the serie extension zone: 2dc
Definition: Quattro.cpp:2481
QuattroParserInternal::State::m_idToZoneNameMap
std::map< int, ZoneName > m_idToZoneNameMap
map zone id to zone name
Definition: Quattro.cpp:221
QuattroParser
This class parses Quattro Pro spreadsheet: .wb1, ..., .wb3.
Definition: Quattro.h:53
libwps_tools_win.h
QuattroParser::readPaneAttribute
bool readPaneAttribute(std::shared_ptr< WPSStream > stream)
read the pane attribute: d1
Definition: Quattro.cpp:2374
WPSPageSpan
Definition: WPSPageSpan.h:38
QuattroParser::readZone341
bool readZone341(std::shared_ptr< WPSStream > stream)
reads a big zone(chart?) which contains sub zones: 341
Definition: Quattro.cpp:2551
WPSPageSpan::setHeaderFooter
void setHeaderFooter(const HeaderFooterType type, const HeaderFooterOccurrence occurrence, WPSSubDocumentPtr &subDocument)
Definition: WPSPageSpan.cpp:111
QuattroParserInternal::State::m_metaData
librevenge::RVNGPropertyList m_metaData
the meta data
Definition: Quattro.cpp:194
WKSContentListener::FormulaInstruction::m_content
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: WKSContentListener.h:79
QuattroParser::readZones
bool readZones()
finds the different zones (spreadsheet, chart, print, ...)
Definition: Quattro.cpp:760
QuattroFormulaInternal::CellReference::empty
bool empty() const
return true if we have not read any reference
Definition: QuattroFormula.h:63
libwps::readU16
uint16_t readU16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:64
libwps_tools_win::Language::name
std::string name(long id)
returns the name given Windows id
Definition: libwps_tools_win.cpp:7332
QuattroParser::getDefaultFontType
libwps_tools_win::Font::Type getDefaultFontType() const
returns the default font type, ie.
Definition: Quattro.cpp:490
QuattroParser::readColorList
bool readColorList(std::shared_ptr< WPSStream > stream)
read a color lits: zone e8
Definition: Quattro.cpp:1905
RVNGInputStreamPtr
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr
shared pointer to librevenge::RVNGInputStream
Definition: libwps_internal.h:87
QuattroParser::m_spreadsheetParser
std::shared_ptr< QuattroSpreadsheet > m_spreadsheetParser
the spreadsheet manager
Definition: Quattro.h:184
libwps::DebugFile::addDelimiter
static void addDelimiter(long, char)
Definition: WPSDebug.h:222
QuattroParser::getFont
bool getFont(int id, WPSFont &font, libwps_tools_win::Font::Type &type) const
returns the font corresponding to an id
Definition: Quattro.cpp:581
libwps::readDataToEnd
bool readDataToEnd(RVNGInputStreamPtr &input, librevenge::RVNGBinaryData &data)
try to read the last bytes from input and store them in a librevenge::RVNGBinaryData
Definition: libwps_internal.cpp:346
libwps_tools_win::Font::WIN3_WEUROPE
Definition: libwps_tools_win.h:52
QuattroParserInternal::Font
the font of a QuattroParser
Definition: Quattro.cpp:62
QuattroParserInternal::SubDocument::m_header
bool m_header
a flag to known if we need to send the header or the footer
Definition: Quattro.cpp:102
QuattroParser::readOptimizer
bool readOptimizer(std::shared_ptr< WPSStream > stream)
read the first optimizer zone: 103
Definition: Quattro.cpp:2040
libwps::read16
int16_t read16(librevenge::RVNGInputStream *input)
Definition: libwps_internal.cpp:71
WKSParser::ascii
libwps::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: WKSParser.h:63
libwps_internal.h
QuattroParser::readCellPosition
bool readCellPosition(std::shared_ptr< WPSStream > stream)
read the cell's position: zone 96
Definition: Quattro.cpp:2340
WKSContentListener.h
WPSColor
the class to store a color
Definition: libwps_internal.h:280
QuattroParser::createListener
std::shared_ptr< WKSContentListener > createListener(librevenge::RVNGSpreadsheetInterface *interface)
creates the main listener
Definition: Quattro.cpp:643
WPS_SHADOW_BIT
#define WPS_SHADOW_BIT
Definition: libwps_internal.h:503
QuattroParser::decodeStream
RVNGInputStreamPtr decodeStream(RVNGInputStreamPtr input, std::vector< uint8_t > const &key) const
try to decode a stream, if successful, replace the stream'input by the new one
Definition: Quattro.cpp:2674
WPSStream.h
WKSContentListener
Definition: WKSContentListener.h:53
QuattroParserInternal::State::m_idToFieldMap
std::map< int, std::pair< librevenge::RVNGString, QuattroFormulaInternal::CellReference > > m_idToFieldMap
map id to field
Definition: Quattro.cpp:206
librevenge
Definition: WPSOLEStream.h:33
QuattroParserInternal::State::m_colorsList
std::vector< WPSColor > m_colorsList
the color list
Definition: Quattro.cpp:200
QuattroParser::readBlockList
bool readBlockList(std::shared_ptr< WPSStream > stream)
reads some cell reference list (potential followed by other data)
Definition: Quattro.cpp:2215
WKSParser::getFileInput
RVNGInputStreamPtr getFileInput()
Definition: WKSParser.cpp:44
libwps_tools_win
some Windows classes and tools
Definition: libwps_tools_win.cpp:31
QuattroParserInternal::State::m_isDecoded
bool m_isDecoded
true if the main stream has been decoded
Definition: Quattro.cpp:219
libwps::DebugFile
Definition: WPSDebug.h:207
QuattroParserInternal::State::m_pageSpan
WPSPageSpan m_pageSpan
the actual document size
Definition: Quattro.cpp:208
QuattroSpreadsheet.h
QuattroParser::readStyleName
bool readStyleName(std::shared_ptr< WPSStream > stream)
read a style name: zone d0
Definition: Quattro.cpp:1941
WPSStringStream.h
QuattroParserInternal::SubDocument
Internal: the subdocument of a WPS4Parser.
Definition: Quattro.cpp:80
QuattroParserInternal::State::m_version
int m_version
the file version
Definition: Quattro.cpp:192
WPSOLEStream.h
QuattroParser::readExternalData
bool readExternalData(std::shared_ptr< WPSStream > stream)
read a external filename/name: zone 97,98
Definition: Quattro.cpp:1793
WPSColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libwps_internal.h:345
WPSFont::m_name
librevenge::RVNGString m_name
font name
Definition: WPSFont.h:81
libwps::DebugFile::setStream
static void setStream(RVNGInputStreamPtr)
Definition: WPSDebug.h:212
QuattroParserInternal::ZoneName
a zone name
Definition: Quattro.cpp:129
QuattroParser::readHeaderFooter
bool readHeaderFooter(std::shared_ptr< WPSStream > stream, bool header)
reads the header/footer: zone 25,26
Definition: Quattro.cpp:2000
WKSParser
Definition: WKSParser.h:33

Generated on Tue Jan 21 2020 18:52:40 for libwps by doxygen 1.8.16