Go to the documentation of this file.
72 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface);
79 void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
131 shared_ptr<WingzParserInternal::State>
m_state;
@ F_CellList
Definition: MWAWCell.hxx:360
int m_footerHeight
the footer height if known
Definition: WingzParser.cxx:226
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:281
bool readChartData()
read a chart ( some graphic zone)
Definition: WingzParser.cxx:2406
int m_arity
Definition: WingzParser.cxx:1246
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
bool m_encrypted
a flag to know if the data is encrypted
Definition: WingzParser.cxx:220
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
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:407
MWAWCellContent m_content
the cell content
Definition: WingzParser.cxx:87
@ F_DATE
Definition: MWAWCell.hxx:56
bool readPreferences()
read the preference zone ( the first zone)
Definition: WingzParser.cxx:377
float m_heightDefault
the default row height
Definition: WingzParser.cxx:147
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:255
@ F_Operator
Definition: MWAWCell.hxx:360
@ boldBit
Definition: MWAWFont.hxx:182
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:413
std::map< int, Style > m_styleMap
the list of style
Definition: WingzParser.cxx:157
bool readSpreadsheetSize()
read some spreadsheet size (col/row size or page break)
Definition: WingzParser.cxx:1625
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
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:70
@ BottomBit
Definition: libmwaw_internal.hxx:168
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
bool readSpreadsheet()
read the spreadshet zone
Definition: WingzParser.cxx:536
small class use to define a formula instruction
Definition: MWAWCell.hxx:359
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
the class to store a color
Definition: libmwaw_internal.hxx:182
Internal: the cell of a WingzParser.
Definition: WingzParser.cxx:78
static bool getPatternPercent(int patId, int vers, float &percent)
returns the pattern percent corresponding to an id and a version
Definition: WingzParser.cxx:229
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: WingzParser.cxx:80
std::vector< float > m_heightRows
the row height in points
Definition: WingzParser.cxx:149
int version() const
returns the works version
Definition: MWAWParser.hxx:108
WingzParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: WingzParser.cxx:266
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WingzParser.cxx:2532
Style()
constructor
Definition: WingzParser.cxx:64
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
@ F_Function
Definition: MWAWCell.hxx:360
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
@ Simple
Definition: MWAWFont.hxx:49
std::string m_format
the cell custom format (if known)
Definition: WingzParser.cxx:74
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:140
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:296
float getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: WingzParser.cxx:112
std::vector< float > m_widthCols
the column size in points
Definition: WingzParser.cxx:145
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:376
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:232
Internal: the cell style of a WingzParser.
Definition: WingzParser.cxx:62
int m_headerHeight
the header height if known
Definition: WingzParser.cxx:225
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:182
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
shared_ptr< WingzParserInternal::State > m_state
the state
Definition: WingzParser.hxx:131
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
@ F_Text
Definition: MWAWCell.hxx:360
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:205
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WingzParser.cxx:323
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
virtual function used to parse the input
Definition: WingzParser.cxx:291
int m_numPages
the number of page of the final document
Definition: WingzParser.cxx:223
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
bool readSpreadsheetCellName()
read a spreadsheet cell name
Definition: WingzParser.cxx:1022
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:440
Definition: WingzParser.cxx:1244
@ shadowBit
Definition: MWAWFont.hxx:183
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
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
T y() const
second element
Definition: libmwaw_internal.hxx:620
bool readSpreadsheetPBreak()
read a page break zone
Definition: WingzParser.cxx:1676
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:197
bool createZones()
finds the different objects zones
Definition: WingzParser.cxx:348
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
Type m_type
the type
Definition: MWAWCell.hxx:374
the main class to read a Wingz document
Definition: WingzParser.hxx:61
T x() const
first element
Definition: libmwaw_internal.hxx:615
bool readGraphic()
read a graphic zone
Definition: WingzParser.cxx:1840
bool readTextZone()
read a text zone or a button zone ( some graphic zone)
Definition: WingzParser.cxx:2065
a border
Definition: libmwaw_internal.hxx:314
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
Spreadsheet m_spreadsheet
the spreadsheet
Definition: WingzParser.cxx:222
bool readMacro()
read a macro in a text zone ( some graphic zone)
Definition: WingzParser.cxx:2346
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
double m_value
the cell value
Definition: MWAWCell.hxx:434
bool readSpreadsheetZone5()
read a spreadsheet unknown zone 5
Definition: WingzParser.cxx:1712
@ RightBit
Definition: libmwaw_internal.hxx:168
bool readSpreadsheetStyle()
read a style in a spreadsheet
Definition: WingzParser.cxx:1098
void update(Cell &cell) const
update the cell, ie. look if there is a avalaible formula, ...
Definition: WingzParser.cxx:175
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
Definition: libmwaw_internal.hxx:142
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
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:105
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: WingzParser.cxx:2664
bool readSpreadsheetCellList()
read a spreadsheet list of cell
Definition: WingzParser.cxx:759
void init()
inits all internal variables
Definition: WingzParser.cxx:276
std::vector< Cell > m_cells
the list of not empty cells
Definition: WingzParser.cxx:151
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:380
@ C_FORMULA
Definition: MWAWCell.hxx:390
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:135
@ F_Cell
Definition: MWAWCell.hxx:360
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
MWAWColor m_lineColor
the line color (if needed)
Definition: WingzParser.cxx:72
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
@ F_NUMBER
Definition: MWAWCell.hxx:56
bool decodeEncrypted()
try to decode an encrypted input
Definition: WingzParser.cxx:2488
@ F_TIME
Definition: MWAWCell.hxx:56
@ LeftBit
Definition: libmwaw_internal.hxx:168
@ italicBit
Definition: MWAWFont.hxx:182
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
virtual ~Cell()
destructor
Definition: WingzParser.cxx:92
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
char const * m_name
Definition: WingzParser.cxx:1245
Internal: the spreadsheet data of a WingzParser.
Definition: WingzParser.cxx:98
virtual ~WingzParser()
destructor
Definition: WingzParser.cxx:272
@ C_TEXT
Definition: MWAWCell.hxx:390
std::vector< float > convertInPoint(std::vector< float > const &list) const
convert the m_widthCols in a vector of of point size
Definition: WingzParser.cxx:129
@ F_Double
Definition: MWAWCell.hxx:360
@ TopBit
Definition: libmwaw_internal.hxx:168
int m_formula
the formula id
Definition: WingzParser.cxx:89
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:382
MWAWFont m_font
the font
Definition: WingzParser.cxx:68
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
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool findNextZone(int lastType=0)
try to find the next spreadsheet zone
Definition: WingzParser.cxx:1790
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:384
bool readFormula()
read a formula in a spreadsheet
Definition: WingzParser.cxx:1332
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
static Functions const s_listFunctions[]
Definition: WingzParser.cxx:1249
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: WingzParser.cxx:162
@ HALIGN_LEFT
Definition: MWAWCell.hxx:116
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
Spreadsheet()
constructor
Definition: WingzParser.cxx:100
std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > m_formulaMap
the list of formula
Definition: WingzParser.cxx:155
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:153
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:432
Internal: the state of a WingzParser.
Definition: WingzParser.cxx:210
@ C_NUMBER
Definition: MWAWCell.hxx:390
float m_widthDefault
the default column width
Definition: WingzParser.cxx:143
bool readPrintInfo()
read the print info zone
Definition: WingzParser.cxx:2585
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:158
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:779
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:116
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
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:445
Internal: the structures of a WingzParser.
Definition: WingzParser.cxx:58
@ MWAW_T_WINGZ
Wingz (v1.1)
Definition: MWAWDocument.hxx:155
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
@ HALIGN_CENTER
Definition: MWAWCell.hxx:116
State()
constructor
Definition: WingzParser.cxx:212
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:35
@ F_TEXT
Definition: MWAWCell.hxx:56
std::string m_name
the spreadsheet name
Definition: WingzParser.cxx:159
MWAWFont getFont() const
returns the font
Definition: MWAWCell.hxx:227
Generated on Wed Jun 17 2020 06:30:13 for libmwaw by
doxygen 1.8.18