40 #ifndef MWAW_SPREADSHEET_LISTENER_H 41 #define MWAW_SPREADSHEET_LISTENER_H 45 #include <librevenge/librevenge.h> 84 void setDocumentLanguage(std::string locale);
89 void endDocument(
bool sendDelayedSubDoc=
true);
91 bool isDocumentStarted()
const;
103 bool canWriteText()
const;
107 bool isPageSpanOpened()
const;
115 bool insertHeader(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
117 bool insertFooter(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
119 bool isHeaderFooterOpened()
const;
123 void openSheet(std::vector<float>
const &colWidth, librevenge::RVNGUnit unit, std::string
const &name=
"");
127 void openSheetRow(
float h, librevenge::RVNGUnit unit);
129 void closeSheetRow();
133 void closeSheetCell();
143 void insertChar(uint8_t character);
146 void insertCharacter(
unsigned char c);
155 void insertUnicode(uint32_t character);
157 void insertUnicodeString(librevenge::RVNGString
const &str);
162 void insertEOL(
bool softBreak=
false);
172 bool isParagraphOpened()
const;
180 void insertField(
MWAWField const &field);
184 void openLink(
MWAWLink const &link);
196 void insertPicture(
MWAWPosition const &pos,
const librevenge::RVNGBinaryData &binaryData,
213 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
215 void closeTableRow();
217 void openTableCell(
MWAWCell const &cell);
219 void closeTableCell();
245 void _openPageSpan(
bool sendHeaderFooters=
true);
247 void _closePageSpan();
249 void _startSubDocument();
250 void _endSubDocument();
252 void _handleFrameParameters(librevenge::RVNGPropertyList &propList,
MWAWPosition const &pos);
254 void _openParagraph();
255 void _closeParagraph();
256 void _resetParagraphState(
const bool isListElement=
false);
259 void _openListElement();
261 void _closeListElement();
268 int _getListId()
const;
274 void _flushDeferredTabs();
279 shared_ptr<MWAWSpreadsheetListenerInternal::State> _pushParsingState();
281 void _popParsingState();
285 shared_ptr<MWAWSpreadsheetListenerInternal::DocumentState>
m_ds;
287 shared_ptr<MWAWSpreadsheetListenerInternal::State>
m_ps;
289 std::vector<shared_ptr<MWAWSpreadsheetListenerInternal::State> >
m_psStack;
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWSpreadsheetListener.hxx:230
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
a link
Definition: libmwaw_internal.hxx:380
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: MWAWSpreadsheetListener.hxx:293
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWSpreadsheetListener.hxx:225
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:173
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:717
Type
the listener type
Definition: MWAWListener.hxx:56
shared_ptr< MWAWSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWSpreadsheetListener.hxx:287
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:453
small class use to define a sheet cell content
Definition: MWAWCell.hxx:356
Class to store font.
Definition: MWAWFont.hxx:44
a class to define the parser state
Definition: MWAWParser.hxx:49
BreakType
the different break type
Definition: MWAWListener.hxx:58
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
std::vector< shared_ptr< MWAWSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWSpreadsheetListener.hxx:289
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
shared_ptr< MWAWSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: MWAWSpreadsheetListener.hxx:285
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
a field
Definition: libmwaw_internal.hxx:361
Internal and low level namespace to define the states of MWAWSpreadsheetListener. ...
Definition: MWAWSpreadsheetListener.cxx:71
a note
Definition: libmwaw_internal.hxx:394
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
MWAWParserState & m_parserState
the parser state
Definition: MWAWSpreadsheetListener.hxx:291
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:57
Type getType() const
returns the listener type
Definition: MWAWSpreadsheetListener.hxx:78
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:204