40 #ifndef MWAW_SPREADSHEET_LISTENER_H
41 #define MWAW_SPREADSHEET_LISTENER_H
45 #include <librevenge/librevenge.h>
58 namespace MWAWSpreadsheetListenerInternal
130 void openSheet(std::vector<float>
const &colWidth, librevenge::RVNGUnit unit,
131 std::vector<int>
const &repeatColWidthNumber=std::vector<int>(), std::string
const &name=
"");
135 void openSheetRow(
float h, librevenge::RVNGUnit unit,
int numRepeated=1);
221 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
293 shared_ptr<MWAWSpreadsheetListenerInternal::DocumentState>
m_ds;
295 shared_ptr<MWAWSpreadsheetListenerInternal::State>
m_ps;
297 std::vector<shared_ptr<MWAWSpreadsheetListenerInternal::State> >
m_psStack;
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWSpreadsheetListener.cxx:707
void _openListElement()
open a list level
Definition: MWAWSpreadsheetListener.cxx:717
void closeFrame()
tries to close a frame
Definition: MWAWSpreadsheetListener.cxx:1203
void _flushText()
Definition: MWAWSpreadsheetListener.cxx:878
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWSpreadsheetListener.cxx:553
void insertBreak(BreakType breakType)
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWSpreadsheetListener.cxx:376
void _startSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1521
void closeSheetRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1615
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWSpreadsheetListener.hxx:238
void insertEOL(bool softBreak=false)
adds an end of line ( by default an hard one)
Definition: MWAWSpreadsheetListener.cxx:337
void _popParsingState()
resets the previous parsing state
Definition: MWAWSpreadsheetListener.cxx:1932
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
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:1834
void openLink(MWAWLink const &link)
open a link
Definition: MWAWSpreadsheetListener.cxx:449
void _closeSpan()
Definition: MWAWSpreadsheetListener.cxx:844
a link
Definition: libmwaw_internal.hxx:386
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: MWAWSpreadsheetListener.hxx:301
void insertTab()
adds a tab
Definition: MWAWSpreadsheetListener.cxx:360
void closeLink()
close a link
Definition: MWAWSpreadsheetListener.cxx:469
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWSpreadsheetListener.hxx:233
void insertCharacter(unsigned char c)
insert a character using the font converter to find the utf8 character
Definition: MWAWSpreadsheetListener.cxx:256
bool isParagraphOpened() const
returns true if a paragraph or a list is opened
Definition: MWAWSpreadsheetListener.cxx:406
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:172
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:774
void closeSheet()
closes this sheet
Definition: MWAWSpreadsheetListener.cxx:1581
bool openGroup(MWAWPosition const &pos)
open a group (not implemented)
Definition: MWAWSpreadsheetListener.cxx:1123
Type
the listener type
Definition: MWAWListener.hxx:56
shared_ptr< MWAWSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWSpreadsheetListener.hxx:295
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
shared_ptr< MWAWSpreadsheetListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWSpreadsheetListener.cxx:1921
void insertField(MWAWField const &field)
adds a field type
Definition: MWAWSpreadsheetListener.cxx:426
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:510
MWAWFont const & getFont() const
returns the actual font
Definition: MWAWSpreadsheetListener.cxx:401
small class use to define a sheet cell content
Definition: MWAWCell.hxx:357
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:1543
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos)
Definition: MWAWSpreadsheetListener.cxx:1214
Class to store font.
Definition: MWAWFont.hxx:43
a class to define the parser state
Definition: MWAWParser.hxx:49
void insertUnicodeString(librevenge::RVNGString const &str)
adds a unicode string
Definition: MWAWSpreadsheetListener.cxx:325
BreakType
the different break type
Definition: MWAWListener.hxx:58
bool isDocumentStarted() const
returns true if a document is opened
Definition: MWAWSpreadsheetListener.cxx:489
void endDocument(bool sendDelayedSubDoc=true)
ends the document
Definition: MWAWSpreadsheetListener.cxx:507
void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a picture with potential various representationin given position
Definition: MWAWSpreadsheetListener.cxx:1095
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
void closeTableRow()
closes this row
Definition: MWAWSpreadsheetListener.cxx:1855
void insertUnicode(uint32_t character)
adds an unicode character.
Definition: MWAWSpreadsheetListener.cxx:310
void setFont(MWAWFont const &font)
sets the font
Definition: MWAWSpreadsheetListener.cxx:385
MWAWPageSpan const & getPageSpan()
returns the current page span
Definition: MWAWSpreadsheetListener.cxx:545
void insertComment(MWAWSubDocumentPtr &subDocument)
adds comment
Definition: MWAWSpreadsheetListener.cxx:962
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1))
add empty cell
Definition: MWAWSpreadsheetListener.cxx:1865
void _openParagraph()
Definition: MWAWSpreadsheetListener.cxx:667
void startDocument()
starts the document
Definition: MWAWSpreadsheetListener.cxx:494
void insertChart(MWAWPosition const &pos, MWAWChart &chart, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a chart in given position
Definition: MWAWSpreadsheetListener.cxx:1771
void closeTable()
closes this table
Definition: MWAWSpreadsheetListener.cxx:1820
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWSpreadsheetListener.cxx:1741
void _closeParagraph()
Definition: MWAWSpreadsheetListener.cxx:686
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWSpreadsheetListener.cxx:769
small class use to define a embedded object
Definition: libmwaw_internal.hxx:419
void _openSpan()
Definition: MWAWSpreadsheetListener.cxx:823
MWAWSpreadsheetListener & operator=(const MWAWSpreadsheetListener &)
operator= (unimplemented)
bool openSection(MWAWSection const §ion)
open a section if possible
Definition: MWAWSpreadsheetListener.cxx:652
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
tries to open a frame
Definition: MWAWSpreadsheetListener.cxx:1133
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWSpreadsheetListener.cxx:752
void insertNote(MWAWNote const ¬e, MWAWSubDocumentPtr &subDocument)
insert a note
Definition: MWAWSpreadsheetListener.cxx:909
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &frameStyle=MWAWGraphicStyle::emptyStyle())
adds a textbox in given position
Definition: MWAWSpreadsheetListener.cxx:995
void setParagraph(MWAWParagraph const ¶graph)
sets the paragraph
Definition: MWAWSpreadsheetListener.cxx:411
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:496
void closeTableCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1901
Definition: MWAWListener.hxx:56
std::vector< shared_ptr< MWAWSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWSpreadsheetListener.hxx:297
void openTable(MWAWTable const &table)
open a table
Definition: MWAWSpreadsheetListener.cxx:1796
void closeSheetCell()
close a cell
Definition: MWAWSpreadsheetListener.cxx:1727
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
virtual ~MWAWSpreadsheetListener()
destructor
Definition: MWAWSpreadsheetListener.cxx:229
shared_ptr< MWAWSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: MWAWSpreadsheetListener.hxx:293
bool canWriteText() const
returns true if we can add text data
Definition: MWAWSpreadsheetListener.cxx:236
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
MWAWParagraph const & getParagraph() const
returns the actual paragraph
Definition: MWAWSpreadsheetListener.cxx:418
a field
Definition: libmwaw_internal.hxx:363
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const
returns try if a subdocument is open
Definition: MWAWSpreadsheetListener.cxx:1513
bool insertHeader(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a header
Definition: MWAWSpreadsheetListener.cxx:616
MWAWSpreadsheetListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGSpreadsheetInterface *documentInterface)
constructor
Definition: MWAWSpreadsheetListener.cxx:211
void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument
Definition: MWAWSpreadsheetListener.cxx:1450
void openSheetCell(MWAWCell const &cell, MWAWCellContent const &content, int numRepeated=1)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1625
a note
Definition: libmwaw_internal.hxx:400
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
void _flushDeferredTabs()
Definition: MWAWSpreadsheetListener.cxx:858
void _endSubDocument()
Definition: MWAWSpreadsheetListener.cxx:1527
void _closeListElement()
close a list level
Definition: MWAWSpreadsheetListener.cxx:739
void setDocumentLanguage(std::string locale)
sets the documents language
Definition: MWAWSpreadsheetListener.cxx:483
void insertChar(uint8_t character)
adds a basic character, ..
Definition: MWAWSpreadsheetListener.cxx:241
MWAWParserState & m_parserState
the parser state
Definition: MWAWSpreadsheetListener.hxx:299
void _closePageSpan()
does close a page (low level)
Definition: MWAWSpreadsheetListener.cxx:599
bool closeSection()
close a section
Definition: MWAWSpreadsheetListener.cxx:658
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style)
adds a shape picture in given position
Definition: MWAWSpreadsheetListener.cxx:1014
a class used to store a chart associated to a spreadsheet ....
Definition: MWAWChart.hxx:57
bool isPageSpanOpened() const
returns true if a page is opened
Definition: MWAWSpreadsheetListener.cxx:540
Type getType() const
returns the listener type
Definition: MWAWSpreadsheetListener.hxx:78
MWAWSection const & getSection() const
returns the actual section
Definition: MWAWSpreadsheetListener.cxx:645
bool isHeaderFooterOpened() const
returns true if the header/footer is open
Definition: MWAWSpreadsheetListener.cxx:611
bool insertFooter(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a footer
Definition: MWAWSpreadsheetListener.cxx:629
void openTableCell(MWAWCell const &cell)
open a cell
Definition: MWAWSpreadsheetListener.cxx:1884
void closeGroup()
close a group (not implemented)
Definition: MWAWSpreadsheetListener.cxx:1129
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:269
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:1594