Go to the documentation of this file.
38 #ifndef JAZZ_SS_PARSER
39 # define JAZZ_SS_PARSER
79 void parse(
librevenge::RVNGSpreadsheetInterface *documentInterface) final;
Internal: the state of a JazzSSParser.
Definition: JazzSSParser.cxx:80
@ F_CellList
Definition: MWAWCell.hxx:398
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
MWAWCellContent m_content
the cell content
Definition: JazzSSParser.cxx:72
JazzSSParser & m_multiParser
the main parser
Definition: JazzSSParser.cxx:124
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:458
bool readFormula(long endPos, MWAWVec2i const &pos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
Definition: JazzSSParser.cxx:887
@ F_DATE
Definition: MWAWCell.hxx:56
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
State()
constructor
Definition: JazzSSParser.cxx:82
@ F_Operator
Definition: MWAWCell.hxx:398
@ boldBit
Definition: MWAWFont.hxx:190
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool readSheetSize(long endPos)
reads sheet size
Definition: JazzSSParser.cxx:750
bool sendSpreadsheet()
sends the spreadsheet
Definition: JazzSSParser.cxx:1139
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: JazzSSParser.cxx:196
@ C_NONE
Definition: MWAWCell.hxx:433
SubDocument(JazzSSParser &parser, MWAWInputStreamPtr const &input, MWAWEntry const &entry)
Definition: JazzSSParser.cxx:107
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
@ F_Function
Definition: MWAWCell.hxx:398
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
@ Simple
Definition: MWAWFont.hxx:49
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
bool readCell(int id, long endPos)
reads a cell content data
Definition: JazzSSParser.cxx:477
Cell()
constructor
Definition: JazzSSParser.cxx:63
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: JazzSSParser.cxx:139
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:417
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:258
Internal: the cell of a JazzSSParser.
Definition: JazzSSParser.cxx:61
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
@ embossBit
Definition: MWAWFont.hxx:190
~JazzSSParser() final
destructor
Definition: JazzSSParser.cxx:161
Defines MWAWCell (cell content and format)
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
@ F_Text
Definition: MWAWCell.hxx:398
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
SubDocumentType
Definition: libmwaw_internal.hxx:188
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWVec2i m_dimensions
the sheet dimensions
Definition: JazzSSParser.cxx:93
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
@ shadowBit
Definition: MWAWFont.hxx:191
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
Internal: the subdocument of a JazzSSParserInternal.
Definition: JazzSSParser.cxx:105
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: JazzSSParser.cxx:1086
Type m_type
the type
Definition: MWAWCell.hxx:415
bool readZone11(long endPos)
reads a query/name/range... data (zone 11)
Definition: JazzSSParser.cxx:319
Internal: the structures of a JazzSSParser.
Definition: JazzSSParser.cxx:59
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: JazzSSParser.cxx:127
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
std::shared_ptr< JazzSSParserInternal::State > m_state
the state
Definition: JazzSSParser.hxx:119
MWAWFont m_font
the cell font
Definition: MWAWCell.hxx:370
bool readDocument(long endPos)
read the basic document zones (zone 15): selection, columns' width, default font, preferences....
Definition: JazzSSParser.cxx:371
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
the main class to read a Jazz spreadsheet v1 (Lotus) document and some databases.
Definition: JazzSSParser.hxx:67
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:656
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
Definition: libmwaw_internal.hxx:144
Definition: JazzSSParser.cxx:780
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MWAWFont m_font
the cell default font
Definition: JazzSSParser.cxx:95
std::vector< float > m_widths
the columns width
Definition: JazzSSParser.cxx:97
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:419
Cell(Cell const &)=default
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:421
@ C_FORMULA
Definition: MWAWCell.hxx:433
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:147
@ F_Cell
Definition: MWAWCell.hxx:398
std::map< MWAWVec2i, Cell > m_posToCells
map of cells sorted by columns
Definition: JazzSSParser.cxx:99
@ F_Long
Definition: MWAWCell.hxx:398
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
@ F_NUMBER
Definition: MWAWCell.hxx:56
int m_arity
Definition: JazzSSParser.cxx:782
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
@ F_TIME
Definition: MWAWCell.hxx:56
@ italicBit
Definition: MWAWFont.hxx:190
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
bool m_isDatabase
true if the file is a database file
Definition: JazzSSParser.cxx:91
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
@ C_TEXT
Definition: MWAWCell.hxx:433
@ F_Double
Definition: MWAWCell.hxx:398
@ MWAW_T_JAZZLOTUS
Jazz (Lotus): v1 ; retrieve the spreadsheet and if the resource fork is available,...
Definition: MWAWDocument.hxx:236
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:423
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
bool createZones()
finds the different objects zones
Definition: JazzSSParser.cxx:220
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:425
JazzSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: JazzSSParser.cxx:152
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
uint32_t flags() const
returns the font flags
Definition: MWAWFont.hxx:320
@ HALIGN_LEFT
Definition: MWAWCell.hxx:128
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
~Cell() final
destructor
Definition: JazzSSParser.cxx:75
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
@ C_NUMBER
Definition: MWAWCell.hxx:433
~SubDocument() final
destructor
Definition: JazzSSParser.cxx:114
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
@ hiddenBit
Definition: MWAWFont.hxx:191
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
static Functions const s_listFunctions[]
Definition: JazzSSParser.cxx:785
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
the main parse function
Definition: JazzSSParser.cxx:168
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
char const * m_name
Definition: JazzSSParser.cxx:781
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
@ F_TEXT
Definition: MWAWCell.hxx:56
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20