WingzParser.hxx Source File documentation

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
52 class WingzGraph;
53
62 class WingzParser final : public MWAWSpreadsheetParser
63 {
64 friend class WingzGraph;
65 public:
67 WingzParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
69 ~WingzParser() final;
70
72 bool checkHeader(MWAWHeader *header, bool strict=false) final;
73
75 void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
76
77 // interface with WingzGraph
78
80 MWAWVec2f getPosition(MWAWVec2i const &cell, MWAWVec2f const &relPos) const;
81 protected:
83 void init();
84
86 void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
87
89 bool sendSpreadsheet();
90
92 bool createZones();
93
95 bool readPrintInfo();
96
97 //
98 // low level
99 //
100
102 bool readPreferences();
104 bool readSpreadsheet();
106 bool readSpreadsheetSize();
108 bool readSpreadsheetPBreak();
110 bool readSpreadsheetStyle();
112 bool readSpreadsheetCellName();
114 bool readFormula();
116 bool readSpreadsheetCellList();
118 bool readSpreadsheetZone5();
120 bool readMacro();
121
123 bool decodeEncrypted();
125 bool findNextZone(int lastType=0);
126 protected:
127 //
128 // data
129 //
130
132 std::shared_ptr<WingzParserInternal::State> m_state;
133
135 std::shared_ptr<WingzGraph> m_graphParser;
136 };
137 #endif
138 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWCellContent::FormulaInstruction::F_CellList
@ F_CellList
Definition: MWAWCell.hxx:398
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
WingzParserInternal::Functions::m_arity
int m_arity
Definition: WingzParser.cxx:1301
MWAWCellContent::m_textEntry
MWAWEntry m_textEntry
the cell string
Definition: MWAWCell.hxx:489
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
WingzParserInternal::State::m_encrypted
bool m_encrypted
a flag to know if the data is encrypted
Definition: WingzParser.cxx:265
MWAWDocument::MWAW_K_SPREADSHEET
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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:458
WingzParserInternal::Cell::m_content
MWAWCellContent m_content
the cell content
Definition: WingzParser.cxx:97
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
WingzParser::readPreferences
bool readPreferences()
read the preference zone ( the first zone)
Definition: WingzParser.cxx:428
WingzParserInternal::Spreadsheet::m_heightDefault
float m_heightDefault
the default row height
Definition: WingzParser.cxx:190
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
WingzParserInternal::Spreadsheet::getPosition
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
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
MWAWCellContent::FormulaInstruction::F_Operator
@ F_Operator
Definition: MWAWCell.hxx:398
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
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:464
WingzParserInternal::Spreadsheet::m_styleMap
std::map< int, Style > m_styleMap
the list of style
Definition: WingzParser.cxx:200
WingzParser::readSpreadsheetSize
bool readSpreadsheetSize()
read some spreadsheet size (col/row size or page break)
Definition: WingzParser.cxx:1757
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
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:76
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:178
MWAWCell::F_UNKNOWN
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
WingzParser::readSpreadsheet
bool readSpreadsheet()
read the spreadshet zone
Definition: WingzParser.cxx:587
MWAWCellContent::FormulaInstruction
small class use to define a formula instruction
Definition: MWAWCell.hxx:397
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
WingzParserInternal::Cell
Internal: the cell of a WingzParser.
Definition: WingzParser.cxx:84
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:274
WingzParserInternal::Cell::Cell
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: WingzParser.cxx:86
WingzParserInternal::Spreadsheet::m_heightRows
std::vector< float > m_heightRows
the row height in points
Definition: WingzParser.cxx:192
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWPrinter.hxx
WingzParserInternal::Style::Style
Style()
constructor
Definition: WingzParser.cxx:66
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWCellContent::FormulaInstruction::F_Function
@ F_Function
Definition: MWAWCell.hxx:398
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
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:80
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
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:130
WingzParserInternal::Spreadsheet::m_widthCols
std::vector< float > m_widthCols
the column size in points
Definition: WingzParser.cxx:188
WingzParser::m_graphParser
std::shared_ptr< WingzGraph > m_graphParser
the graph parser
Definition: WingzParser.hxx:135
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:417
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:258
WingzParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: WingzParser.cxx:2075
WingzParserInternal::Style
Internal: the cell style of a WingzParser.
Definition: WingzParser.cxx:64
WingzGraph.hxx
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:190
MWAWCell.hxx
Defines MWAWCell (cell content and format)
WingzGraph
the main class to read the graphic part of a Claris Resolve/Wingz file
Definition: WingzGraph.hxx:67
WingzParser::getPosition
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
MWAWCell::Format::m_digits
int m_digits
the number of digits
Definition: MWAWCell.hxx:99
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWCellContent::FormulaInstruction::F_Text
@ F_Text
Definition: MWAWCell.hxx:398
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:206
WingzParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: WingzParser.cxx:374
WingzParser::m_state
std::shared_ptr< WingzParserInternal::State > m_state
the state
Definition: WingzParser.hxx:132
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
WingzParser::readSpreadsheetCellName
bool readSpreadsheetCellName()
read a spreadsheet cell name
Definition: WingzParser.cxx:1077
MWAWCellContent::m_formula
std::vector< FormulaInstruction > m_formula
the formula list of instruction
Definition: MWAWCell.hxx:491
MWAWSpreadsheetListenerPtr
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
WingzParserInternal::Functions
Definition: WingzParser.cxx:1299
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
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
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
WingzParser::readSpreadsheetPBreak
bool readSpreadsheetPBreak()
read a page break zone
Definition: WingzParser.cxx:1808
WingzParser::createZones
bool createZones()
finds the different objects zones
Definition: WingzParser.cxx:399
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWCellContent::FormulaInstruction::m_type
Type m_type
the type
Definition: MWAWCell.hxx:415
WingzParser
the main class to read a Claris Resolve or a Wingz document
Definition: WingzParser.hxx:63
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
MWAWCell::Format
a structure uses to define the format of a cell content
Definition: MWAWCell.hxx:60
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
WingzParserInternal::State::m_spreadsheet
Spreadsheet m_spreadsheet
the spreadsheet
Definition: WingzParser.cxx:267
WingzParser::readMacro
bool readMacro()
read a macro in a text zone ( some graphic zone)
Definition: WingzParser.cxx:1972
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:485
WingzParser::readSpreadsheetZone5
bool readSpreadsheetZone5()
read a spreadsheet unknown zone 5
Definition: WingzParser.cxx:1844
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:178
MWAWVec2< int >
WingzParser::readSpreadsheetStyle
bool readSpreadsheetStyle()
read a style in a spreadsheet
Definition: WingzParser.cxx:1153
WingzParser.hxx
WingzParserInternal::Spreadsheet::update
void update(Cell &cell) const
update the cell, ie. look if there is a avalaible formula, ...
Definition: WingzParser.cxx:217
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
MWAWPictMac.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
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:123
WingzParser::sendSpreadsheet
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: WingzParser.cxx:2206
WingzParser::readSpreadsheetCellList
bool readSpreadsheetCellList()
read a spreadsheet list of cell
Definition: WingzParser.cxx:814
WingzParser::init
void init()
inits all internal variables
Definition: WingzParser.cxx:323
WingzParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
the main parse function
Definition: WingzParser.cxx:342
WingzParserInternal::Spreadsheet::m_cells
std::vector< Cell > m_cells
the list of not empty cells
Definition: WingzParser.cxx:194
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
MWAWCellContent::FormulaInstruction::m_doubleValue
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:421
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:433
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:147
MWAWCellContent::FormulaInstruction::F_Cell
@ F_Cell
Definition: MWAWCell.hxx:398
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
WingzParserInternal::Style::m_lineColor
MWAWColor m_lineColor
the line color (if needed)
Definition: WingzParser.cxx:78
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
WingzParser::decodeEncrypted
bool decodeEncrypted()
try to decode an encrypted input
Definition: WingzParser.cxx:2032
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:178
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
WingzParserInternal::Functions::m_name
char const * m_name
Definition: WingzParser.cxx:1300
WingzParserInternal::Spreadsheet
Internal: the spreadsheet data of a WingzParser.
Definition: WingzParser.cxx:108
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:433
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:147
MWAWCellContent::FormulaInstruction::F_Double
@ F_Double
Definition: MWAWCell.hxx:398
WingzParserInternal::Cell::~Cell
~Cell() final
destructor
Definition: WingzParser.cxx:102
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:178
WingzParserInternal::Cell::m_formula
int m_formula
the formula id
Definition: WingzParser.cxx:99
MWAWCellContent::FormulaInstruction::m_position
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:423
WingzParserInternal::Style::m_font
MWAWFont m_font
the font
Definition: WingzParser.cxx:74
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:382
WingzParser::~WingzParser
~WingzParser() final
destructor
Definition: WingzParser.cxx:319
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWSpreadsheetListener.hxx
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
WingzParser::WingzParser
WingzParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: WingzParser.cxx:311
WingzParser::findNextZone
bool findNextZone(int lastType=0)
try to find the next spreadsheet zone
Definition: WingzParser.cxx:1922
MWAWCellContent::FormulaInstruction::m_positionRelative
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:425
WingzParser::readFormula
bool readFormula()
read a formula in a spreadsheet
Definition: WingzParser.cxx:1387
MWAWStringStream.hxx
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
WingzParserInternal::s_listFunctions
static Functions const s_listFunctions[]
Definition: WingzParser.cxx:1304
MWAWFont.hxx
WingzParserInternal::Spreadsheet::getRightBottomPosition
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: WingzParser.cxx:205
librevenge
Definition: MWAWDocument.hxx:57
MWAWCell::HALIGN_LEFT
@ HALIGN_LEFT
Definition: MWAWCell.hxx:128
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
WingzParserInternal::Spreadsheet::Spreadsheet
Spreadsheet()
constructor
Definition: WingzParser.cxx:110
WingzParserInternal::Spreadsheet::m_formulaMap
std::map< int, std::vector< MWAWCellContent::FormulaInstruction > > m_formulaMap
the list of formula
Definition: WingzParser.cxx:198
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:196
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
WingzParserInternal::State
Internal: the state of a WingzParser.
Definition: WingzParser.cxx:250
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:433
WingzParserInternal::Spreadsheet::m_widthDefault
float m_widthDefault
the default column width
Definition: WingzParser.cxx:186
WingzParser::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: WingzParser.cxx:2127
MWAWCell::position
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:184
MWAWVec2b
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
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:466
WingzParserInternal
Internal: the structures of a WingzParser.
Definition: WingzParser.cxx:60
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:99
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
WingzParserInternal::State::State
State()
constructor
Definition: WingzParser.cxx:252
WingzParserInternal::Cell::Cell
Cell(Cell const &)=default
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
MWAWStringStream
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:37
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
WingzParserInternal::Spreadsheet::m_name
std::string m_name
the spreadsheet name
Definition: WingzParser.cxx:202