STOFFSpreadsheetListener.hxx Source File documentation

STOFFSpreadsheetListener.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 /* libstaroffice
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 STOFF_SPREADSHEET_LISTENER_H
41 #define STOFF_SPREADSHEET_LISTENER_H
42
43 #include <vector>
44
45 #include <librevenge/librevenge.h>
46
47 #include "libstaroffice_internal.hxx"
48
49 #include "STOFFListener.hxx"
50
51 class STOFFCell;
52 class STOFFCellContent;
53 class STOFFChart;
54 class STOFFGraphicStyle;
55 class STOFFTable;
56
57 namespace STOFFSpreadsheetListenerInternal
58 {
59 struct DocumentState;
60 struct State;
61 }
62
64 class STOFFSpreadsheetListener : public STOFFListener
65 {
66 public:
68 STOFFSpreadsheetListener(STOFFListManagerPtr listManager, std::vector<STOFFPageSpan> const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface);
70 ~STOFFSpreadsheetListener() final;
71
73 Type getType() const final
74 {
75 return Spreadsheet;
76 }
77
79 void setDocumentLanguage(std::string locale) final;
81 void setDocumentMetaData(const librevenge::RVNGPropertyList &list) final;
82
84 void startDocument() final;
86 void endDocument(bool sendDelayedSubDoc=true) final;
88 bool isDocumentStarted() const final;
89
91 void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType) final;
93 bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const final;
95 bool openFrame(STOFFPosition const &pos, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final;
97 void closeFrame() final;
99 bool openGroup(STOFFPosition const &pos) final;
101 void closeGroup() final;
102
104 bool canWriteText() const final;
105
106 // ------ page --------
108 bool isPageSpanOpened() const final;
112 STOFFPageSpan const &getPageSpan() final;
113
114 // ------ header/footer --------
116 bool openHeader(librevenge::RVNGPropertyList const &extras) final;
118 bool openFooter(librevenge::RVNGPropertyList const &extras) final;
120 bool closeHeader() final;
122 bool closeFooter() final;
124 bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final;
126 bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final;
128 bool isHeaderFooterOpened() const final;
129
130 // ------- sheet -----------------
132 void openSheet(std::vector<float> const &colWidth, librevenge::RVNGUnit unit,
133 std::vector<int> const &repeatColWidthNumber=std::vector<int>(), librevenge::RVNGString const &name="");
135 void closeSheet();
137 void openSheetRow(float h, librevenge::RVNGUnit unit, int numRepeated=1);
139 void closeSheetRow();
141 void openSheetCell(STOFFCell const &cell, STOFFCellContent const &content, int numRepeated=1);
143 void closeSheetCell();
144
145 // ------- chart -----------------
147 void insertChart(STOFFPosition const &pos, STOFFChart &chart, STOFFGraphicStyle const &style=STOFFGraphicStyle());
148
149 // ------ text data -----------
150
152 void insertChar(uint8_t character) final;
155 void insertUnicode(uint32_t character) final;
157 void insertUnicodeString(librevenge::RVNGString const &str) final;
158
160 void insertTab() final;
162 void insertEOL(bool softBreak=false) final;
163
164 // ------ text format -----------
166 void setFont(STOFFFont const &font) final;
168 STOFFFont const &getFont() const final;
169
170 // ------ paragraph format -----------
172 bool isParagraphOpened() const final;
174 void setParagraph(STOFFParagraph const &paragraph) final;
176 STOFFParagraph const &getParagraph() const final;
177
178 // ------ style definition -----------
180 void defineStyle(STOFFFont const &style) final;
182 bool isFontStyleDefined(librevenge::RVNGString const &name) const final;
184 void defineStyle(STOFFGraphicStyle const &style) final;
186 bool isGraphicStyleDefined(librevenge::RVNGString const &name) const final;
188 void defineStyle(STOFFParagraph const &style) final;
190 bool isParagraphStyleDefined(librevenge::RVNGString const &name) const final;
191
192 // ------- fields ----------------
194 void insertField(STOFFField const &field) final;
195
196 // ------- link ----------------
198 void openLink(STOFFLink const &link) final;
200 void closeLink() final;
201
202 // ------- subdocument -----------------
204 void insertNote(STOFFNote const &note, STOFFSubDocumentPtr &subDocument) final;
206 void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="") final;
207
209 void insertPicture(STOFFPosition const &pos, STOFFEmbeddedObject const &picture,
210 STOFFGraphicStyle const &style=STOFFGraphicStyle()) final;
212 void insertShape(STOFFGraphicShape const &shape, STOFFGraphicStyle const &style, STOFFPosition const &pos) final;
214 void insertTextBox(STOFFPosition const &pos, STOFFSubDocumentPtr subDocument,
215 STOFFGraphicStyle const &frameStyle=STOFFGraphicStyle()) final;
216 // ------- table -----------------
218 void openTable(STOFFTable const &table) final;
220 void closeTable() final;
222 void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final;
224 void closeTableRow() final;
226 void openTableCell(STOFFCell const &cell) final;
228 void closeTableCell() final;
230 void addCoveredTableCell(STOFFVec2i const &pos) final;
232 void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1,1)) final;
233
234 // ------- section ---------------
236 bool canOpenSectionAddBreak() const final
237 {
238 return false;
239 }
241 bool isSectionOpened() const final
242 {
243 return false;
244 }
246 STOFFSection const &getSection() const final;
248 bool openSection(STOFFSection const &section) final;
250 bool closeSection() final;
252 void insertBreak(BreakType breakType) final;
253
254 protected:
256 void _openPageSpan(bool sendHeaderFooters=true);
258 void _closePageSpan();
259
260 void _startSubDocument();
261 void _endSubDocument();
262
263 void _handleFrameParameters(librevenge::RVNGPropertyList &propList, STOFFPosition const &pos);
264
265 void _openParagraph();
266 void _closeParagraph();
267 void _resetParagraphState(const bool isListElement=false);
268
270 void _openListElement();
272 void _closeListElement();
274 void _changeList();
279 int _getListId() const;
280
281 void _openSpan();
282 void _closeSpan();
283
284 void _flushText();
285 void _flushDeferredTabs();
286
290 std::shared_ptr<STOFFSpreadsheetListenerInternal::State> _pushParsingState();
292 void _popParsingState();
293
294 protected:
296 std::shared_ptr<STOFFSpreadsheetListenerInternal::DocumentState> m_ds;
298 std::shared_ptr<STOFFSpreadsheetListenerInternal::State> m_ps;
300 std::vector<std::shared_ptr<STOFFSpreadsheetListenerInternal::State> > m_psStack;
302 librevenge::RVNGSpreadsheetInterface *m_documentInterface;
303
304 private:
306 STOFFSpreadsheetListener(const STOFFSpreadsheetListener &);
308 STOFFSpreadsheetListener &operator=(const STOFFSpreadsheetListener &);
309 };
310
311 #endif
312 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
STOFFSpreadsheetListener::_flushDeferredTabs
void _flushDeferredTabs()
Definition: STOFFSpreadsheetListener.cxx:932
STOFFSpreadsheetListener::closeTable
void closeTable() final
closes this table
Definition: STOFFSpreadsheetListener.cxx:1601
STOFFSpreadsheetListener::m_ps
std::shared_ptr< STOFFSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFSpreadsheetListener.hxx:298
STOFFSpreadsheetListener::openHeader
bool openHeader(librevenge::RVNGPropertyList const &extras) final
open a header (interaction with STOFFPageSpan which fills the parameters for openHeader) ...
Definition: STOFFSpreadsheetListener.cxx:636
STOFFSpreadsheetListener::endDocument
void endDocument(bool sendDelayedSubDoc=true) final
ends the document
Definition: STOFFSpreadsheetListener.cxx:529
STOFFSpreadsheetListener::setDocumentMetaData
void setDocumentMetaData(const librevenge::RVNGPropertyList &list) final
sets the document meta data
Definition: STOFFSpreadsheetListener.cxx:504
STOFFSpreadsheetListener::handleSubDocument
void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType) final
function called to add a subdocument
Definition: STOFFSpreadsheetListener.cxx:1252
STOFFSpreadsheetListener::insertField
void insertField(STOFFField const &field) final
adds a field type
Definition: STOFFSpreadsheetListener.cxx:447
STOFFSpreadsheetListener::closeTableCell
void closeTableCell() final
close a cell
Definition: STOFFSpreadsheetListener.cxx:1698
STOFFSpreadsheetListener::_handleFrameParameters
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, STOFFPosition const &pos)
Definition: STOFFSpreadsheetListener.cxx:1244
STOFFSpreadsheetListener::openFooter
bool openFooter(librevenge::RVNGPropertyList const &extras) final
open a footer (interaction with STOFFPageSpan which fills the parameters for openFooter) ...
Definition: STOFFSpreadsheetListener.cxx:677
STOFFSpreadsheetListener::isHeaderFooterOpened
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: STOFFSpreadsheetListener.cxx:631
STOFFSpreadsheetListener::STOFFSpreadsheetListener
STOFFSpreadsheetListener(STOFFListManagerPtr listManager, std::vector< STOFFPageSpan > const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface)
constructor
Definition: STOFFSpreadsheetListener.cxx:239
STOFFSpreadsheetListener::closeLink
void closeLink() final
close a link
Definition: STOFFSpreadsheetListener.cxx:484
librevenge
Definition: STOFFDocument.hxx:42
STOFFSpreadsheetListener::closeSheet
void closeSheet()
closes this sheet
Definition: STOFFSpreadsheetListener.cxx:1382
STOFFListener::Spreadsheet
Definition: STOFFListener.hxx:57
STOFFCell
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
STOFFSpreadsheetListener::m_ds
std::shared_ptr< STOFFSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: STOFFSpreadsheetListener.hxx:296
STOFFVec2< int >
STOFFSpreadsheetListener::insertNote
void insertNote(STOFFNote const &note, STOFFSubDocumentPtr &subDocument) final
insert a note
Definition: STOFFSpreadsheetListener.cxx:973
STOFFSpreadsheetListener::startDocument
void startDocument() final
starts the document
Definition: STOFFSpreadsheetListener.cxx:516
STOFFSpreadsheetListener::insertPicture
void insertPicture(STOFFPosition const &pos, STOFFEmbeddedObject const &picture, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a picture with potential various representationin given position
Definition: STOFFSpreadsheetListener.cxx:1080
STOFFSpreadsheetListener::setDocumentLanguage
void setDocumentLanguage(std::string locale) final
sets the document language
Definition: STOFFSpreadsheetListener.cxx:498
STOFFListener::Type
Type
the listener type
Definition: STOFFListener.hxx:57
STOFFCellContent
small class use to define a sheet cell content
Definition: STOFFCell.hxx:234
STOFFSpreadsheetListener::closeFooter
bool closeFooter() final
close a footer
Definition: STOFFSpreadsheetListener.cxx:707
STOFFSpreadsheetListener::openFrame
bool openFrame(STOFFPosition const &pos, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
tries to open a frame
Definition: STOFFSpreadsheetListener.cxx:1164
STOFFSpreadsheetListener::insertBreak
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: STOFFSpreadsheetListener.cxx:386
STOFFLink
a link
Definition: libstaroffice_internal.hxx:375
STOFFSpreadsheetListener::insertUnicode
void insertUnicode(uint32_t character) final
adds an unicode character.
Definition: STOFFSpreadsheetListener.cxx:316
STOFFSpreadsheetListener::canWriteText
bool canWriteText() const final
returns true if we can add text data
Definition: STOFFSpreadsheetListener.cxx:296
STOFFSpreadsheetListenerInternal
Internal and low level namespace to define the states of STOFFSpreadsheetListener.
Definition: STOFFSpreadsheetListener.cxx:73
STOFFSpreadsheetListener::isSectionOpened
bool isSectionOpened() const final
returns true if a section is opened
Definition: STOFFSpreadsheetListener.hxx:241
STOFFSpreadsheetListener::isFontStyleDefined
bool isFontStyleDefined(librevenge::RVNGString const &name) const final
check if a font style with a display name is already defined
Definition: STOFFSpreadsheetListener.cxx:278
STOFFSpreadsheetListener::openSheet
void openSheet(std::vector< float > const &colWidth, librevenge::RVNGUnit unit, std::vector< int > const &repeatColWidthNumber=std::vector< int >(), librevenge::RVNGString const &name="")
open a sheet
Definition: STOFFSpreadsheetListener.cxx:1345
STOFFTable
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
STOFFSpreadsheetListener::_closeListElement
void _closeListElement()
close a list level
Definition: STOFFSpreadsheetListener.cxx:813
STOFFSpreadsheetListener::_changeList
void _changeList()
update the list so that it corresponds to the actual level
Definition: STOFFSpreadsheetListener.cxx:842
STOFFSpreadsheetListener::closeFrame
void closeFrame() final
tries to close a frame
Definition: STOFFSpreadsheetListener.cxx:1233
STOFFSpreadsheetListener::insertTextBox
void insertTextBox(STOFFPosition const &pos, STOFFSubDocumentPtr subDocument, STOFFGraphicStyle const &frameStyle=STOFFGraphicStyle()) final
adds a textbox in given position
Definition: STOFFSpreadsheetListener.cxx:1061
STOFFSpreadsheetListener::m_psStack
std::vector< std::shared_ptr< STOFFSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFSpreadsheetListener.hxx:300
STOFFSpreadsheetListener::_closeSpan
void _closeSpan()
Definition: STOFFSpreadsheetListener.cxx:918
STOFFSpreadsheetListener::insertFooterRegion
bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a footer
Definition: STOFFSpreadsheetListener.cxx:689
STOFFSpreadsheetListener::closeSheetCell
void closeSheetCell()
close a cell
Definition: STOFFSpreadsheetListener.cxx:1533
STOFFNote
a note
Definition: libstaroffice_internal.hxx:389
STOFFSpreadsheetListener::insertComment
void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="") final
adds comment
Definition: STOFFSpreadsheetListener.cxx:1026
STOFFSpreadsheetListener::defineStyle
void defineStyle(STOFFFont const &style) final
defines a font styles
Definition: STOFFSpreadsheetListener.cxx:252
STOFFSpreadsheetListener::openSheetCell
void openSheetCell(STOFFCell const &cell, STOFFCellContent const &content, int numRepeated=1)
open a cell
Definition: STOFFSpreadsheetListener.cxx:1426
STOFFSpreadsheetListener::insertChar
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: STOFFSpreadsheetListener.cxx:301
STOFFSpreadsheetListener::isParagraphOpened
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: STOFFSpreadsheetListener.cxx:423
STOFFSpreadsheetListener::closeTableRow
void closeTableRow() final
closes this row
Definition: STOFFSpreadsheetListener.cxx:1636
STOFFSpreadsheetListener::isPageSpanOpened
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: STOFFSpreadsheetListener.cxx:562
STOFFParagraph
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
STOFFSpreadsheetListener::setParagraph
void setParagraph(STOFFParagraph const &paragraph) final
sets the paragraph
Definition: STOFFSpreadsheetListener.cxx:428
STOFFSpreadsheetListener::_openPageSpan
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: STOFFSpreadsheetListener.cxx:575
STOFFSpreadsheetListener::m_documentInterface
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: STOFFSpreadsheetListener.hxx:302
STOFFSpreadsheetListener
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: STOFFSpreadsheetListener.hxx:64
STOFFSpreadsheetListener::canOpenSectionAddBreak
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: STOFFSpreadsheetListener.hxx:236
STOFFSpreadsheetListener::_openSpan
void _openSpan()
Definition: STOFFSpreadsheetListener.cxx:896
STOFFSubDocumentPtr
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:494
STOFFChart
a class used to store a chart associated to a spreadsheet ....
Definition: STOFFChart.hxx:56
STOFFSpreadsheetListener::_openParagraph
void _openParagraph()
Definition: STOFFSpreadsheetListener.cxx:742
STOFFSpreadsheetListener::_popParsingState
void _popParsingState()
resets the previous parsing state
Definition: STOFFSpreadsheetListener.cxx:1729
libstoff::SubDocumentType
SubDocumentType
Definition: libstaroffice_internal.hxx:185
STOFFSpreadsheetListener::closeHeader
bool closeHeader() final
close a header
Definition: STOFFSpreadsheetListener.cxx:666
STOFFSection
a class which stores section properties
Definition: STOFFSection.hxx:45
STOFFSpreadsheetListener::closeSection
bool closeSection() final
close a section
Definition: STOFFSpreadsheetListener.cxx:733
STOFFField
a field
Definition: libstaroffice_internal.hxx:363
STOFFSpreadsheetListener::closeSheetRow
void closeSheetRow()
closes this row
Definition: STOFFSpreadsheetListener.cxx:1416
STOFFSpreadsheetListener::_openListElement
void _openListElement()
open a list level
Definition: STOFFSpreadsheetListener.cxx:791
STOFFSpreadsheetListener::openGroup
bool openGroup(STOFFPosition const &pos) final
open a group (not implemented)
Definition: STOFFSpreadsheetListener.cxx:1154
STOFFGraphicShape
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
libstoff
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:50
STOFFSpreadsheetListener::_getListId
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: STOFFSpreadsheetListener.cxx:826
STOFFEmbeddedObject
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
STOFFSpreadsheetListener::isSubDocumentOpened
bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: STOFFSpreadsheetListener.cxx:1315
STOFFSpreadsheetListener::openTableCell
void openTableCell(STOFFCell const &cell) final
open a cell
Definition: STOFFSpreadsheetListener.cxx:1681
STOFFSpreadsheetListener::getFont
STOFFFont const & getFont() const final
returns the actual font
Definition: STOFFSpreadsheetListener.cxx:418
libstaroffice_internal.hxx
STOFFSpreadsheetListener::_startSubDocument
void _startSubDocument()
Definition: STOFFSpreadsheetListener.cxx:1323
STOFFSpreadsheetListener::openSection
bool openSection(STOFFSection const &section) final
open a section if possible
Definition: STOFFSpreadsheetListener.cxx:727
STOFFSpreadsheetListener::insertChart
void insertChart(STOFFPosition const &pos, STOFFChart &chart, STOFFGraphicStyle const &style=STOFFGraphicStyle())
adds a chart in given position
Definition: STOFFSpreadsheetListener.cxx:1551
STOFFSpreadsheetListener::insertUnicodeString
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: STOFFSpreadsheetListener.cxx:338
STOFFSpreadsheetListener::addEmptyTableCell
void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1, 1)) final
add empty cell
Definition: STOFFSpreadsheetListener.cxx:1662
STOFFSpreadsheetListener::insertEOL
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: STOFFSpreadsheetListener.cxx:350
STOFFSpreadsheetListener::insertHeaderRegion
bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a header
Definition: STOFFSpreadsheetListener.cxx:648
STOFFFont
Class to store font.
Definition: STOFFFont.hxx:43
STOFFSpreadsheetListener::insertShape
void insertShape(STOFFGraphicShape const &shape, STOFFGraphicStyle const &style, STOFFPosition const &pos) final
adds a shape picture in given position
Definition: STOFFSpreadsheetListener.cxx:1095
STOFFSpreadsheetListener::openLink
void openLink(STOFFLink const &link) final
open a link
Definition: STOFFSpreadsheetListener.cxx:462
STOFFSpreadsheetListener::getPageSpan
STOFFPageSpan const & getPageSpan() final
returns the current page span
Definition: STOFFSpreadsheetListener.cxx:567
STOFFSpreadsheetListener::~STOFFSpreadsheetListener
~STOFFSpreadsheetListener() final
destructor
Definition: STOFFSpreadsheetListener.cxx:248
STOFFSpreadsheetListener::openSheetRow
void openSheetRow(float h, librevenge::RVNGUnit unit, int numRepeated=1)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: STOFFSpreadsheetListener.cxx:1395
STOFFSpreadsheetListener::isGraphicStyleDefined
bool isGraphicStyleDefined(librevenge::RVNGString const &name) const final
check if a graphic style with a display name is already defined
Definition: STOFFSpreadsheetListener.cxx:283
STOFFSpreadsheetListener::isParagraphStyleDefined
bool isParagraphStyleDefined(librevenge::RVNGString const &name) const final
check if a paragraph style with a display name is already defined
Definition: STOFFSpreadsheetListener.cxx:288
STOFFSpreadsheetListener::_closeParagraph
void _closeParagraph()
Definition: STOFFSpreadsheetListener.cxx:760
STOFFSpreadsheetListener::_pushParsingState
std::shared_ptr< STOFFSpreadsheetListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: STOFFSpreadsheetListener.cxx:1718
STOFFSpreadsheetListener::getSection
STOFFSection const & getSection() const final
returns the actual section
Definition: STOFFSpreadsheetListener.cxx:721
STOFFPageSpan
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
STOFFListener::BreakType
BreakType
the different break type
Definition: STOFFListener.hxx:59
STOFFSpreadsheetListener::getType
Type getType() const final
returns the listener type
Definition: STOFFSpreadsheetListener.hxx:73
STOFFSpreadsheetListener::_flushText
void _flushText()
Definition: STOFFSpreadsheetListener.cxx:942
STOFFSpreadsheetListener::_closePageSpan
void _closePageSpan()
does close a page (low level)
Definition: STOFFSpreadsheetListener.cxx:619
STOFFSpreadsheetListener::setFont
void setFont(STOFFFont const &font) final
sets the font
Definition: STOFFSpreadsheetListener.cxx:411
STOFFListManagerPtr
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:488
STOFFListener.hxx
STOFFSpreadsheetListener::addCoveredTableCell
void addCoveredTableCell(STOFFVec2i const &pos) final
add covered cell
Definition: STOFFSpreadsheetListener.cxx:1646
STOFFSpreadsheetListener::_resetParagraphState
void _resetParagraphState(const bool isListElement=false)
Definition: STOFFSpreadsheetListener.cxx:781
STOFFListener
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
STOFFSpreadsheetListener::isDocumentStarted
bool isDocumentStarted() const final
returns true if a document is opened
Definition: STOFFSpreadsheetListener.cxx:511
STOFFGraphicStyle
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
STOFFSpreadsheetListener::getParagraph
STOFFParagraph const & getParagraph() const final
returns the actual paragraph
Definition: STOFFSpreadsheetListener.cxx:439
STOFFSpreadsheetListener::openTable
void openTable(STOFFTable const &table) final
open a table
Definition: STOFFSpreadsheetListener.cxx:1576
STOFFPosition
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47
STOFFSpreadsheetListener::_endSubDocument
void _endSubDocument()
Definition: STOFFSpreadsheetListener.cxx:1329
STOFFSpreadsheetListener::openTableRow
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: STOFFSpreadsheetListener.cxx:1615
STOFFSpreadsheetListener::insertTab
void insertTab() final
adds a tab
Definition: STOFFSpreadsheetListener.cxx:370
STOFFSpreadsheetListener::closeGroup
void closeGroup() final
close a group (not implemented)
Definition: STOFFSpreadsheetListener.cxx:1160