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;
201 void insertEquation(
STOFFFrameStyle const &frame, librevenge::RVNGString
const &equation,
210 void insertComment(
STOFFSubDocumentPtr &subDocument, librevenge::RVNGString
const &creator=
"", librevenge::RVNGString
const &date=
"")
final;
215 void openTable(
STOFFTable const &table)
final;
219 void closeTable()
final;
221 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false)
final;
223 void closeTableRow()
final;
225 void openTableCell(
STOFFCell const &cell)
final;
227 void closeTableCell()
final;
229 void addCoveredTableCell(
STOFFVec2i const &pos)
final;
255 void insertBreak(
BreakType breakType)
final;
259 void _openPageSpan(
bool sendHeaderFooters=
true);
261 void _closePageSpan(
bool masterPage=
false);
263 void _startSubDocument();
264 void _endSubDocument();
271 void _openParagraph();
272 void _closeParagraph();
273 void _resetParagraphState(
const bool isListElement=
false);
276 void _openListElement();
278 void _closeListElement();
285 int _getListId()
const;
295 std::shared_ptr<STOFFGraphicListenerInternal::State> _pushParsingState();
297 void _popParsingState();
301 std::shared_ptr<STOFFGraphicListenerInternal::GraphicState>
m_ds;
303 std::shared_ptr<STOFFGraphicListenerInternal::State>
m_ps;
305 std::vector<std::shared_ptr<STOFFGraphicListenerInternal::State> >
m_psStack;
std::shared_ptr< STOFFGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: STOFFGraphicListener.hxx:301
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:45
Type
the listener type
Definition: STOFFListener.hxx:57
librevenge::RVNGPresentationInterface * m_presentationInterface
the presentation interface
Definition: STOFFGraphicListener.hxx:309
bool isSectionOpened() const final
returns true if a section is opened
Definition: STOFFGraphicListener.hxx:241
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:305
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:495
librevenge::RVNGDrawingInterface * m_drawingInterface
the drawing interface
Definition: STOFFGraphicListener.hxx:307
bool closeSection() final
close a section
Definition: STOFFGraphicListener.hxx:250
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:303
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:236
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
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:489
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44