40 #ifndef MWAW_SPREADSHEET_LISTENER_H 41 #define MWAW_SPREADSHEET_LISTENER_H 45 #include <librevenge/librevenge.h> 91 void endDocument(
bool sendDelayedSubDoc=true) final;
133 std::vector<
int> const &repeatColWidthNumber=std::vector<
int>(), std::
string const &name="");
172 void insertEOL(
bool softBreak=false) final;
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWSpreadsheetListener.cxx:740
void _openListElement()
open a list level
Definition: MWAWSpreadsheetListener.cxx:750
void closeTableCell() final
close a cell
Definition: MWAWSpreadsheetListener.cxx:1961
void _flushText()
Definition: MWAWSpreadsheetListener.cxx:914
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWSpreadsheetListener.cxx:587
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
tries to open a frame
Definition: MWAWSpreadsheetListener.cxx:1177
void _startSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1579
std::vector< std::shared_ptr< MWAWSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWSpreadsheetListener.hxx:299
void closeSheetRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1673
void closeLink() final
close a link
Definition: MWAWSpreadsheetListener.cxx:496
void closeFrame() final
tries to close a frame
Definition: MWAWSpreadsheetListener.cxx:1249
void _popParsingState()
resets the previous parsing state
Definition: MWAWSpreadsheetListener.cxx:1992
MWAWParagraph const & getParagraph() const final
returns the actual paragraph
Definition: MWAWSpreadsheetListener.cxx:445
void insertUnicode(uint32_t character) final
adds an unicode character.
Definition: MWAWSpreadsheetListener.cxx:337
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
void setParagraph(MWAWParagraph const ¶graph) final
sets the paragraph
Definition: MWAWSpreadsheetListener.cxx:438
Definition: MWAWDocument.hxx:56
void openLink(MWAWLink const &link) final
open a link
Definition: MWAWSpreadsheetListener.cxx:476
void _closeSpan()
Definition: MWAWSpreadsheetListener.cxx:880
void openTable(MWAWTable const &table) final
open a table
Definition: MWAWSpreadsheetListener.cxx:1856
a link
Definition: libmwaw_internal.hxx:430
void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
adds a picture with potential various representationin given position
Definition: MWAWSpreadsheetListener.cxx:1135
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
std::shared_ptr< MWAWSpreadsheetListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWSpreadsheetListener.cxx:1981
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
void handleSubDocument(MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType) final
function called to add a subdocument
Definition: MWAWSpreadsheetListener.cxx:1504
MWAWSection const & getSection() const final
returns the actual section
Definition: MWAWSpreadsheetListener.cxx:679
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: MWAWSpreadsheetListener.cxx:364
void insertComment(MWAWSubDocumentPtr &subDocument) final
adds comment
Definition: MWAWSpreadsheetListener.cxx:998
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: MWAWSpreadsheetListener.cxx:1571
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: MWAWSpreadsheetListener.cxx:352
void closeSheet()
closes this sheet
Definition: MWAWSpreadsheetListener.cxx:1639
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
bool isDocumentStarted() const final
returns true if a document is opened
Definition: MWAWSpreadsheetListener.cxx:523
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
bool insertFooter(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a footer
Definition: MWAWSpreadsheetListener.cxx:663
bool openSection(MWAWSection const §ion) final
open a section if possible
Definition: MWAWSpreadsheetListener.cxx:685
small class use to define a sheet cell content
Definition: MWAWCell.hxx:375
void openSheet(std::vector< float > const &colWidth, librevenge::RVNGUnit unit, std::vector< int > const &repeatColWidthNumber=std::vector< int >(), std::string const &name="")
opens a sheet
Definition: MWAWSpreadsheetListener.cxx:1601
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: MWAWSpreadsheetListener.cxx:433
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWSpreadsheetListener.cxx:1050
bool insertHeader(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a header
Definition: MWAWSpreadsheetListener.cxx:650
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos)
Definition: MWAWSpreadsheetListener.cxx:1260
MWAWFont const & getFont() const final
returns the actual font
Definition: MWAWSpreadsheetListener.cxx:428
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
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &frameStyle=MWAWGraphicStyle::emptyStyle()) final
adds a textbox in given position
Definition: MWAWSpreadsheetListener.cxx:1031
void startDocument() final
starts the document
Definition: MWAWSpreadsheetListener.cxx:528
void insertField(MWAWField const &field) final
adds a field type
Definition: MWAWSpreadsheetListener.cxx:453
void closeGroup() final
close a group (not implemented)
Definition: MWAWSpreadsheetListener.cxx:1173
~MWAWSpreadsheetListener() final
destructor
Definition: MWAWSpreadsheetListener.cxx:256
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: MWAWSpreadsheetListener.cxx:268
void _openParagraph()
Definition: MWAWSpreadsheetListener.cxx:700
void insertChart(MWAWPosition const &pos, MWAWChart &chart, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a chart in given position
Definition: MWAWSpreadsheetListener.cxx:1831
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWSpreadsheetListener.cxx:1801
bool canWriteText() const final
returns true if we can add text data
Definition: MWAWSpreadsheetListener.cxx:263
bool closeSection() final
close a section
Definition: MWAWSpreadsheetListener.cxx:691
Type getType() const final
returns the listener type
Definition: MWAWSpreadsheetListener.hxx:78
void _closeParagraph()
Definition: MWAWSpreadsheetListener.cxx:719
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWSpreadsheetListener.cxx:801
void closeTable() final
closes this table
Definition: MWAWSpreadsheetListener.cxx:1880
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: MWAWSpreadsheetListener.cxx:1894
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
void _openSpan()
Definition: MWAWSpreadsheetListener.cxx:859
void setDocumentLanguage(std::string const &locale) final
sets the documents language
Definition: MWAWSpreadsheetListener.cxx:517
MWAWPageSpan const & getPageSpan() final
returns the current page span
Definition: MWAWSpreadsheetListener.cxx:579
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
Definition: MWAWListener.hxx:56
bool openGroup(MWAWPosition const &pos) final
open a group (not implemented)
Definition: MWAWSpreadsheetListener.cxx:1163
void closeSheetCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1787
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:547
void endDocument(bool sendDelayedSubDoc=true) final
ends the document
Definition: MWAWSpreadsheetListener.cxx:541
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
MWAWSpreadsheetListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface)
constructor
Definition: MWAWSpreadsheetListener.cxx:230
void insertTab() final
adds a tab
Definition: MWAWSpreadsheetListener.cxx:387
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: MWAWSpreadsheetListener.cxx:645
void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content, int numRepeated=1)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1683
a note
Definition: libmwaw_internal.hxx:445
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
void setFont(MWAWFont const &font) final
sets the font
Definition: MWAWSpreadsheetListener.cxx:412
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
void _flushDeferredTabs()
Definition: MWAWSpreadsheetListener.cxx:894
void _endSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1585
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:561
void _closeListElement()
close a list level
Definition: MWAWSpreadsheetListener.cxx:772
void insertCharacter(unsigned char c) final
insert a character using the font converter to find the utf8 character
Definition: MWAWSpreadsheetListener.cxx:283
MWAWParserState & m_parserState
the parser state
Definition: MWAWSpreadsheetListener.hxx:301
void _closePageSpan()
does close a page (low level)
Definition: MWAWSpreadsheetListener.cxx:633
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: MWAWSpreadsheetListener.cxx:574
void closeTableRow() final
closes this row
Definition: MWAWSpreadsheetListener.cxx:1915
void openTableCell(MWAWCell const &cell) final
open a cell
Definition: MWAWSpreadsheetListener.cxx:1944
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:57
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1)) final
add empty cell
Definition: MWAWSpreadsheetListener.cxx:1925
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWSpreadsheetListener.cxx:785
void setDocumentMetaData(librevenge::RVNGPropertyList const &metadata) final
sets the documents metadata
Definition: MWAWSpreadsheetListener.cxx:510
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWSpreadsheetListener.cxx:403
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: MWAWSpreadsheetListener.cxx:1652
void insertNote(MWAWNote const ¬e, MWAWSubDocumentPtr &subDocument) final
insert a note
Definition: MWAWSpreadsheetListener.cxx:945