- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

MWAWSpreadsheetListener.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
40 #ifndef MWAW_SPREADSHEET_LISTENER_H
41 #define MWAW_SPREADSHEET_LISTENER_H
42
43 #include <vector>
44
45 #include <librevenge/librevenge.h>
46
47 #include "libmwaw_internal.hxx"
48
49 #include "MWAWListener.hxx"
50
51 class MWAWCell;
52 class MWAWCellContent;
53 class MWAWChart;
54 class MWAWGraphicStyle;
55 class MWAWGraphicShape;
56 class MWAWTable;
57
58 namespace MWAWSpreadsheetListenerInternal
59 {
60 struct DocumentState;
61 struct State;
62 }
63
65 class MWAWSpreadsheetListener : public MWAWListener
66 {
67 public:
69 MWAWSpreadsheetListener(MWAWParserState &parserState, std::vector<MWAWPageSpan> const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface);
73 MWAWSpreadsheetListener(MWAWParserState &parserState, MWAWBox2f const &box, librevenge::RVNGSpreadsheetInterface *documentInterface);
75 virtual ~MWAWSpreadsheetListener();
76
78 Type getType() const
79 {
80 return Spreadsheet;
81 }
82
84 void setDocumentLanguage(std::string locale);
85
87 void startDocument();
89 void endDocument(bool sendDelayedSubDoc=true);
91 bool isDocumentStarted() const;
92
94 void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType);
96 bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const;
98 bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
100 void closeFrame();
101
103 bool canWriteText() const;
104
105 // ------ page --------
107 bool isPageSpanOpened() const;
111 MWAWPageSpan const &getPageSpan();
112
113 // ------ header/footer --------
115 bool insertHeader(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras);
117 bool insertFooter(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras);
119 bool isHeaderFooterOpened() const;
120
121 // ------- sheet -----------------
123 void openSheet(std::vector<float> const &colWidth, librevenge::RVNGUnit unit, std::string const &name="");
125 void closeSheet();
127 void openSheetRow(float h, librevenge::RVNGUnit unit);
129 void closeSheetRow();
131 void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content);
133 void closeSheetCell();
134
135 // ------- chart -----------------
137 void insertChart(MWAWPosition const &pos, MWAWChart &chart,
138 MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
139
140 // ------ text data -----------
141
143 void insertChar(uint8_t character);
146 void insertCharacter(unsigned char c);
152 int insertCharacter(unsigned char c, MWAWInputStreamPtr &input, long endPos=-1);
155 void insertUnicode(uint32_t character);
157 void insertUnicodeString(librevenge::RVNGString const &str);
158
160 void insertTab();
162 void insertEOL(bool softBreak=false);
163
164 // ------ text format -----------
166 void setFont(MWAWFont const &font);
168 MWAWFont const &getFont() const;
169
170 // ------ paragraph format -----------
172 bool isParagraphOpened() const;
174 void setParagraph(MWAWParagraph const &paragraph);
176 MWAWParagraph const &getParagraph() const;
177
178 // ------- fields ----------------
180 void insertField(MWAWField const &field);
181
182 // ------- link ----------------
184 void openLink(MWAWLink const &link);
186 void closeLink();
187
188 // ------- subdocument -----------------
190 void insertNote(MWAWNote const &note, MWAWSubDocumentPtr &subDocument);
191
193 void insertComment(MWAWSubDocumentPtr &subDocument);
194
196 void insertPicture(MWAWPosition const &pos, const librevenge::RVNGBinaryData &binaryData,
197 std::string type="image/pict", MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
199 void insertPicture(MWAWPosition const &pos, MWAWGraphicShape const &shape,
200 MWAWGraphicStyle const &style);
202 void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument,
203 MWAWGraphicStyle const &frameStyle=MWAWGraphicStyle::emptyStyle());
204
205 // ------- table -----------------
207 void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle());
209 void openTable(MWAWTable const &table);
211 void closeTable();
213 void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false);
215 void closeTableRow();
217 void openTableCell(MWAWCell const &cell);
219 void closeTableCell();
221 void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1,1));
222
223 // ------- section ---------------
225 bool canOpenSectionAddBreak() const
226 {
227 return false;
228 }
230 bool isSectionOpened() const
231 {
232 return false;
233 }
235 MWAWSection const &getSection() const;
237 bool openSection(MWAWSection const &section);
239 bool closeSection();
241 void insertBreak(BreakType breakType);
242
243 protected:
245 void _openPageSpan(bool sendHeaderFooters=true);
247 void _closePageSpan();
248
249 void _startSubDocument();
250 void _endSubDocument();
251
252 void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos);
253
254 void _openParagraph();
255 void _closeParagraph();
256 void _resetParagraphState(const bool isListElement=false);
257
259 void _openListElement();
261 void _closeListElement();
263 void _changeList();
268 int _getListId() const;
269
270 void _openSpan();
271 void _closeSpan();
272
273 void _flushText();
274 void _flushDeferredTabs();
275
279 shared_ptr<MWAWSpreadsheetListenerInternal::State> _pushParsingState();
281 void _popParsingState();
282
283 protected:
285 shared_ptr<MWAWSpreadsheetListenerInternal::DocumentState> m_ds;
287 shared_ptr<MWAWSpreadsheetListenerInternal::State> m_ps;
289 std::vector<shared_ptr<MWAWSpreadsheetListenerInternal::State> > m_psStack;
291 MWAWParserState &m_parserState;
293 librevenge::RVNGSpreadsheetInterface *m_documentInterface;
294
295 private:
297 MWAWSpreadsheetListener(const MWAWSpreadsheetListener &);
299 MWAWSpreadsheetListener &operator=(const MWAWSpreadsheetListener &);
300 };
301
302 #endif
303 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWSpreadsheetListener::_resetParagraphState
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWSpreadsheetListener.cxx:748
MWAWSpreadsheetListener::_openListElement
void _openListElement()
open a list level
Definition: MWAWSpreadsheetListener.cxx:758
MWAWSpreadsheetListener::closeFrame
void closeFrame()
tries to close a frame
Definition: MWAWSpreadsheetListener.cxx:1226
MWAWSpreadsheetListener::_flushText
void _flushText()
Definition: MWAWSpreadsheetListener.cxx:919
MWAWSpreadsheetListener::_openPageSpan
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWSpreadsheetListener.cxx:594
MWAWSpreadsheetListener::insertBreak
void insertBreak(BreakType breakType)
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWSpreadsheetListener.cxx:376
MWAWSpreadsheetListener::_startSubDocument
void _startSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1528
MWAWSpreadsheetListener::closeSheetRow
void closeSheetRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1613
MWAWSpreadsheetListener::isSectionOpened
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWSpreadsheetListener.hxx:230
MWAWSpreadsheetListener::insertEOL
void insertEOL(bool softBreak=false)
adds an end of line ( by default an hard one)
Definition: MWAWSpreadsheetListener.cxx:337
MWAWSpreadsheetListener::_popParsingState
void _popParsingState()
resets the previous parsing state
Definition: MWAWSpreadsheetListener.cxx:1928
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
MWAWSpreadsheetListener::openTableRow
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWSpreadsheetListener.cxx:1830
libmwaw_internal.hxx
MWAWSpreadsheetListener::openLink
void openLink(MWAWLink const &link)
open a link
Definition: MWAWSpreadsheetListener.cxx:490
MWAWSpreadsheetListener::_closeSpan
void _closeSpan()
Definition: MWAWSpreadsheetListener.cxx:885
MWAWLink
a link
Definition: libmwaw_internal.hxx:380
MWAWSpreadsheetListener::m_documentInterface
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: MWAWSpreadsheetListener.hxx:293
MWAWSpreadsheetListener::insertTab
void insertTab()
adds a tab
Definition: MWAWSpreadsheetListener.cxx:360
MWAWSpreadsheetListener::closeLink
void closeLink()
close a link
Definition: MWAWSpreadsheetListener.cxx:510
MWAWSpreadsheetListener::canOpenSectionAddBreak
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWSpreadsheetListener.hxx:225
MWAWSpreadsheetListener::insertCharacter
void insertCharacter(unsigned char c)
insert a character using the font converter to find the utf8 character
Definition: MWAWSpreadsheetListener.cxx:256
MWAWSpreadsheetListener::isParagraphOpened
bool isParagraphOpened() const
returns true if a paragraph or a list is opened
Definition: MWAWSpreadsheetListener.cxx:406
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:173
MWAWTable
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:717
MWAWSpreadsheetListener::closeSheet
void closeSheet()
closes this sheet
Definition: MWAWSpreadsheetListener.cxx:1581
MWAWListener::Type
Type
the listener type
Definition: MWAWListener.hxx:56
MWAWSpreadsheetListener::m_ps
shared_ptr< MWAWSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWSpreadsheetListener.hxx:287
MWAWCell
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
MWAWSpreadsheetListener::_pushParsingState
shared_ptr< MWAWSpreadsheetListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWSpreadsheetListener.cxx:1917
MWAWSpreadsheetListener::insertField
void insertField(MWAWField const &field)
adds a field type
Definition: MWAWSpreadsheetListener.cxx:426
MWAWSubDocumentPtr
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:453
MWAWSpreadsheetListener::getFont
MWAWFont const & getFont() const
returns the actual font
Definition: MWAWSpreadsheetListener.cxx:401
MWAWCellContent
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
MWAWSpreadsheetListener::openSheetRow
void openSheetRow(float h, librevenge::RVNGUnit unit)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWSpreadsheetListener.cxx:1594
MWAWSpreadsheetListener::_handleFrameParameters
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos)
Definition: MWAWSpreadsheetListener.cxx:1237
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
MWAWBox2< float >
MWAWParserState
a class to define the parser state
Definition: MWAWParser.hxx:49
MWAWSpreadsheetListener::insertUnicodeString
void insertUnicodeString(librevenge::RVNGString const &str)
adds a unicode string
Definition: MWAWSpreadsheetListener.cxx:325
MWAWListener::BreakType
BreakType
the different break type
Definition: MWAWListener.hxx:58
MWAWSpreadsheetListener::isDocumentStarted
bool isDocumentStarted() const
returns true if a document is opened
Definition: MWAWSpreadsheetListener.cxx:530
MWAWSpreadsheetListener::endDocument
void endDocument(bool sendDelayedSubDoc=true)
ends the document
Definition: MWAWSpreadsheetListener.cxx:548
MWAWSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
MWAWSpreadsheetListener::closeTableRow
void closeTableRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1851
MWAWSpreadsheetListener::insertUnicode
void insertUnicode(uint32_t character)
adds an unicode character.
Definition: MWAWSpreadsheetListener.cxx:310
MWAWSpreadsheetListener::setFont
void setFont(MWAWFont const &font)
sets the font
Definition: MWAWSpreadsheetListener.cxx:385
MWAWSpreadsheetListener::getPageSpan
MWAWPageSpan const & getPageSpan()
returns the current page span
Definition: MWAWSpreadsheetListener.cxx:586
MWAWSpreadsheetListener::insertComment
void insertComment(MWAWSubDocumentPtr &subDocument)
adds comment
Definition: MWAWSpreadsheetListener.cxx:1003
MWAWSpreadsheetListener::addEmptyTableCell
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1))
add empty cell
Definition: MWAWSpreadsheetListener.cxx:1861
MWAWSpreadsheetListener::_openParagraph
void _openParagraph()
Definition: MWAWSpreadsheetListener.cxx:708
MWAWSpreadsheetListener::startDocument
void startDocument()
starts the document
Definition: MWAWSpreadsheetListener.cxx:535
MWAWSpreadsheetListener::insertChart
void insertChart(MWAWPosition const &pos, MWAWChart &chart, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a chart in given position
Definition: MWAWSpreadsheetListener.cxx:1767
MWAWSpreadsheetListener::closeTable
void closeTable()
closes this table
Definition: MWAWSpreadsheetListener.cxx:1816
MWAWSpreadsheetListener::insertTable
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWSpreadsheetListener.cxx:1737
MWAWSpreadsheetListener::_closeParagraph
void _closeParagraph()
Definition: MWAWSpreadsheetListener.cxx:727
MWAWSpreadsheetListener::_changeList
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWSpreadsheetListener.cxx:810
MWAWSpreadsheetListener::_openSpan
void _openSpan()
Definition: MWAWSpreadsheetListener.cxx:864
MWAWSpreadsheetListener::operator=
MWAWSpreadsheetListener & operator=(const MWAWSpreadsheetListener &)
operator= (unimplemented)
MWAWSpreadsheetListener::openSection
bool openSection(MWAWSection const &section)
open a section if possible
Definition: MWAWSpreadsheetListener.cxx:693
MWAWSpreadsheetListener::openFrame
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
tries to open a frame
Definition: MWAWSpreadsheetListener.cxx:1166
MWAWSpreadsheetListener::_getListId
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWSpreadsheetListener.cxx:793
MWAWSpreadsheetListener::insertNote
void insertNote(MWAWNote const &note, MWAWSubDocumentPtr &subDocument)
insert a note
Definition: MWAWSpreadsheetListener.cxx:950
MWAWSpreadsheetListener::insertTextBox
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &frameStyle=MWAWGraphicStyle::emptyStyle())
adds a textbox in given position
Definition: MWAWSpreadsheetListener.cxx:1036
MWAWSpreadsheetListener::setParagraph
void setParagraph(MWAWParagraph const &paragraph)
sets the paragraph
Definition: MWAWSpreadsheetListener.cxx:411
MWAWSection
a class which stores section properties
Definition: MWAWSection.hxx:45
MWAWInputStreamPtr
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
MWAWSpreadsheetListener::closeTableCell
void closeTableCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1897
MWAWListener::Spreadsheet
Definition: MWAWListener.hxx:56
MWAWSpreadsheetListener::m_psStack
std::vector< shared_ptr< MWAWSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWSpreadsheetListener.hxx:289
MWAWSpreadsheetListener::openTable
void openTable(MWAWTable const &table)
open a table
Definition: MWAWSpreadsheetListener.cxx:1792
MWAWListener.hxx
MWAWSpreadsheetListener::closeSheetCell
void closeSheetCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1723
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWSpreadsheetListener::~MWAWSpreadsheetListener
virtual ~MWAWSpreadsheetListener()
destructor
Definition: MWAWSpreadsheetListener.cxx:229
MWAWSpreadsheetListener::m_ds
shared_ptr< MWAWSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: MWAWSpreadsheetListener.hxx:285
MWAWSpreadsheetListener::canWriteText
bool canWriteText() const
returns true if we can add text data
Definition: MWAWSpreadsheetListener.cxx:236
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
MWAWSpreadsheetListener::getParagraph
MWAWParagraph const & getParagraph() const
returns the actual paragraph
Definition: MWAWSpreadsheetListener.cxx:418
MWAWField
a field
Definition: libmwaw_internal.hxx:361
MWAWSpreadsheetListener::isSubDocumentOpened
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const
returns try if a subdocument is open
Definition: MWAWSpreadsheetListener.cxx:1520
MWAWSpreadsheetListener::insertHeader
bool insertHeader(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a header
Definition: MWAWSpreadsheetListener.cxx:657
MWAWSpreadsheetListenerInternal
Internal and low level namespace to define the states of MWAWSpreadsheetListener. ...
Definition: MWAWSpreadsheetListener.cxx:71
MWAWSpreadsheetListener::MWAWSpreadsheetListener
MWAWSpreadsheetListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface)
constructor
Definition: MWAWSpreadsheetListener.cxx:211
MWAWSpreadsheetListener::handleSubDocument
void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument
Definition: MWAWSpreadsheetListener.cxx:1457
MWAWSpreadsheetListener::openSheetCell
void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1623
MWAWNote
a note
Definition: libmwaw_internal.hxx:394
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
MWAWListener
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
MWAWSpreadsheetListener::_flushDeferredTabs
void _flushDeferredTabs()
Definition: MWAWSpreadsheetListener.cxx:899
MWAWSpreadsheetListener::_endSubDocument
void _endSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1534
MWAWSpreadsheetListener::_closeListElement
void _closeListElement()
close a list level
Definition: MWAWSpreadsheetListener.cxx:780
MWAWSpreadsheetListener::setDocumentLanguage
void setDocumentLanguage(std::string locale)
sets the documents language
Definition: MWAWSpreadsheetListener.cxx:524
MWAWSpreadsheetListener::insertChar
void insertChar(uint8_t character)
adds a basic character, ..
Definition: MWAWSpreadsheetListener.cxx:241
MWAWSpreadsheetListener::m_parserState
MWAWParserState & m_parserState
the parser state
Definition: MWAWSpreadsheetListener.hxx:291
MWAWSpreadsheetListener::_closePageSpan
void _closePageSpan()
does close a page (low level)
Definition: MWAWSpreadsheetListener.cxx:640
MWAWSpreadsheetListener::closeSection
bool closeSection()
close a section
Definition: MWAWSpreadsheetListener.cxx:699
MWAWChart
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:57
MWAWSpreadsheetListener::isPageSpanOpened
bool isPageSpanOpened() const
returns true if a page is opened
Definition: MWAWSpreadsheetListener.cxx:581
MWAWSpreadsheetListener::getType
Type getType() const
returns the listener type
Definition: MWAWSpreadsheetListener.hxx:78
MWAWVec2< int >
MWAWSpreadsheetListener::insertPicture
void insertPicture(MWAWPosition const &pos, const librevenge::RVNGBinaryData &binaryData, std::string type="image/pict", MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a picture in given position
Definition: MWAWSpreadsheetListener.cxx:1136
MWAWSpreadsheetListener::getSection
MWAWSection const & getSection() const
returns the actual section
Definition: MWAWSpreadsheetListener.cxx:686
MWAWSpreadsheetListener::openSheet
void openSheet(std::vector< float > const &colWidth, librevenge::RVNGUnit unit, std::string const &name="")
open a sheet
Definition: MWAWSpreadsheetListener.cxx:1550
MWAWSpreadsheetListener::isHeaderFooterOpened
bool isHeaderFooterOpened() const
returns true if the header/footer is open
Definition: MWAWSpreadsheetListener.cxx:652
MWAWSpreadsheetListener::insertFooter
bool insertFooter(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a footer
Definition: MWAWSpreadsheetListener.cxx:670
MWAWSpreadsheetListener::openTableCell
void openTableCell(MWAWCell const &cell)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1880
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:204