34 #ifndef STOFF_GRAPHIC_LISTENER_H 35 #define STOFF_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 76 void setDocumentLanguage(std::string locale);
78 void setDocumentMetaData(
const librevenge::RVNGPropertyList &list);
82 void endDocument(
bool sendDelayedSubDoc=
true);
86 bool canWriteText()
const;
88 bool isDocumentStarted()
const;
103 bool openLayer(librevenge::RVNGString
const &name);
113 _closePageSpan(
true);
116 bool isPageSpanOpened()
const;
124 bool openHeader(librevenge::RVNGPropertyList
const &extras);
126 bool openFooter(librevenge::RVNGPropertyList
const &extras);
132 bool insertHeaderRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
134 bool insertFooterRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
136 bool isHeaderFooterOpened()
const;
140 void insertChar(uint8_t character);
145 void insertUnicode(uint32_t character);
147 void insertUnicodeString(librevenge::RVNGString
const &str);
152 void insertEOL(
bool softBreak=
false);
162 bool isParagraphOpened()
const;
170 void defineStyle(
STOFFFont const &style);
172 bool isFontStyleDefined(librevenge::RVNGString
const &name)
const;
176 bool isGraphicStyleDefined(librevenge::RVNGString
const &name)
const;
180 bool isParagraphStyleDefined(librevenge::RVNGString
const &name)
const;
207 void insertComment(
STOFFSubDocumentPtr &subDocument, librevenge::RVNGString
const &creator=
"", librevenge::RVNGString
const &date=
"");
218 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
220 void closeTableRow();
222 void openTableCell(
STOFFCell const &cell);
224 void closeTableCell();
226 void addCoveredTableCell(
STOFFVec2i const &pos);
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 shared_ptr<STOFFGraphicListenerInternal::State> _pushParsingState();
294 void _popParsingState();
298 shared_ptr<STOFFGraphicListenerInternal::GraphicState>
m_ds;
300 shared_ptr<STOFFGraphicListenerInternal::State>
m_ps;
302 std::vector<shared_ptr<STOFFGraphicListenerInternal::State> >
m_psStack;
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
bool isSectionOpened() const
returns true if a section is opened
Definition: STOFFGraphicListener.hxx:238
Type
the listener type
Definition: STOFFListener.hxx:57
librevenge::RVNGPresentationInterface * m_presentationInterface
the presentation interface
Definition: STOFFGraphicListener.hxx:306
std::vector< shared_ptr< STOFFGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFGraphicListener.hxx:302
a link
Definition: libstaroffice_internal.hxx:365
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
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: STOFFGraphicListener.hxx:233
a note
Definition: libstaroffice_internal.hxx:379
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
bool closeSection()
close a section
Definition: STOFFGraphicListener.hxx:247
shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:478
librevenge::RVNGDrawingInterface * m_drawingInterface
the drawing interface
Definition: STOFFGraphicListener.hxx:304
SubDocumentType
Definition: libstaroffice_internal.hxx:175
shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:484
a class which stores section properties
Definition: STOFFSection.hxx:45
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:59
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:398
shared_ptr< STOFFGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFGraphicListener.hxx:300
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:748
Class to store font.
Definition: STOFFFont.hxx:43
shared_ptr< STOFFGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: STOFFGraphicListener.hxx:298
Type getType() const
returns the listener type
Definition: STOFFGraphicListener.hxx:70
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
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