WingzParser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 /*
35  * Parser to convert spreadsheet ClarisResolve/Wingz document
36  *
37  */
38 #ifndef WINGZ_PARSER
39 # define WINGZ_PARSER
40 
41 #include <vector>
42 
43 #include "MWAWDebug.hxx"
44 
45 #include "MWAWParser.hxx"
46 
47 namespace WingzParserInternal
48 {
49 struct State;
50 }
51 
61 {
62 public:
64  WingzParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header);
66  virtual ~WingzParser();
67 
69  bool checkHeader(MWAWHeader *header, bool strict=false);
70 
71  // the main parse function
72  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface);
73 
74 protected:
76  void init();
77 
79  void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
80 
82  bool sendSpreadsheet();
83 
85  bool createZones();
86 
88  bool readPrintInfo();
89 
90  //
91  // low level
92  //
93 
95  bool readPreferences();
97  bool readSpreadsheet();
99  bool readSpreadsheetSize();
101  bool readSpreadsheetPBreak();
103  bool readSpreadsheetStyle();
107  bool readFormula();
111  bool readSpreadsheetZone5();
113  bool readGraphic();
115  bool readChartData();
117  bool readTextZone();
119  bool readMacro();
120 
122  bool decodeEncrypted();
124  bool findNextZone(int lastType=0);
125 protected:
126  //
127  // data
128  //
129 
131  shared_ptr<WingzParserInternal::State> m_state;
132 };
133 #endif
134 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWCellContent::FormulaInstruction::F_CellList
@ F_CellList
Definition: MWAWCell.hxx:360
WingzParserInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: WingzParser.cxx:226
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:281
WingzParser::readChartData
bool readChartData()
read a chart ( some graphic zone)
Definition: WingzParser.cxx:2406
WingzParserInternal::Functions::m_arity
int m_arity
Definition: WingzParser.cxx:1246
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:438
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
WingzParserInternal::State::m_encrypted
bool m_encrypted
a flag to know if the data is encrypted
Definition: WingzParser.cxx:220
MWAWDocument::MWAW_K_SPREADSHEET
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
MWAWSpreadsheetListenerPtr
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWCellContent::setValue
void setValue(double value)
sets the double value
Definition: MWAWCell.hxx:407
WingzParserInternal::Cell::m_content
MWAWCellContent m_content
the cell content
Definition: WingzParser.cxx:87
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
WingzParser::readPreferences
bool readPreferences()
read the preference zone ( the first zone)
Definition: WingzParser.cxx:377
WingzParserInternal::Spreadsheet::m_heightDefault
float m_heightDefault
the default row height
Definition: WingzParser.cxx:147
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:163
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:255
MWAWCellContent::FormulaInstruction::F_Operator
@ F_Operator
Definition: MWAWCell.hxx:360
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:182
MWAWCell::F_NUMBER_PERCENT
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
MWAWInputStream
Internal class used to read the file stream Internal class used to read the file stream,...
Definition: MWAWInputStream.hxx:54
MWAWCellContent::isValueSet
bool isValueSet() const
returns true if the value has been setted
Definition: MWAWCell.hxx:413
WingzParserInternal::Spreadsheet::m_styleMap
std::map< int, Style > m_styleMap
the list of style
Definition: WingzParser.cxx:157
WingzParser::readSpreadsheetSize
bool readSpreadsheetSize()
read some spreadsheet size (col/row size or page break)
Definition: WingzParser.cxx:1625
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
WingzParserInternal::Style::m_backgroundColor
MWAWColor m_backgroundColor
the cell background color
Definition: WingzParser.cxx:70
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:168
MWAWCell::F_UNKNOWN
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
WingzParser::readSpreadsheet
bool readSpreadsheet()
read the spreadshet zone
Definition: WingzParser.cxx:536
MWAWCellContent::FormulaInstruction
small class use to define a formula instruction
Definition: MWAWCell.hxx:359
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:182
WingzParserInternal::Cell
Internal: the cell of a WingzParser.
Definition: WingzParser.cxx:78
WingzParserInternal::State::getPatternPercent
static bool getPatternPercent(int patId, int vers, float &percent)
returns the pattern percent corresponding to an id and a version
Definition: WingzParser.cxx:229
WingzParserInternal::Cell::Cell
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: WingzParser.cxx:80
WingzParserInternal::Spreadsheet::m_heightRows
std::vector< float > m_heightRows
the row height in points
Definition: WingzParser.cxx:149
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
WingzParser::WingzParser
WingzParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: WingzParser.cxx:266
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWPrinter.hxx
WingzParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: WingzParser.cxx:2532
WingzParserInternal::Style::Style
Style()
constructor
Definition: WingzParser.cxx:64
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
MWAWCellContent::FormulaInstruction::F_Function
@ F_Function
Definition: MWAWCell.hxx:360
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:216
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
WingzParserInternal::Style::m_format
std::string m_format
the cell custom format (if known)
Definition: WingzParser.cxx:74
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:140
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:296
WingzParserInternal::Spreadsheet::getRowHeight
float getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: WingzParser.cxx:112
WingzParserInternal::Spreadsheet::m_widthCols
std::vector< float > m_widthCols
the column size in points
Definition: WingzParser.cxx:145
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWCellContent::FormulaInstruction::m_content
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:376
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:232
WingzParserInternal::Style
Internal: the cell style of a WingzParser.
Definition: WingzParser.cxx:62
WingzParserInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: WingzParser.cxx:225
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWDocument::MWAW_T_CLARISRESOLVE
@ MWAW_T_CLARISRESOLVE
Claris Resolve (v1.1)
Definition: MWAWDocument.hxx:104
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:182
MWAWCell.hxx
MWAWCell::Format::m_digits
int m_digits
the number of digits
Definition: MWAWCell.hxx:87
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
WingzParser::m_state
shared_ptr< WingzParserInternal::State > m_state
the state
Definition: WingzParser.hxx:131
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
MWAWCellContent::FormulaInstruction::F_Text
@ F_Text
Definition: MWAWCell.hxx:360
MWAWParser::getSpreadsheetListener
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:205
WingzParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WingzParser.cxx:323
WingzParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface)
virtual function used to parse the input
Definition: WingzParser.cxx:291
WingzParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: WingzParser.cxx:223
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
WingzParser::readSpreadsheetCellName
bool readSpreadsheetCellName()
read a spreadsheet cell name
Definition: WingzParser.cxx:1022
MWAWCellContent::m_formula
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:440
WingzParserInternal::Functions
Definition: WingzParser.cxx:1244
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:183
MWAWSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
MWAWFont::getDebugString
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:620
WingzParser::readSpreadsheetPBreak
bool readSpreadsheetPBreak()
read a page break zone
Definition: WingzParser.cxx:1676
libmwaw::Debug::dumpFile
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
WingzParser::createZones
bool createZones()
finds the different objects zones
Definition: WingzParser.cxx:348
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
MWAWPosition.hxx
MWAWCellContent::FormulaInstruction::m_type
Type m_type
the type
Definition: MWAWCell.hxx:374
WingzParser
the main class to read a Wingz document
Definition: WingzParser.hxx:61
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:615
WingzParser::readGraphic
bool readGraphic()
read a graphic zone
Definition: WingzParser.cxx:1840
WingzParser::readTextZone
bool readTextZone()
read a text zone or a button zone ( some graphic zone)
Definition: WingzParser.cxx:2065
MWAWCell::Format
a structure uses to define the format of a cell content
Definition: MWAWCell.hxx:60
MWAWBorder
a border
Definition: libmwaw_internal.hxx:314
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
WingzParserInternal::State::m_spreadsheet
Spreadsheet m_spreadsheet
the spreadsheet
Definition: WingzParser.cxx:222
WingzParser::readMacro
bool readMacro()
read a macro in a text zone ( some graphic zone)
Definition: WingzParser.cxx:2346
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWCellContent::m_value
double m_value
the cell value
Definition: MWAWCell.hxx:434
WingzParser::readSpreadsheetZone5
bool readSpreadsheetZone5()
read a spreadsheet unknown zone 5
Definition: WingzParser.cxx:1712
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:168
MWAWVec2< int >
WingzParser::readSpreadsheetStyle
bool readSpreadsheetStyle()
read a style in a spreadsheet
Definition: WingzParser.cxx:1098
WingzParser.hxx
WingzParserInternal::Spreadsheet::update
void update(Cell &cell) const
update the cell, ie. look if there is a avalaible formula, ...
Definition: WingzParser.cxx:175
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
MWAWPictMac.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:142
MWAWDebug.hxx
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
WingzParserInternal::Spreadsheet::getRowHeight
float getRowHeight(int row) const
returns the row size in point
Definition: WingzParser.cxx:105
WingzParser::sendSpreadsheet
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: WingzParser.cxx:2664
WingzParser::readSpreadsheetCellList
bool readSpreadsheetCellList()
read a spreadsheet list of cell
Definition: WingzParser.cxx:759
WingzParser::init
void init()
inits all internal variables
Definition: WingzParser.cxx:276
WingzParserInternal::Spreadsheet::m_cells
std::vector< Cell > m_cells
the list of not empty cells
Definition: WingzParser.cxx:151
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
MWAWCellContent::FormulaInstruction::m_doubleValue
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:380
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:390
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MWAWParser::setSpreadsheetListener
void setSpreadsheetListener(MWAWSpreadsheetListenerPtr &listener)
sets the spreadsheet listener
Definition: MWAWParser.cxx:135
MWAWCellContent::FormulaInstruction::F_Cell
@ F_Cell
Definition: MWAWCell.hxx:360
MWAWHeader.hxx
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
WingzParserInternal::Style::m_lineColor
MWAWColor m_lineColor
the line color (if needed)
Definition: WingzParser.cxx:72
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
WingzParser::decodeEncrypted
bool decodeEncrypted()
try to decode an encrypted input
Definition: WingzParser.cxx:2488
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:168
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:182
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
WingzParserInternal::Cell::~Cell
virtual ~Cell()
destructor
Definition: WingzParser.cxx:92
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
WingzParserInternal::Functions::m_name
char const * m_name
Definition: WingzParser.cxx:1245
WingzParserInternal::Spreadsheet
Internal: the spreadsheet data of a WingzParser.
Definition: WingzParser.cxx:98
WingzParser::~WingzParser
virtual ~WingzParser()
destructor
Definition: WingzParser.cxx:272
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:390
WingzParserInternal::Spreadsheet::convertInPoint
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
MWAWCellContent::FormulaInstruction::F_Double
@ F_Double
Definition: MWAWCell.hxx:360
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:168
WingzParserInternal::Cell::m_formula
int m_formula
the formula id
Definition: WingzParser.cxx:89
MWAWCellContent::FormulaInstruction::m_position
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:382
WingzParserInternal::Style::m_font
MWAWFont m_font
the font
Definition: WingzParser.cxx:68
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWCell::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MWAWRSRCParserPtr
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
MWAWSpreadsheetListener.hxx
WingzParser::findNextZone
bool findNextZone(int lastType=0)
try to find the next spreadsheet zone
Definition: WingzParser.cxx:1790
MWAWCellContent::FormulaInstruction::m_positionRelative
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:384
WingzParser::readFormula
bool readFormula()
read a formula in a spreadsheet
Definition: WingzParser.cxx:1332
MWAWStringStream.hxx
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:82
WingzParserInternal::s_listFunctions
static Functions const s_listFunctions[]
Definition: WingzParser.cxx:1249
MWAWFont.hxx
WingzParserInternal::Spreadsheet::getRightBottomPosition
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: WingzParser.cxx:162
MWAWCell::HALIGN_LEFT
@ HALIGN_LEFT
Definition: MWAWCell.hxx:116
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
WingzParserInternal::Spreadsheet::Spreadsheet
Spreadsheet()
constructor
Definition: WingzParser.cxx:100
WingzParserInternal::Spreadsheet::m_formulaMap
std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > m_formulaMap
the list of formula
Definition: WingzParser.cxx:155
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
WingzParserInternal::Spreadsheet::m_cellIdPosMap
std::map< int, MWAWCellContent::FormulaInstruction > m_cellIdPosMap
the map cellId to cellPos
Definition: WingzParser.cxx:153
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:432
WingzParserInternal::State
Internal: the state of a WingzParser.
Definition: WingzParser.cxx:210
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:390
WingzParserInternal::Spreadsheet::m_widthDefault
float m_widthDefault
the default column width
Definition: WingzParser.cxx:143
WingzParser::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: WingzParser.cxx:2585
MWAWCell::position
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:158
MWAWVec2b
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:779
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:116
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
MWAWFont::setUnderlineStyle
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
WingzParserInternal
Internal: the structures of a WingzParser.
Definition: WingzParser.cxx:58
MWAWDocument::MWAW_T_WINGZ
@ MWAW_T_WINGZ
Wingz (v1.1)
Definition: MWAWDocument.hxx:155
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition: MWAWCell.hxx:116
WingzParserInternal::State::State
State()
constructor
Definition: WingzParser.cxx:212
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
MWAWStringStream
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:35
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
WingzParserInternal::Spreadsheet::m_name
std::string m_name
the spreadsheet name
Definition: WingzParser.cxx:159
MWAWCell::getFont
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