Go to the documentation of this file.
34 #ifndef MS_WKS_SS_PARSER
35 # define MS_WKS_SS_PARSER
78 void parse(
librevenge::RVNGSpreadsheetInterface *documentInterface) final;
void sendNote(int id)
try to send a note
Definition: MsWksSSParser.cxx:299
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Definition: libmwaw_internal.hxx:401
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
std::vector< int > m_widthCols
the column size in pixels(?)
Definition: MsWksSSParser.cxx:129
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:282
int m_actPage
the actual page
Definition: MsWksSSParser.cxx:170
a zone of a MsWksDocument ( main, header, footer )
Definition: MsWksDocument.hxx:80
bool readCell(int sz, MWAWVec2i const &cellPos, MsWksSSParserInternal::Cell &cell)
reads a cell content data
Definition: MsWksSSParser.cxx:861
Definition: MWAWCell.hxx:56
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:68
void setName(std::string const &nam)
sets the name of the entry
Definition: MWAWEntry.hxx:147
std::string m_name
the spreadsheet name
Definition: MsWksSSParser.cxx:137
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:474
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
Spreadsheet()
constructor
Definition: MsWksSSParser.cxx:104
~MsWksSSParser() final
destructor
Definition: MsWksSSParser.cxx:248
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
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:443
Definition: MWAWCell.hxx:56
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:186
Definition: MWAWCell.hxx:58
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:278
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: MsWksSSParser.cxx:140
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MsWksSSParser.cxx:362
Definition: MWAWFont.hxx:190
Definition: MWAWCell.hxx:58
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:449
std::ostream & operator<<(std::ostream &o, Cell const &cell)
operator<<
Definition: MsWksSSParser.cxx:91
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
Definition: MWAWCell.hxx:56
Definition: MWAWCell.hxx:419
the class to store a color
Definition: libmwaw_internal.hxx:192
friend std::ostream & operator<<(std::ostream &o, Cell const &cell)
operator<<
Definition: MsWksSSParser.cxx:91
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:563
std::vector< Cell > m_cells
the list of not empty cells
Definition: MsWksSSParser.cxx:131
int version() const
returns the works version
Definition: MWAWParser.hxx:108
Definition: MWAWCell.hxx:58
the spreadsheet of a of a MsWksSSParser
Definition: MsWksSSParser.cxx:100
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MsWksSSParser.cxx:1214
int m_noteId
the note id
Definition: MsWksSSParser.cxx:87
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:239
Definition: MWAWFont.hxx:49
a class used to parse some basic oles Tries to read the different ole parts and stores their contents...
Definition: MWAWOLEParser.hxx:85
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
Definition: MWAWCell.hxx:58
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:41
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:255
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
Definition: MWAWFont.hxx:190
Definition: libmwaw_internal.hxx:401
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MsWksSSParser.cxx:201
Internal: the subdocument of a MsWksSSParser.
Definition: MsWksSSParser.cxx:178
MWAWCellContent m_content
the cell content
Definition: MsWksSSParser.cxx:84
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
void setProtected(bool fl)
sets the cell's protected flag
Definition: MWAWCell.hxx:267
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:561
Definition: MWAWFont.hxx:191
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
const MWAWPageSpan & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MsWksSSParser.cxx:217
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:76
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:66
Cell & operator=(Cell const &)=default
const std::string & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
double m_value
the cell value
Definition: MWAWCell.hxx:470
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:559
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
std::shared_ptr< MsWksSSParserInternal::State > m_state
the state
Definition: MsWksSSParser.hxx:117
int m_numPages
the number of page of the final document
Definition: MsWksSSParser.cxx:170
small class use to define a sheet cell content
Definition: MWAWCell.hxx:378
bool createZones()
finds the different objects zones
Definition: MsWksSSParser.cxx:388
Definition: libmwaw_internal.hxx:143
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
~SubDocument() final
destructor
Definition: MsWksSSParser.cxx:188
std::shared_ptr< MsWksDocument > m_document
the actual zone
Definition: MsWksSSParser.hxx:123
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:168
SubDocument(MsWksSSParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: MsWksSSParser.cxx:181
a field
Definition: libmwaw_internal.hxx:399
Definition: libmwaw_internal.hxx:401
the main class to read a Microsoft Works spreadsheet file
Definition: MsWksSSParser.hxx:65
std::vector< float > convertInPoint(std::vector< int > const &list, float defSize) const
convert the m_widthCols in a vector of of point size
Definition: MsWksSSParser.cxx:114
std::vector< int > m_listPageBreaks
the list of page break
Definition: MsWksSSParser.cxx:133
a cell of a MsWksSSParser
Definition: MsWksSSParser.cxx:61
Definition: MWAWCell.hxx:419
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:147
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
bool readSSheetZone()
try to read the spreadsheet data zone
Definition: MsWksSSParser.cxx:453
Definition: MWAWCell.hxx:56
Definition: MWAWCell.hxx:56
Internal: the structures of a MsWksSSParser.
Definition: MsWksSSParser.cxx:58
Definition: MWAWFont.hxx:190
Definition: MWAWCell.hxx:58
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Definition: MWAWCell.hxx:419
Spreadsheet m_spreadsheet
the spreadsheet
Definition: MsWksSSParser.cxx:169
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
~Cell() final
destructor
Definition: MsWksSSParser.cxx:152
bool hasBorders() const
return true if the cell has some border
Definition: MWAWCell.hxx:295
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:98
Definition: MsWksDocument.hxx:78
bool readEndHeader()
reads the end of the header
bool isEmpty() const
returns true if the cell do contain any content
Definition: MsWksSSParser.cxx:75
std::vector< MWAWEntry > m_listZones
the list of different Zones
Definition: MsWksSSParser.hxx:120
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
State()
constructor
Definition: MsWksSSParser.cxx:160
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: MsWksSSParser.cxx:266
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:435
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: MsWksSSParser.cxx:1153
void init()
inits all internal variables
Definition: MsWksSSParser.cxx:252
Cell()
constructor
Definition: MsWksSSParser.cxx:65
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:551
Definition: MWAWDocument.hxx:56
MWAWFont m_font
the default font
Definition: MsWksSSParser.cxx:127
Definition: MWAWCell.hxx:127
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:211
Class to store font.
Definition: MWAWFont.hxx:43
std::map< int, MWAWEntry > m_idNoteMap
a map id->note content
Definition: MsWksSSParser.cxx:135
int m_pageLength
the page length in point (if known)
Definition: MsWksSSParser.cxx:173
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
Definition: libmwaw_internal.hxx:401
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:468
Definition: MWAWCell.hxx:419
Definition: MWAWCell.hxx:127
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:836
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
int m_id
the subdocument id
Definition: MsWksSSParser.cxx:198
MsWksSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MsWksSSParser.cxx:231
Definition: MWAWCell.hxx:419
Definition: MWAWCell.hxx:127
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Internal: the state of a MsWksSSParser.
Definition: MsWksSSParser.cxx:158
Definition: MWAWCell.hxx:56
Generated on Wed Jul 24 2024 02:19:06 for libmwaw by
doxygen 1.8.16