GreatWksSSParser.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 #ifndef GREAT_WKS_SS_PARSER
35 # define GREAT_WKS_SS_PARSER
36 
37 #include <string>
38 #include <vector>
39 
40 #include <librevenge/librevenge.h>
41 
42 #include "MWAWCell.hxx"
43 #include "MWAWDebug.hxx"
44 
45 #include "MWAWParser.hxx"
46 
48 {
49 class Cell;
50 struct State;
51 class SubDocument;
52 }
53 
54 class GreatWksDocument;
55 
59 {
61 public:
63  GreatWksSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
65  ~GreatWksSSParser() final;
66 
68  bool checkHeader(MWAWHeader *header, bool strict=false) final;
69 
70  // the main parse function
71  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
72 
73 protected:
75  void init();
76 
78  void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
79 
81  bool sendSpreadsheet();
82 
83  // interface with the text parser
84 
86  bool sendHF(int id);
87 
88 protected:
90  bool createZones();
91 
92  //
93  // low level
94  //
95 
97  bool readStyles();
99  bool readSpreadsheet();
101  bool readChart();
103  bool readCell(GreatWksSSParserInternal::Cell &cell);
104 
105  //
106  // data
107  //
108 
110  std::shared_ptr<GreatWksSSParserInternal::State> m_state;
111 
113  std::shared_ptr<GreatWksDocument> m_document;
114 };
115 #endif
116 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
GreatWksSSParserInternal::Spreadsheet::m_heightDefault
int m_heightDefault
the default row height
Definition: GreatWksSSParser.cxx:161
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
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
MWAWFont::setUnderlineType
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
MWAWCell::F_BOOLEAN
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
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
MWAWDocument::MWAW_K_SPREADSHEET
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
MWAWHeaderFooter::HEADER
@ HEADER
Definition: MWAWPageSpan.hxx:48
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
GreatWksSSParserInternal::State::getStyle
Style getStyle(int id) const
returns the style corresponding to an id
Definition: GreatWksSSParser.cxx:200
GreatWksSSParserInternal::Spreadsheet::m_name
std::string m_name
the spreadsheet name
Definition: GreatWksSSParser.cxx:167
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
GreatWksSSParserInternal::Cell::m_content
MWAWCellContent m_content
the cell content
Definition: GreatWksSSParser.cxx:97
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
GreatWksSSParser::readSpreadsheet
bool readSpreadsheet()
read the spreadsheet block ( many unknown data )
Definition: GreatWksSSParser.cxx:414
GreatWksSSParser::m_document
std::shared_ptr< GreatWksDocument > m_document
the document
Definition: GreatWksSSParser.hxx:113
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
GreatWksSSParser::readStyles
bool readStyles()
try to read the styles
Definition: GreatWksSSParser.cxx:1179
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
MWAWFont::Script::sub100
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:125
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MWAWCell::F_NUMBER_PERCENT
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
GreatWksSSParserInternal::Spreadsheet::getRowHeight
int getRowHeight(int row) const
returns the row size in point
Definition: GreatWksSSParser.cxx:121
GreatWksSSParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: GreatWksSSParser.cxx:262
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
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:178
MWAWCellContent::C_NONE
@ C_NONE
Definition: MWAWCell.hxx:433
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
GreatWksSSParserInternal::Spreadsheet::getRightBottomPosition
MWAWVec2i getRightBottomPosition() const
returns the last Right Bottom cell position
Definition: GreatWksSSParser.cxx:170
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
MWAWPrinter.hxx
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
GreatWksSSParserInternal::State
Internal: the state of a GreatWksSSParser.
Definition: GreatWksSSParser.cxx:184
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
MWAWCell::F_NUMBER_GENERIC
@ F_NUMBER_GENERIC
Definition: MWAWCell.hxx:58
GreatWksSSParserInternal::Cell
a cell of a GreatWksSSParser
Definition: GreatWksSSParser.cxx:81
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWFont::setDeltaLetterSpacing
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
GreatWksSSParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: GreatWksSSParser.cxx:229
MWAWCell::Format::m_DTFormat
std::string m_DTFormat
a date/time format ( using a subset of strftime format )
Definition: MWAWCell.hxx:113
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:363
GreatWksSSParserInternal::Spreadsheet
the spreadsheet of a of a MsWksSSParser
Definition: GreatWksSSParser.cxx:108
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::Script::super100
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:135
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWCell.hxx
Defines MWAWCell (cell content and format)
GreatWksSSParserInternal::Spreadsheet::m_cells
std::vector< Cell > m_cells
the list of not empty cells
Definition: GreatWksSSParser.cxx:165
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
MWAWFont::setStrikeOutStyle
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:277
GreatWksSSParserInternal::Cell::operator=
Cell & operator=(Cell &&)=default
MWAWSubDocument.hxx
MWAWParser::getSpreadsheetListener
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
MWAWCell::Format::m_numberFormat
NumberType m_numberFormat
the numeric format
Definition: MWAWCell.hxx:97
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
GreatWksSSParserInternal::Cell::isEmpty
bool isEmpty() const
returns true if the cell do contain any content
Definition: GreatWksSSParser.cxx:91
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWCell::setProtected
void setProtected(bool fl)
sets the cell's protected flag
Definition: MWAWCell.hxx:270
GreatWksSSParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: GreatWksSSParser.cxx:340
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
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
GreatWksSSParser::GreatWksSSParser
GreatWksSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: GreatWksSSParser.cxx:275
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
MWAWRSRCParser.hxx
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
GreatWksSSParser::init
void init()
inits all internal variables
Definition: GreatWksSSParser.cxx:287
GreatWksGraph.hxx
GreatWksSSParserInternal::SubDocument::m_id
int m_id
the subdocument id
Definition: GreatWksSSParser.cxx:239
GreatWksSSParserInternal::Style
a style of a GreatWksSSParser
Definition: GreatWksSSParser.cxx:65
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
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
GreatWksSSParser::~GreatWksSSParser
~GreatWksSSParser() final
destructor
Definition: GreatWksSSParser.cxx:283
GreatWksSSParserInternal::State::m_headerPrint
bool m_headerPrint
the header is printed
Definition: GreatWksSSParser.cxx:215
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:358
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
libmwaw::DOC_HEADER_FOOTER
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
GreatWksSSParserInternal::State::m_spreadsheet
Spreadsheet m_spreadsheet
the spreadsheet
Definition: GreatWksSSParser.cxx:209
GreatWksSSParserInternal::State::State
State()
constructor
Definition: GreatWksSSParser.cxx:186
GreatWksSSParser::createZones
bool createZones()
finds the different objects zones
Definition: GreatWksSSParser.cxx:383
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 >
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
GreatWksSSParserInternal::Spreadsheet::m_widthDefault
int m_widthDefault
the default column width
Definition: GreatWksSSParser.cxx:157
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
GreatWksSSParserInternal::State::m_headerEntry
MWAWEntry m_headerEntry
the header entry (in v2)
Definition: GreatWksSSParser.cxx:214
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
GreatWksSSParserInternal::SubDocument::SubDocument
SubDocument(GreatWksSSParser &pars, MWAWInputStreamPtr const &input, int zoneId)
Definition: GreatWksSSParser.cxx:225
GreatWksSSParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: GreatWksSSParser.cxx:1280
GreatWksSSParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: GreatWksSSParser.cxx:242
GreatWksSSParserInternal::Cell::~Cell
~Cell() final
destructor
Definition: GreatWksSSParser.cxx:102
GreatWksSSParser.hxx
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
GreatWksDocument.hxx
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
GreatWksSSParserInternal::Spreadsheet::m_widthCols
std::vector< int > m_widthCols
the column size in points
Definition: GreatWksSSParser.cxx:159
GreatWksSSParserInternal::State::m_footerHeight
int m_footerHeight
the footer height if known
Definition: GreatWksSSParser.cxx:217
GreatWksSSParser::sendHF
bool sendHF(int id)
try to send the i^th header/footer
Definition: GreatWksSSParser.cxx:303
MWAWCellContent::C_FORMULA
@ C_FORMULA
Definition: MWAWCell.hxx:433
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:361
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
GreatWksSSParserInternal::Cell::operator=
Cell & operator=(Cell const &)=default
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:178
GreatWksDocument
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:61
MWAWGraphicStyle.hxx
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
GreatWksSSParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: GreatWksSSParser.cxx:311
GreatWksSSParserInternal::State::m_footerEntry
MWAWEntry m_footerEntry
the footer entry (in v2)
Definition: GreatWksSSParser.cxx:214
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:433
GreatWksSSParserInternal::Cell::Cell
Cell()
constructor
Definition: GreatWksSSParser.cxx:84
GreatWksSSParserInternal::Spreadsheet::m_heightRows
std::vector< int > m_heightRows
the row height in points
Definition: GreatWksSSParser.cxx:163
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition: MWAWCell.hxx:95
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
GreatWksSSParserInternal::SubDocument
Internal: the subdocument of a GreatWksSSParser.
Definition: GreatWksSSParser.cxx:223
MWAWSection.hxx
GreatWksSSParser::sendSpreadsheet
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: GreatWksSSParser.cxx:772
GreatWksSSParserInternal::State::m_footerPrint
bool m_footerPrint
Definition: GreatWksSSParser.cxx:215
GreatWksSSParserInternal::Style::m_font
MWAWFont m_font
the font style
Definition: GreatWksSSParser.cxx:74
GreatWksText.hxx
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:178
GreatWksSSParserInternal::Spreadsheet::Spreadsheet
Spreadsheet()
constructor
Definition: GreatWksSSParser.cxx:111
GreatWksSSParserInternal::Cell::m_style
int m_style
the cell style
Definition: GreatWksSSParser.cxx:99
MWAWCell::hasBorders
bool hasBorders() const
return true if the cell has some border
Definition: MWAWCell.hxx:308
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
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
GreatWksSSParserInternal::Spreadsheet::getRowHeight
double getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: GreatWksSSParser.cxx:128
MWAWSpreadsheetListener.hxx
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
GreatWksSSParserInternal::State::m_numPages
int m_numPages
the number of page of the final document
Definition: GreatWksSSParser.cxx:212
GreatWksSSParserInternal::State::m_actPage
int m_actPage
the actual page
Definition: GreatWksSSParser.cxx:212
MWAWFont::Line::Double
@ Double
Definition: MWAWFont.hxx:51
GreatWksSSParserInternal::State::m_headerHeight
int m_headerHeight
the header height if known
Definition: GreatWksSSParser.cxx:216
MWAWCellContent::empty
bool empty() const
returns true if the cell has no content
Definition: MWAWCell.hxx:450
GreatWksSSParser::m_state
std::shared_ptr< GreatWksSSParserInternal::State > m_state
the state
Definition: GreatWksSSParser.hxx:110
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
GreatWksSSParserInternal::Cell::Cell
Cell(Cell const &)=default
MWAWFont.hxx
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
GreatWksSSParserInternal::Spreadsheet::convertInPoint
std::vector< float > convertInPoint(std::vector< int > const &list) const
convert the m_widthCols in a vector of of point size
Definition: GreatWksSSParser.cxx:145
GreatWksSSParserInternal::Style::m_backgroundColor
MWAWColor m_backgroundColor
the cell background color
Definition: GreatWksSSParser.cxx:76
GreatWksSSParserInternal::Style::Style
Style()
constructor
Definition: GreatWksSSParser.cxx:68
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
GreatWksSSParser::readCell
bool readCell(GreatWksSSParserInternal::Cell &cell)
try to read a cell
Definition: GreatWksSSParser.cxx:873
MWAWCellContent::m_contentType
Type m_contentType
the content type ( by default unknown )
Definition: MWAWCell.hxx:483
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:433
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
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
GreatWksSSParserInternal::State::m_styleList
std::vector< Style > m_styleList
the list of style
Definition: GreatWksSSParser.cxx:211
MWAWCell::HALIGN_CENTER
@ HALIGN_CENTER
Definition: MWAWCell.hxx:128
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
GreatWksSSParserInternal
Internal: the structures of a GreatWksSSParser.
Definition: GreatWksSSParser.cxx:62
GreatWksSSParser::readChart
bool readChart()
try to read the chart zone: v2
Definition: GreatWksSSParser.cxx:829
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
GreatWksSSParser
the main class to read a GreatWorks spreadsheet file
Definition: GreatWksSSParser.hxx:59

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20