BeagleWksSSParser.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 BEAGLE_WKS_SS_PARSER
35 # define BEAGLE_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 #include "MWAWGraphicStyle.hxx"
45 #include "MWAWInputStream.hxx"
46 
47 #include "MWAWParser.hxx"
48 
50 {
51 class SubDocument;
52 
53 struct Cell;
54 struct Chart;
55 struct Spreadsheet;
56 struct State;
57 }
58 
60 
64 {
67 public:
69  BeagleWksSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
71  ~BeagleWksSSParser() final;
72 
74  bool checkHeader(MWAWHeader *header, bool strict=false) final;
75 
76  // the main parse function
77  void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final;
78 
79 protected:
81  void init();
82 
84  void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface);
85 
87  MWAWVec2f getPageLeftTop() const;
89  void newPage(int number);
90 
92  bool sendSpreadsheet();
94  bool sendText(MWAWEntry const &entry, bool headerFooter=false);
96  bool sendPageFrames();
98  bool sendFrame(BeagleWksStructManager::Frame const &frame);
100  bool sendPicture(int pId, MWAWPosition const &pos,
101  MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
102 protected:
104  bool createZones();
105 
107  bool readRSRCZones();
108 
109  //
110  // low level
111  //
112 
113  // data fork similar than in BeagleWksParser ...
114 
116  bool readPrintInfo();
117 
118  // data fork
119 
121  bool readChartZone();
122 
124  bool readChart();
125 
127  bool readSpreadsheet();
128 
130  bool readRowSheet(BeagleWksSSParserInternal::Spreadsheet &sheet);
131 
133  bool readCellSheet(BeagleWksSSParserInternal::Cell &cell);
134 
136  bool readZone0();
137 
139  bool readColumnWidths(BeagleWksSSParserInternal::Spreadsheet &sheet);
140 
142  bool readFormula(BeagleWksSSParserInternal::Spreadsheet &sheet);
143 
144  // resource fork
145 
148 
150  libmwaw::DebugFile &rsrcAscii();
151 
153  std::shared_ptr<BeagleWksSSParserInternal::State> m_state;
154 
157 };
158 #endif
159 // 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
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MWAWChart.hxx
MWAWChart::Series::S_Pie
@ S_Pie
Definition: MWAWChart.hxx:121
MWAWSpreadsheetParser
virtual class which defines the ancestor of all spreadsheet zone parser
Definition: MWAWParser.hxx:283
BeagleWksStructManager::Frame::m_dim
MWAWVec2f m_dim
the dimension
Definition: BeagleWksStructManager.hxx:139
MWAWChart::Series::m_style
MWAWGraphicStyle m_style
the graphic style
Definition: MWAWChart.hxx:140
BeagleWksSSParserInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
MWAWCell::F_BOOLEAN
@ F_BOOLEAN
Definition: MWAWCell.hxx:56
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAWPosition::setPagePos
void setPagePos(int pg, MWAWVec2f const &newOrig) const
sets/resets the page and the origin
Definition: MWAWPosition.hxx:230
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
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
BeagleWksSSParser.hxx
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWChart::Axis
a axis in a chart
Definition: MWAWChart.hxx:62
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
MWAWCell::F_DATE
@ F_DATE
Definition: MWAWCell.hxx:56
BeagleWksSSParserInternal::SubDocument::SubDocument
SubDocument(BeagleWksSSParser &pars, MWAWInputStreamPtr &input, MWAWEntry const &entry)
Definition: BeagleWksSSParser.cxx:274
MWAWChart::Axis::A_Numeric
@ A_Numeric
Definition: MWAWChart.hxx:64
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
BeagleWksSSParserInternal::Spreadsheet::getRowHeight
double getRowHeight(int row) const
returns the height of a row in point
Definition: BeagleWksSSParser.cxx:102
MWAWCell::setPosition
void setPosition(MWAWVec2i posi)
set the cell positions : 0,0 -> A1, 0,1 -> A2
Definition: MWAWCell.hxx:189
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
MWAWCell::F_NUMBER_DECIMAL
@ F_NUMBER_DECIMAL
Definition: MWAWCell.hxx:58
BeagleWksSSParserInternal::Spreadsheet::addFormula
bool addFormula(MWAWVec2i const &cellPos, std::vector< MWAWCellContent::FormulaInstruction > const &formula)
try to associate a formula to a cell
Definition: BeagleWksSSParser.cxx:160
BeagleWksStructManager::Frame::m_border
MWAWBorder m_border
the border
Definition: BeagleWksStructManager.hxx:145
MWAWCell::setHAlignment
void setHAlignment(HorizontalAlignment align)
sets the horizontal alignment
Definition: MWAWCell.hxx:281
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MWAWChart::TextZone::T_Title
@ T_Title
Definition: MWAWChart.hxx:145
MWAWCell::F_NUMBER_PERCENT
@ F_NUMBER_PERCENT
Definition: MWAWCell.hxx:58
BeagleWksSSParserInternal::Cell::Cell
Cell(MWAWVec2i pos=MWAWVec2i(0, 0))
constructor
Definition: BeagleWksSSParser.cxx:65
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWChart::Axis::A_Logarithmic
@ A_Logarithmic
Definition: MWAWChart.hxx:64
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
MWAWCell::F_UNKNOWN
@ F_UNKNOWN
Definition: MWAWCell.hxx:56
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
BeagleWksSSParserInternal::Chart
Internal: the chart of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:173
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
BeagleWksSSParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: BeagleWksSSParser.cxx:1562
MWAWChart::TextZone::C_Text
@ C_Text
Definition: MWAWChart.hxx:147
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
BeagleWksSSParser::createDocument
void createDocument(librevenge::RVNGSpreadsheetInterface *documentInterface)
creates the listener which will be associated to the document
Definition: BeagleWksSSParser.cxx:410
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
MWAWChart::Series::S_Bar
@ S_Bar
Definition: MWAWChart.hxx:121
BeagleWksStructManager::Frame::m_origin
MWAWVec2f m_origin
the origin ( for a page frame )
Definition: BeagleWksStructManager.hxx:137
MWAWCell::F_NUMBER_SCIENTIFIC
@ F_NUMBER_SCIENTIFIC
Definition: MWAWCell.hxx:58
MWAWPrinter.hxx
BeagleWksSSParser::sendSpreadsheet
bool sendSpreadsheet()
try to send the main spreadsheet
Definition: BeagleWksSSParser.cxx:1493
BeagleWksSSParserInternal::Cell::m_content
MWAWCellContent m_content
the cell content
Definition: BeagleWksSSParser.cxx:77
BeagleWksStructManager::Frame::m_page
int m_page
the page ( for a page frame )
Definition: BeagleWksStructManager.hxx:141
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
BeagleWksSSParserInternal::State::m_spreadsheet
Spreadsheet m_spreadsheet
the spreadsheet
Definition: BeagleWksSSParser.cxx:256
MWAWCell::setFormat
void setFormat(Format const &format)
set the cell format
Definition: MWAWCell.hxx:242
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWHeaderFooter::m_subDocument
MWAWSubDocumentPtr m_subDocument
the document data
Definition: MWAWPageSpan.hxx:92
MWAWParser::resetSpreadsheetListener
void resetSpreadsheetListener()
resets the listener
Definition: MWAWParser.cxx:152
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWChart::Legend
a legend in a chart
Definition: MWAWChart.hxx:88
MWAWCell::setBackgroundColor
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
BeagleWksSSParser::newPage
void newPage(int number)
adds a new page
Definition: BeagleWksSSParser.cxx:365
MWAWChart::TextZone::m_textEntry
MWAWEntry m_textEntry
the text entry
Definition: MWAWChart.hxx:170
MWAWBox2::setMin
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1085
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWCell::Format::m_DTFormat
std::string m_DTFormat
a date/time format ( using a subset of strftime format )
Definition: MWAWCell.hxx:113
MWAWCell::setFont
void setFont(MWAWFont const &font, bool isDefault=false)
sets the fonts
Definition: MWAWCell.hxx:258
BeagleWksSSParserInternal::Spreadsheet::m_widthCols
std::vector< int > m_widthCols
the column size in points
Definition: BeagleWksSSParser.cxx:151
BeagleWksSSParserInternal::State::m_spreadsheetBegin
long m_spreadsheetBegin
the spreadsheet begin position
Definition: BeagleWksSSParser.cxx:254
MWAWChart::Series::S_Line
@ S_Line
Definition: MWAWChart.hxx:121
BeagleWksSSParserInternal::Cell
Internal: the cell of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:63
BeagleWksSSParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: BeagleWksSSParser.cxx:280
BeagleWksSSParserInternal::Chart::m_parser
BeagleWksSSParser * m_parser
the main parser
Definition: BeagleWksSSParser.cxx:184
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
MWAWHeaderFooter
a class which stores the header/footer data
Definition: MWAWPageSpan.hxx:45
MWAWChart::TextZone
a text zone a chart
Definition: MWAWChart.hxx:143
MWAWCell.hxx
Defines MWAWCell (cell content and format)
BeagleWksSSParser::readSpreadsheet
bool readSpreadsheet()
read the spreadsheet zone
Definition: BeagleWksSSParser.cxx:929
MWAWChart::Series::S_Stock
@ S_Stock
Definition: MWAWChart.hxx:121
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
BeagleWksSSParserInternal::SubDocument
Internal: the subdocument of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:272
MWAWSubDocument.hxx
BeagleWksSSParserInternal::State::getColor
static bool getColor(int id, MWAWColor &color)
returns a color corresponding to an id
Definition: BeagleWksSSParser.cxx:221
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
MWAWParser::getSpreadsheetListener
MWAWSpreadsheetListenerPtr & getSpreadsheetListener()
returns the spreadsheet listener
Definition: MWAWParser.hxx:140
BeagleWksStructManager
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:57
MWAWCell::Format::m_numberFormat
NumberType m_numberFormat
the numeric format
Definition: MWAWCell.hxx:97
BeagleWksSSParserInternal::Spreadsheet::m_numRows
int m_numRows
the number of rows
Definition: BeagleWksSSParser.cxx:149
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
BeagleWksStructManager::Frame
Internal: a structure use to store a frame in a BeagleWorks files.
Definition: BeagleWksStructManager.hxx:102
BeagleWksSSParserInternal::Spreadsheet::m_heightRows
std::vector< int > m_heightRows
the row size in points
Definition: BeagleWksSSParser.cxx:153
BeagleWksStructManager.hxx
BeagleWksSSParser::m_state
std::shared_ptr< BeagleWksSSParserInternal::State > m_state
the state
Definition: BeagleWksSSParser.hxx:153
BeagleWksSSParserInternal::Spreadsheet::getRowHeight
double getRowHeight(int row, int &numRepeated) const
returns the height of a row in point and updated repeated row
Definition: BeagleWksSSParser.cxx:109
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
MWAWSpreadsheetListenerPtr
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
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
BeagleWksSSParser::sendText
bool sendText(MWAWEntry const &entry, bool headerFooter=false)
try to send a text zone
Definition: BeagleWksSSParser.cxx:1457
BeagleWksSSParser
the main class to read a BeagleWorks spreadsheet file
Definition: BeagleWksSSParser.hxx:64
MWAWRSRCParser.hxx
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWParser::getRSRCParser
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
BeagleWksSSParserInternal::Spreadsheet::convertInPoint
static std::vector< float > convertInPoint(std::vector< int > const &list, float defSize)
convert the m_widthCols, m_heightRows in a vector of of point size
Definition: BeagleWksSSParser.cxx:126
BeagleWksSSParserInternal::Chart::m_input
MWAWInputStreamPtr m_input
the input
Definition: BeagleWksSSParser.cxx:186
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
BeagleWksSSParser::init
void init()
inits all internal variables
Definition: BeagleWksSSParser.cxx:331
BeagleWksSSParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
BeagleWksSSParser::readRSRCZones
bool readRSRCZones()
read the resource fork zone
Definition: BeagleWksSSParser.cxx:542
MWAWChart::Series::S_Column
@ S_Column
Definition: MWAWChart.hxx:121
MWAWCell::Format
a structure uses to define the format of a cell content
Definition: MWAWCell.hxx:60
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWDocument::MWAW_T_BEAGLEWORKS
@ MWAW_T_BEAGLEWORKS
BeagleWorks (v1.0)/WordPerfect Works (v1.2): export database(as spreadsheet), draw,...
Definition: MWAWDocument.hxx:103
MWAWChart::Series::S_Area
@ S_Area
Definition: MWAWChart.hxx:121
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
BeagleWksSSParserInternal::Cell::m_formula
int m_formula
the formula id
Definition: BeagleWksSSParser.cxx:79
BeagleWksSSParser::rsrcAscii
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: BeagleWksSSParser.cxx:348
MWAWChart::Axis::m_showLabel
bool m_showLabel
show or not the label
Definition: MWAWChart.hxx:81
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
BeagleWksSSParserInternal::Spreadsheet::m_lastReadRow
int m_lastReadRow
the last read rows
Definition: BeagleWksSSParser.cxx:157
BeagleWksSSParser::readCellSheet
bool readCellSheet(BeagleWksSSParserInternal::Cell &cell)
read a cell row
Definition: BeagleWksSSParser.cxx:1010
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 >
BeagleWksSSParserInternal::Cell::m_isEmpty
bool m_isEmpty
flag to know if the cell is empty
Definition: BeagleWksSSParser.cxx:81
BeagleWksSSParser::sendPageFrames
bool sendPageFrames()
try to send the page graphic
Definition: BeagleWksSSParser.cxx:1409
MWAWBox2::setMax
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1090
BeagleWksSSParser::createZones
bool createZones()
finds the different objects zones
Definition: BeagleWksSSParser.cxx:457
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:394
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
MWAWChart::Axis::m_showGrid
bool m_showGrid
show or not the grid
Definition: MWAWChart.hxx:79
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:83
BeagleWksSSParserInternal::Chart::operator=
Chart operator=(Chart const &orig)=delete
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
BeagleWksStructManager::Frame::m_pictId
int m_pictId
the picture id
Definition: BeagleWksStructManager.hxx:135
BeagleWksSSParser::BeagleWksSSParser
BeagleWksSSParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: BeagleWksSSParser.cxx:319
BeagleWksSSParser::readFormula
bool readFormula(BeagleWksSSParserInternal::Spreadsheet &sheet)
read the differents formula
Definition: BeagleWksSSParser.cxx:1360
BeagleWksSSParser::m_structureManager
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksSSParser.hxx:156
BeagleWksSSParser::sendFrame
bool sendFrame(BeagleWksStructManager::Frame const &frame)
try to send a frame
Definition: BeagleWksSSParser.cxx:1417
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
BeagleWksSSParserInternal::Spreadsheet::updateWidthCols
void updateWidthCols()
update the number of columns and the width
Definition: BeagleWksSSParser.cxx:139
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
BeagleWksSSParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: BeagleWksSSParser.cxx:296
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
MWAWSubDocument::operator!=
virtual bool operator!=(MWAWSubDocument const &doc) const
comparison operator!=
Definition: MWAWSubDocument.cxx:49
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
MWAWHeaderFooter::FOOTER
@ FOOTER
Definition: MWAWPageSpan.hxx:48
MWAWChart::Axis::A_Sequence
@ A_Sequence
Definition: MWAWChart.hxx:64
BeagleWksSSParser::sendPicture
bool sendPicture(int pId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: BeagleWksSSParser.cxx:1432
MWAWChart::Series::m_range
MWAWBox2i m_range
the data range
Definition: MWAWChart.hxx:138
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
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWCell::sendContent
virtual bool sendContent(MWAWListenerPtr listener, MWAWTable &table)
function called when the content of a cell must be send to the listener, ie.
Definition: MWAWCell.cxx:501
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
MWAWHeaderFooter::ALL
@ ALL
Definition: MWAWPageSpan.hxx:50
BeagleWksSSParser::~BeagleWksSSParser
~BeagleWksSSParser() final
destructor
Definition: BeagleWksSSParser.cxx:327
MWAWCell::F_NUMBER
@ F_NUMBER
Definition: MWAWCell.hxx:56
BeagleWksSSParser::parse
void parse(librevenge::RVNGSpreadsheetInterface *documentInterface) final
virtual function used to parse the input
Definition: BeagleWksSSParser.cxx:381
MWAWList.hxx
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWCell::F_TIME
@ F_TIME
Definition: MWAWCell.hxx:56
BeagleWksSSParserInternal::Spreadsheet::m_cells
std::vector< Cell > m_cells
the list of not empty cells
Definition: BeagleWksSSParser.cxx:155
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:178
BeagleWksSSParser::rsrcInput
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: BeagleWksSSParser.cxx:343
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
BeagleWksSSParserInternal
Internal: the structures of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:61
MWAWCell::F_NUMBER_CURRENCY
@ F_NUMBER_CURRENCY
Definition: MWAWCell.hxx:58
BeagleWksSSParserInternal::State
Internal: the state of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:206
MWAWChart::TextZone::m_type
Type m_type
the zone type
Definition: MWAWChart.hxx:162
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
BeagleWksSSParser::readZone0
bool readZone0()
read an unknown zone ( which appears before and after the columns's width zone )
Definition: BeagleWksSSParser.cxx:1291
MWAWChart::Series
a series in a chart
Definition: MWAWChart.hxx:119
MWAWCellContent::C_TEXT
@ C_TEXT
Definition: MWAWCell.hxx:433
BeagleWksStructManager::Frame::m_wrap
int m_wrap
the wrapping: 0=none, 1=rectangle, 2=irregular
Definition: BeagleWksStructManager.hxx:143
MWAWChart::Series::S_Scatter
@ S_Scatter
Definition: MWAWChart.hxx:121
MWAWCell::Format::m_format
FormatType m_format
the cell format : by default unknown
Definition: MWAWCell.hxx:95
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:178
BeagleWksSSParser::readRowSheet
bool readRowSheet(BeagleWksSSParserInternal::Spreadsheet &sheet)
read the spreadsheet row
Definition: BeagleWksSSParser.cxx:961
MWAWChart
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:58
MWAWChart::TextZone::m_contentType
ContentType m_contentType
the content type
Definition: MWAWChart.hxx:164
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
BeagleWksSSParser::readPrintInfo
bool readPrintInfo()
read the print info zone
Definition: BeagleWksSSParser.cxx:580
MWAWCell::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:382
BeagleWksSSParserInternal::Chart::Chart
Chart(Chart const &orig)=delete
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MWAWChart::TextZone::m_font
MWAWFont m_font
the zone format
Definition: MWAWChart.hxx:172
MWAWPageSpan::setHeaderFooter
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
MWAWSpreadsheetListener.hxx
Defines MWAWSpreadsheetListener: the libmwaw spreadsheet processor listener.
BeagleWksSSParser::readChart
bool readChart()
read a chart
Definition: BeagleWksSSParser.cxx:670
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
BeagleWksSSParser::readColumnWidths
bool readColumnWidths(BeagleWksSSParserInternal::Spreadsheet &sheet)
read the columns widths
Definition: BeagleWksSSParser.cxx:1312
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
BeagleWksSSParserInternal::Cell::~Cell
~Cell() final
destructor
Definition: BeagleWksSSParser.cxx:84
BeagleWksSSParser::getPageLeftTop
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: BeagleWksSSParser.cxx:356
MWAWInputStream.hxx
MWAWCell::backgroundColor
MWAWColor backgroundColor() const
returns the background color
Definition: MWAWCell.hxx:327
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
librevenge
Definition: MWAWDocument.hxx:57
BeagleWksSSParserInternal::Chart::sendContent
void sendContent(TextZone const &zone, MWAWListenerPtr &listener) final
send a zone content
Definition: BeagleWksSSParser.cxx:192
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
MWAWBox2< int >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWChart::Legend::m_show
bool m_show
show or not the legend
Definition: MWAWChart.hxx:106
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
MWAWCellContent::C_NUMBER
@ C_NUMBER
Definition: MWAWCell.hxx:433
MWAWCell::position
MWAWVec2i const & position() const
position accessor
Definition: MWAWCell.hxx:184
BeagleWksSSParserInternal::State::State
State()
constructor
Definition: BeagleWksSSParser.cxx:208
BeagleWksSSParserInternal::State::m_spreadsheetName
std::string m_spreadsheetName
the spreadsheet name
Definition: BeagleWksSSParser.cxx:258
MWAWChart::Series::m_type
Type m_type
the type
Definition: MWAWChart.hxx:136
BeagleWksSSParserInternal::Spreadsheet::Spreadsheet
Spreadsheet()
constructor
Definition: BeagleWksSSParser.cxx:91
MWAWCell::HALIGN_RIGHT
@ HALIGN_RIGHT
Definition: MWAWCell.hxx:128
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
BeagleWksSSParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: BeagleWksSSParser.cxx:283
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
BeagleWksStructManager::Frame::m_bordersSet
int m_bordersSet
the list of border which are set in form libmwaw::LeftBit|...
Definition: BeagleWksStructManager.hxx:147
MWAWParser.hxx
BeagleWksSSParserInternal::Cell::Cell
Cell(Cell const &)=default
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
BeagleWksSSParserInternal::Chart::Chart
Chart(std::string const &name, BeagleWksSSParser &parser)
constructor
Definition: BeagleWksSSParser.cxx:175
BeagleWksSSParserInternal::State::m_typeEntryMap
std::multimap< std::string, MWAWEntry > m_typeEntryMap
the type entry map
Definition: BeagleWksSSParser.cxx:262
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWCell::Format::m_thousandHasSeparator
bool m_thousandHasSeparator
true if we must separate the thousand
Definition: MWAWCell.hxx:107
MWAWChart::Axis::m_type
Type m_type
the sequence type
Definition: MWAWChart.hxx:77
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
MWAWCell::F_TEXT
@ F_TEXT
Definition: MWAWCell.hxx:56
BeagleWksSSParserInternal::Spreadsheet
Internal: the spreadsheet of a BeagleWksSSParser.
Definition: BeagleWksSSParser.cxx:89
BeagleWksSSParserInternal::State::m_chartList
std::vector< std::shared_ptr< Chart > > m_chartList
the list of chart
Definition: BeagleWksSSParser.cxx:260
BeagleWksSSParser::readChartZone
bool readChartZone()
read the chart zone
Definition: BeagleWksSSParser.cxx:636

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