40 #ifndef MWAW_SPREADSHEET_LISTENER_H 41 #define MWAW_SPREADSHEET_LISTENER_H 45 #include <librevenge/librevenge.h> 84 void setDocumentMetaData(librevenge::RVNGPropertyList
const &metadata)
final;
86 void setDocumentLanguage(std::string
const &locale)
final;
89 void startDocument()
final;
91 void endDocument(
bool sendDelayedSubDoc=
true)
final;
93 bool isDocumentStarted()
const final;
102 void closeFrame()
final;
106 void closeGroup()
final;
109 bool canWriteText()
const final;
113 bool isPageSpanOpened()
const final;
121 bool insertHeader(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
123 bool insertFooter(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
125 bool isHeaderFooterOpened()
const final;
132 void openSheet(std::vector<float>
const &colWidth, librevenge::RVNGUnit unit,
133 std::vector<int>
const &repeatColWidthNumber=std::vector<int>(), std::string
const &name=
"");
137 void openSheetRow(
float h, librevenge::RVNGUnit unit,
int numRepeated=1);
139 void closeSheetRow();
143 void closeSheetCell();
153 void insertChar(uint8_t character)
final;
156 void insertCharacter(
unsigned char c)
final;
162 int insertCharacter(
unsigned char c,
MWAWInputStreamPtr &input,
long endPos=-1)
final;
165 void insertUnicode(uint32_t character)
final;
167 void insertUnicodeString(librevenge::RVNGString
const &str)
final;
170 void insertTab()
final;
172 void insertEOL(
bool softBreak=
false)
final;
176 void setFont(
MWAWFont const &font)
final;
178 MWAWFont const &getFont()
const final;
182 bool isParagraphOpened()
const final;
190 void insertField(
MWAWField const &field)
final;
194 void openLink(
MWAWLink const &link)
final;
196 void closeLink()
final;
219 void openTable(
MWAWTable const &table)
final;
221 void closeTable()
final;
223 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false)
final;
225 void closeTableRow()
final;
227 void openTableCell(
MWAWCell const &cell)
final;
229 void closeTableCell()
final;
247 bool openSection(
MWAWSection const §ion)
final;
249 bool closeSection()
final;
251 void insertBreak(
BreakType breakType)
final;
255 void _openPageSpan(
bool sendHeaderFooters=
true);
257 void _closePageSpan();
259 void _startSubDocument();
260 void _endSubDocument();
262 void _handleFrameParameters(librevenge::RVNGPropertyList &propList,
MWAWPosition const &pos);
264 void _openParagraph();
265 void _closeParagraph();
266 void _resetParagraphState(
const bool isListElement=
false);
269 void _openListElement();
271 void _closeListElement();
278 int _getListId()
const;
284 void _flushDeferredTabs();
289 std::shared_ptr<MWAWSpreadsheetListenerInternal::State> _pushParsingState();
291 void _popParsingState();
295 std::shared_ptr<MWAWSpreadsheetListenerInternal::DocumentState>
m_ds;
297 std::shared_ptr<MWAWSpreadsheetListenerInternal::State>
m_ps;
299 std::vector<std::shared_ptr<MWAWSpreadsheetListenerInternal::State> >
m_psStack;
std::vector< std::shared_ptr< MWAWSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWSpreadsheetListener.hxx:299
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
a link
Definition: libmwaw_internal.hxx:430
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: MWAWSpreadsheetListener.hxx:303
std::shared_ptr< MWAWSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWSpreadsheetListener.hxx:297
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:188
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:836
bool isSectionOpened() const final
returns true if a section is opened
Definition: MWAWSpreadsheetListener.hxx:240
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
small class use to define a sheet cell content
Definition: MWAWCell.hxx:378
Class to store font.
Definition: MWAWFont.hxx:43
a class to define the parser state
Definition: MWAWParser.hxx:49
BreakType
the different break type
Definition: MWAWListener.hxx:58
static Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:270
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
Type getType() const final
returns the listener type
Definition: MWAWSpreadsheetListener.hxx:78
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
a class which stores section properties
Definition: MWAWSection.hxx:45
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: MWAWSpreadsheetListener.hxx:235
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
std::shared_ptr< MWAWSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: MWAWSpreadsheetListener.hxx:295
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
a field
Definition: libmwaw_internal.hxx:399
Internal and low level namespace to define the states of MWAWSpreadsheetListener. ...
Definition: MWAWSpreadsheetListener.cxx:71
a note
Definition: libmwaw_internal.hxx:445
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:563
MWAWParserState & m_parserState
the parser state
Definition: MWAWSpreadsheetListener.hxx:301
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:57
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:308