Go to the documentation of this file.
34 #ifndef STOFF_LISTENER_H
35 #define STOFF_LISTENER_H
39 #include <librevenge/librevenge.h>
81 virtual void endDocument(
bool sendDelayedSubDoc=
true) = 0;
93 virtual bool openHeader(librevenge::RVNGPropertyList
const &extras) = 0;
95 virtual bool openFooter(librevenge::RVNGPropertyList
const &extras) = 0;
118 for (
unsigned int i : list) {
130 virtual void insertEOL(
bool softBreak=
false)=0;
176 virtual void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false) = 0;
225 static bool first=
true;
227 STOFF_DEBUG_MSG((
"STOFFListener::insertTextBoxInShape: umimplemented, revert to basic insertTextBox\n"));
virtual bool closeFooter()=0
close a footer
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
a field
Definition: libstaroffice_internal.hxx:363
virtual void closeTableCell()=0
close a cell
virtual void openTable(STOFFTable const &table)=0
open a table
virtual bool isSectionOpened() const =0
returns true if a section is opened
virtual void closeLink()=0
close a link
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
virtual bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which)=0
insert a header
virtual void insertEOL(bool softBreak=false)=0
adds an end of line ( by default an hard one)
virtual void closeTableRow()=0
closes this row
STOFFListManagerPtr m_listManager
the list manager
Definition: STOFFListener.hxx:250
virtual void startDocument()=0
starts the document
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
Type
the listener type
Definition: STOFFListener.hxx:57
BreakType
the different break type
Definition: STOFFListener.hxx:59
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:45
Definition: STOFFListener.hxx:57
virtual void setDocumentMetaData(const librevenge::RVNGPropertyList &list)=0
sets the document meta data
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
virtual bool isHeaderFooterOpened() const =0
returns true if the header/footer is open
virtual void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false)=0
open a row with given height ( if h < 0.0, set min-row-height = -h )
virtual const STOFFParagraph & getParagraph() const =0
returns the actual paragraph
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
virtual void closeGroup()=0
low level: tries to close the last opened group
virtual void insertTextBox(STOFFFrameStyle const &frame, STOFFSubDocumentPtr subDocument, STOFFGraphicStyle const &frameStyle=STOFFGraphicStyle())=0
adds a textbox in given position
virtual void setDocumentLanguage(std::string locale)=0
sets the documents language
a note
Definition: libstaroffice_internal.hxx:389
virtual void insertPicture(STOFFFrameStyle const &frame, STOFFEmbeddedObject const &picture, STOFFGraphicStyle const &style=STOFFGraphicStyle())=0
adds a picture with various representationin given position.
virtual void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="")=0
adds comment
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
virtual bool openSection(STOFFSection const §ion)=0
open a section if possible
virtual ~STOFFListener()
destructor
Definition: STOFFListener.cxx:48
virtual const STOFFFont & getFont() const =0
returns the actual font
virtual void insertChar(uint8_t character)=0
adds a basic character, ..
STOFFListener(STOFFListManagerPtr &listManager)
constructor
Definition: STOFFListener.cxx:41
virtual void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1, 1))=0
add empty cell
virtual bool isParagraphOpened() const =0
returns true if a paragraph or a list is opened
Definition: STOFFListener.hxx:59
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:495
virtual bool openGroup(STOFFFrameStyle const &frame)=0
low level: tries to open a group
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: STOFFList.hxx:205
virtual void closeTable()=0
closes this table
SubDocumentType
Definition: libstaroffice_internal.hxx:185
virtual bool closeHeader()=0
close a header
virtual bool openFooter(librevenge::RVNGPropertyList const &extras)=0
open a footer (interaction with STOFFPageSpan which fills the parameters for openFooter)
virtual void insertBreak(BreakType breakType)=0
inserts a break type: ColumBreak, PageBreak, ..
virtual bool isGraphicStyleDefined(librevenge::RVNGString const &name) const =0
check if a graphic style with a display name is already defined
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
STOFFListManagerPtr getListManager() const
return the list manager
Definition: STOFFListener.hxx:67
virtual bool isFontStyleDefined(librevenge::RVNGString const &name) const =0
check if a font style with a display name is already defined
virtual void insertShape(STOFFFrameStyle const &frame, STOFFGraphicShape const &shape, STOFFGraphicStyle const &style)=0
adds a shape picture in given position
virtual void openLink(STOFFLink const &link)=0
open a link
virtual void setParagraph(STOFFParagraph const ¶graph)=0
sets the paragraph
void insertUnicodeList(std::vector< uint32_t > const &list)
try to insert a list of unicode character
Definition: STOFFListener.hxx:114
virtual bool openFrame(STOFFFrameStyle const &frame, STOFFGraphicStyle const &style=STOFFGraphicStyle())=0
low level: tries to open a frame
virtual bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const =0
returns true if a subdocument is open
virtual bool closeSection()=0
close a section
Class to store font.
Definition: STOFFFont.hxx:43
Definition: STOFFListener.hxx:57
virtual bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which)=0
insert a footer
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
virtual const STOFFPageSpan & getPageSpan()=0
returns the current page span
virtual bool canWriteText() const =0
returns true if we can add text data
virtual bool isDocumentStarted() const =0
returns true if a document is opened
virtual void closeFrame()=0
low level: tries to close the last opened frame
virtual bool isParagraphStyleDefined(librevenge::RVNGString const &name) const =0
check if a paragraph style with a display name is already defined
virtual void addCoveredTableCell(STOFFVec2i const &pos)=0
add covered cell
a class which stores section properties
Definition: STOFFSection.hxx:45
virtual void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType)=0
low level: function called to add a subdocument
virtual void endDocument(bool sendDelayedSubDoc=true)=0
ends the document
virtual void openTableCell(STOFFCell const &cell)=0
open a cell
virtual Type getType() const =0
returns the listener type
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:489
Definition: STOFFListener.hxx:59
virtual void insertUnicodeString(librevenge::RVNGString const &str)=0
adds a unicode string
virtual void insertTab()=0
adds a tab
virtual const STOFFSection & getSection() const =0
returns the actual section
Definition: STOFFListener.hxx:57
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
Definition: STOFFListener.hxx:59
virtual bool isPageSpanOpened() const =0
returns true if a page is opened
virtual bool openHeader(librevenge::RVNGPropertyList const &extras)=0
open a header (interaction with STOFFPageSpan which fills the parameters for openHeader)
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
virtual void insertField(STOFFField const &field)=0
adds a field type
a link
Definition: libstaroffice_internal.hxx:375
virtual void defineStyle(STOFFFont const &style)=0
defines a font styles
virtual bool canOpenSectionAddBreak() const =0
returns true if we can add open a section, add page break, ...
virtual void insertEquation(STOFFFrameStyle const &frame, librevenge::RVNGString const &equation, STOFFGraphicStyle const &style=STOFFGraphicStyle())=0
adds a equation given a position
Definition: STOFFListener.hxx:57
virtual void insertNote(STOFFNote const ¬e, STOFFSubDocumentPtr &subDocument)=0
insert a note
virtual void insertUnicode(uint32_t character)=0
adds an unicode character.
virtual void setFont(STOFFFont const &font)=0
sets the font
Generated on Mon Jan 20 2020 23:02:18 for libstaroffice by
doxygen 1.8.16