40 #ifndef STOFF_SPREADSHEET_LISTENER_H 41 #define STOFF_SPREADSHEET_LISTENER_H 45 #include <librevenge/librevenge.h> 79 void setDocumentLanguage(std::string locale);
81 void setDocumentMetaData(
const librevenge::RVNGPropertyList &list);
86 void endDocument(
bool sendDelayedSubDoc=
true);
88 bool isDocumentStarted()
const;
104 bool canWriteText()
const;
108 bool isPageSpanOpened()
const;
116 bool openHeader(librevenge::RVNGPropertyList
const &extras);
118 bool openFooter(librevenge::RVNGPropertyList
const &extras);
124 bool insertHeaderRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
126 bool insertFooterRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
128 bool isHeaderFooterOpened()
const;
132 void openSheet(std::vector<float>
const &colWidth, librevenge::RVNGUnit unit,
133 std::vector<int>
const &repeatColWidthNumber=std::vector<int>(), librevenge::RVNGString
const &name=
"");
137 void openSheetRow(
float h, librevenge::RVNGUnit unit,
int numRepeated=1);
139 void closeSheetRow();
143 void closeSheetCell();
152 void insertChar(uint8_t character);
155 void insertUnicode(uint32_t character);
157 void insertUnicodeString(librevenge::RVNGString
const &str);
162 void insertEOL(
bool softBreak=
false);
172 bool isParagraphOpened()
const;
182 bool isGraphicStyleDefined(librevenge::RVNGString
const &name)
const;
198 void insertComment(
STOFFSubDocumentPtr &subDocument, librevenge::RVNGString
const &creator=
"", librevenge::RVNGString
const &date=
"");
216 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
218 void closeTableRow();
220 void openTableCell(
STOFFCell const &cell);
222 void closeTableCell();
248 void _openPageSpan(
bool sendHeaderFooters=
true);
250 void _closePageSpan();
252 void _startSubDocument();
253 void _endSubDocument();
255 void _handleFrameParameters(librevenge::RVNGPropertyList &propList,
STOFFPosition const &pos);
257 void _openParagraph();
258 void _closeParagraph();
259 void _resetParagraphState(
const bool isListElement=
false);
262 void _openListElement();
264 void _closeListElement();
271 int _getListId()
const;
277 void _flushDeferredTabs();
282 shared_ptr<STOFFSpreadsheetListenerInternal::State> _pushParsingState();
284 void _popParsingState();
288 shared_ptr<STOFFSpreadsheetListenerInternal::DocumentState>
m_ds;
290 shared_ptr<STOFFSpreadsheetListenerInternal::State>
m_ps;
292 std::vector<shared_ptr<STOFFSpreadsheetListenerInternal::State> >
m_psStack;
shared_ptr< STOFFSpreadsheetListenerInternal::DocumentState > m_ds
the main parse state
Definition: STOFFSpreadsheetListener.hxx:288
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: STOFFSpreadsheetListener.hxx:228
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
Type
the listener type
Definition: STOFFListener.hxx:56
small class use to define a sheet cell content
Definition: STOFFCell.hxx:226
a link
Definition: libstaroffice_internal.hxx:376
bool isSectionOpened() const
returns true if a section is opened
Definition: STOFFSpreadsheetListener.hxx:233
Internal and low level namespace to define the states of STOFFSpreadsheetListener.
Definition: STOFFSpreadsheetListener.cxx:73
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
a class to define the parser state
Definition: STOFFParser.hxx:49
a note
Definition: libstaroffice_internal.hxx:390
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
std::vector< shared_ptr< STOFFSpreadsheetListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFSpreadsheetListener.hxx:292
librevenge::RVNGSpreadsheetInterface * m_documentInterface
the document interface
Definition: STOFFSpreadsheetListener.hxx:296
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: STOFFSpreadsheetListener.hxx:64
a class used to store a chart associated to a spreadsheet ....
Definition: STOFFChart.hxx:56
SubDocumentType
Definition: libstaroffice_internal.hxx:175
shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:492
a class which stores section properties
Definition: STOFFSection.hxx:45
a field
Definition: libstaroffice_internal.hxx:353
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:409
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:754
Class to store font.
Definition: STOFFFont.hxx:43
shared_ptr< STOFFSpreadsheetListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFSpreadsheetListener.hxx:290
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:74
BreakType
the different break type
Definition: STOFFListener.hxx:58
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:49
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47
Type getType() const
returns the listener type
Definition: STOFFSpreadsheetListener.hxx:73
STOFFParserState & m_parserState
the parser state
Definition: STOFFSpreadsheetListener.hxx:294