34 #ifndef STOFF_GRAPHIC_LISTENER_H 35 #define STOFF_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 76 void setDocumentLanguage(std::string locale)
final;
78 void setDocumentMetaData(
const librevenge::RVNGPropertyList &list)
final;
80 void startDocument()
final;
82 void endDocument(
bool sendDelayedSubDoc=
true)
final;
86 bool canWriteText()
const final;
88 bool isDocumentStarted()
const final;
97 void closeFrame()
final;
101 void closeGroup()
final;
103 bool openLayer(librevenge::RVNGString
const &name);
113 _closePageSpan(
true);
116 bool isPageSpanOpened()
const final;
124 bool openHeader(librevenge::RVNGPropertyList
const &extras)
final;
126 bool openFooter(librevenge::RVNGPropertyList
const &extras)
final;
128 bool closeHeader()
final;
130 bool closeFooter()
final;
132 bool insertHeaderRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which)
final;
134 bool insertFooterRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which)
final;
136 bool isHeaderFooterOpened()
const final;
140 void insertChar(uint8_t character)
final;
145 void insertUnicode(uint32_t character)
final;
147 void insertUnicodeString(librevenge::RVNGString
const &str)
final;
150 void insertTab()
final;
152 void insertEOL(
bool softBreak=
false)
final;
156 void setFont(
STOFFFont const &font)
final;
162 bool isParagraphOpened()
const final;
170 void defineStyle(
STOFFFont const &style)
final;
172 bool isFontStyleDefined(librevenge::RVNGString
const &name)
const final;
176 bool isGraphicStyleDefined(librevenge::RVNGString
const &name)
const final;
180 bool isParagraphStyleDefined(librevenge::RVNGString
const &name)
const final;
184 void insertField(
STOFFField const &field)
final;
188 void openLink(
STOFFLink const &link)
final;
190 void closeLink()
final;
207 void insertComment(
STOFFSubDocumentPtr &subDocument, librevenge::RVNGString
const &creator=
"", librevenge::RVNGString
const &date=
"")
final;
212 void openTable(
STOFFTable const &table)
final;
216 void closeTable()
final;
218 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false)
final;
220 void closeTableRow()
final;
222 void openTableCell(
STOFFCell const &cell)
final;
224 void closeTableCell()
final;
226 void addCoveredTableCell(
STOFFVec2i const &pos)
final;
252 void insertBreak(
BreakType breakType)
final;
256 void _openPageSpan(
bool sendHeaderFooters=
true);
258 void _closePageSpan(
bool masterPage=
false);
260 void _startSubDocument();
261 void _endSubDocument();
268 void _openParagraph();
269 void _closeParagraph();
270 void _resetParagraphState(
const bool isListElement=
false);
273 void _openListElement();
275 void _closeListElement();
282 int _getListId()
const;
292 std::shared_ptr<STOFFGraphicListenerInternal::State> _pushParsingState();
294 void _popParsingState();
298 std::shared_ptr<STOFFGraphicListenerInternal::GraphicState>
m_ds;
300 std::shared_ptr<STOFFGraphicListenerInternal::State>
m_ps;
302 std::vector<std::shared_ptr<STOFFGraphicListenerInternal::State> >
m_psStack;
std::shared_ptr< STOFFGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: STOFFGraphicListener.hxx:298
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
Type
the listener type
Definition: STOFFListener.hxx:57
librevenge::RVNGPresentationInterface * m_presentationInterface
the presentation interface
Definition: STOFFGraphicListener.hxx:306
bool isSectionOpened() const final
returns true if a section is opened
Definition: STOFFGraphicListener.hxx:238
a link
Definition: libstaroffice_internal.hxx:375
void closeMasterPage()
close a master page
Definition: STOFFGraphicListener.hxx:111
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
Type getType() const final
returns the listener type
Definition: STOFFGraphicListener.hxx:70
a note
Definition: libstaroffice_internal.hxx:389
std::vector< std::shared_ptr< STOFFGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFGraphicListener.hxx:302
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:494
librevenge::RVNGDrawingInterface * m_drawingInterface
the drawing interface
Definition: STOFFGraphicListener.hxx:304
bool closeSection() final
close a section
Definition: STOFFGraphicListener.hxx:247
SubDocumentType
Definition: libstaroffice_internal.hxx:185
a class which stores section properties
Definition: STOFFSection.hxx:45
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:59
std::shared_ptr< STOFFGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFGraphicListener.hxx:300
a field
Definition: libstaroffice_internal.hxx:363
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: STOFFGraphicListener.hxx:233
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:762
Class to store font.
Definition: STOFFFont.hxx:43
Internal and low level namespace to define the states of STOFFGraphicListener.
Definition: STOFFGraphicListener.cxx:63
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
BreakType
the different break type
Definition: STOFFListener.hxx:59
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:488
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
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