Go to the documentation of this file.
75 void parse(
librevenge::RVNGSpreadsheetInterface *documentInterface) final;
@ F_CellList
Definition: MWAWCell.hxx:398
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
int m_arity
Definition: WingzParser.cxx:1301
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
bool m_encrypted
a flag to know if the data is encrypted
Definition: WingzParser.cxx:265
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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
MWAWCellContent m_content
the cell content
Definition: WingzParser.cxx:97
@ F_DATE
Definition: MWAWCell.hxx:56
bool readPreferences()
read the preference zone ( the first zone)
Definition: WingzParser.cxx:428
float m_heightDefault
the default row height
Definition: WingzParser.cxx:190
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
MWAWVec2f getPosition(MWAWVec2i const &cell, MWAWVec2f const &relPos) const
returns the page position corresponding to a cell and its relative position(in percent)
Definition: WingzParser.cxx:159
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
@ F_Operator
Definition: MWAWCell.hxx:398
@ boldBit
Definition: MWAWFont.hxx:190
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:464
std::map< int, Style > m_styleMap
the list of style
Definition: WingzParser.cxx:200
bool readSpreadsheetSize()
read some spreadsheet size (col/row size or page break)
Definition: WingzParser.cxx:1757
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWColor m_backgroundColor
the cell background color
Definition: WingzParser.cxx:76
@ BottomBit
Definition: libmwaw_internal.hxx:178
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
bool readSpreadsheet()
read the spreadshet zone
Definition: WingzParser.cxx:587
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
the class to store a color
Definition: libmwaw_internal.hxx:192
Internal: the cell of a WingzParser.
Definition: WingzParser.cxx:84
static bool getPatternPercent(int patId, int vers, float &percent)
returns the pattern percent corresponding to an id and a version
Definition: WingzParser.cxx:274
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: WingzParser.cxx:86
std::vector< float > m_heightRows
the row height in points
Definition: WingzParser.cxx:192
int version() const
returns the works version
Definition: MWAWParser.hxx:108
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
Style()
constructor
Definition: WingzParser.cxx:66
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
@ F_Function
Definition: MWAWCell.hxx:398
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
@ Simple
Definition: MWAWFont.hxx:49
std::string m_format
the cell custom format (if known)
Definition: WingzParser.cxx:80
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
float getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: WingzParser.cxx:130
std::vector< float > m_widthCols
the column size in points
Definition: WingzParser.cxx:188
std::shared_ptr< WingzGraph > m_graphParser
the graph parser
Definition: WingzParser.hxx:135
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
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
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: WingzParser.cxx:2075
Internal: the cell style of a WingzParser.
Definition: WingzParser.cxx:64
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
@ MWAW_T_CLARISRESOLVE
Claris Resolve (v1.1)
Definition: MWAWDocument.hxx:104
@ embossBit
Definition: MWAWFont.hxx:190
Defines MWAWCell (cell content and format)
the main class to read the graphic part of a Claris Resolve/Wingz file
Definition: WingzGraph.hxx:67
MWAWVec2f getPosition(MWAWVec2i const &cell, MWAWVec2f const &relPos) const
returns the page position corresponding to a cell and its relative position(in percent)
Definition: WingzParser.cxx:334
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
@ F_Text
Definition: MWAWCell.hxx:398
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WingzParser.cxx:374
std::shared_ptr< WingzParserInternal::State > m_state
the state
Definition: WingzParser.hxx:132
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
bool readSpreadsheetCellName()
read a spreadsheet cell name
Definition: WingzParser.cxx:1077
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
Definition: WingzParser.cxx:1299
@ 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
T y() const
second element
Definition: libmwaw_internal.hxx:673
bool readSpreadsheetPBreak()
read a page break zone
Definition: WingzParser.cxx:1808
bool createZones()
finds the different objects zones
Definition: WingzParser.cxx:399
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
Type m_type
the type
Definition: MWAWCell.hxx:415
the main class to read a Claris Resolve or a Wingz document
Definition: WingzParser.hxx:63
T x() const
first element
Definition: libmwaw_internal.hxx:668
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
Spreadsheet m_spreadsheet
the spreadsheet
Definition: WingzParser.cxx:267
bool readMacro()
read a macro in a text zone ( some graphic zone)
Definition: WingzParser.cxx:1972
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
double m_value
the cell value
Definition: MWAWCell.hxx:485
bool readSpreadsheetZone5()
read a spreadsheet unknown zone 5
Definition: WingzParser.cxx:1844
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
@ RightBit
Definition: libmwaw_internal.hxx:178
bool readSpreadsheetStyle()
read a style in a spreadsheet
Definition: WingzParser.cxx:1153
void update(Cell &cell) const
update the cell, ie. look if there is a avalaible formula, ...
Definition: WingzParser.cxx:217
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
Definition: libmwaw_internal.hxx:144
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
float getRowHeight(int row) const
returns the row size in point
Definition: WingzParser.cxx:123
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: WingzParser.cxx:2206
bool readSpreadsheetCellList()
read a spreadsheet list of cell
Definition: WingzParser.cxx:814
void init()
inits all internal variables
Definition: WingzParser.cxx:323
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
the main parse function
Definition: WingzParser.cxx:342
std::vector< Cell > m_cells
the list of not empty cells
Definition: WingzParser.cxx:194
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
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
MWAWColor m_lineColor
the line color (if needed)
Definition: WingzParser.cxx:78
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
@ F_NUMBER
Definition: MWAWCell.hxx:56
bool decodeEncrypted()
try to decode an encrypted input
Definition: WingzParser.cxx:2032
@ F_TIME
Definition: MWAWCell.hxx:56
@ LeftBit
Definition: libmwaw_internal.hxx:178
@ italicBit
Definition: MWAWFont.hxx:190
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
char const * m_name
Definition: WingzParser.cxx:1300
Internal: the spreadsheet data of a WingzParser.
Definition: WingzParser.cxx:108
@ C_TEXT
Definition: MWAWCell.hxx:433
std::vector< float > convertInPoint(std::vector< float > const &list) const
convert the m_widthCols in a vector of of point size
Definition: WingzParser.cxx:147
@ F_Double
Definition: MWAWCell.hxx:398
~Cell() final
destructor
Definition: WingzParser.cxx:102
@ TopBit
Definition: libmwaw_internal.hxx:178
int m_formula
the formula id
Definition: WingzParser.cxx:99
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:423
MWAWFont m_font
the font
Definition: WingzParser.cxx:74
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:382
~WingzParser() final
destructor
Definition: WingzParser.cxx:319
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
WingzParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: WingzParser.cxx:311
bool findNextZone(int lastType=0)
try to find the next spreadsheet zone
Definition: WingzParser.cxx:1922
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:425
bool readFormula()
read a formula in a spreadsheet
Definition: WingzParser.cxx:1387
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
static Functions const s_listFunctions[]
Definition: WingzParser.cxx:1304
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: WingzParser.cxx:205
Definition: MWAWDocument.hxx:57
@ 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
Spreadsheet()
constructor
Definition: WingzParser.cxx:110
std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > m_formulaMap
the list of formula
Definition: WingzParser.cxx:198
Class to store font.
Definition: MWAWFont.hxx:44
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
std::map< int, MWAWCellContent::FormulaInstruction > m_cellIdPosMap
the map cellId to cellPos
Definition: WingzParser.cxx:196
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
Internal: the state of a WingzParser.
Definition: WingzParser.cxx:250
@ C_NUMBER
Definition: MWAWCell.hxx:433
float m_widthDefault
the default column width
Definition: WingzParser.cxx:186
bool readPrintInfo()
read the print info zone
Definition: WingzParser.cxx:2127
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:184
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
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
Internal: the structures of a WingzParser.
Definition: WingzParser.cxx:60
@ MWAW_T_WINGZ
Wingz (v1.1)
Definition: MWAWDocument.hxx:155
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
State()
constructor
Definition: WingzParser.cxx:252
Cell(Cell const &)=default
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:37
@ F_TEXT
Definition: MWAWCell.hxx:56
std::string m_name
the spreadsheet name
Definition: WingzParser.cxx:202
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20