34 #ifndef STOFF_GRAPHIC_LISTENER_H
35 #define STOFF_GRAPHIC_LISTENER_H
39 #include <librevenge/librevenge.h>
82 void endDocument(
bool sendDelayedSubDoc=true) final;
152 void insertEOL(
bool softBreak=false) final;
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;
a structure used to define a cell and its format
Definition: STOFFCell.hxx:54
Class to store font.
Definition: STOFFFont.hxx:44
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:46
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:60
void defineStyle(STOFFFont const &style) final
defines a font styles
Definition: STOFFGraphicListener.cxx:242
void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType) final
function called to add a subdocument and modify the origin
Definition: STOFFGraphicListener.cxx:1650
void insertUnicode(uint32_t character) final
insert a character using the font converter to find the utf8 character
Definition: STOFFGraphicListener.cxx:309
void insertEquation(STOFFFrameStyle const &frame, librevenge::RVNGString const &equation, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a equation given a position
Definition: STOFFGraphicListener.cxx:1182
void _changeList()
update the list so that it corresponds to the actual level
Definition: STOFFGraphicListener.cxx:794
STOFFGraphicListener(const STOFFGraphicListener &)
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: STOFFGraphicListener.cxx:1088
Type getType() const final
returns the listener type
Definition: STOFFGraphicListener.hxx:70
std::shared_ptr< STOFFGraphicListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: STOFFGraphicListener.cxx:1736
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level.
Definition: STOFFGraphicListener.cxx:778
bool openHeader(librevenge::RVNGPropertyList const &extras) final
open a header (interaction with STOFFPageSpan which fills the parameters for openHeader)
Definition: STOFFGraphicListener.cxx:965
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, STOFFFrameStyle const &frame, STOFFGraphicStyle const &style)
adds in propList the frame parameters.
Definition: STOFFGraphicListener.cxx:1637
STOFFParagraph const & getParagraph() const final
returns the actual paragraph
Definition: STOFFGraphicListener.cxx:410
void endDocument(bool sendDelayedSubDoc=true) final
ends the actual document
Definition: STOFFGraphicListener.cxx:493
bool isParagraphStyleDefined(librevenge::RVNGString const &name) const final
check if a paragraph style with a display name is already defined
Definition: STOFFGraphicListener.cxx:287
librevenge::RVNGDrawingInterface * m_drawingInterface
the drawing interface
Definition: STOFFGraphicListener.hxx:307
librevenge::RVNGPresentationInterface * m_presentationInterface
the presentation interface
Definition: STOFFGraphicListener.hxx:309
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: STOFFGraphicListener.cxx:629
STOFFPageSpan const & getPageSpan() final
returns the current page span
Definition: STOFFGraphicListener.cxx:547
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: STOFFGraphicListener.cxx:1399
STOFFGraphicListener(STOFFListManagerPtr listManager, std::vector< STOFFPageSpan > const &pageList, librevenge::RVNGDrawingInterface *drawingInterface)
constructor with a drawing interface
Definition: STOFFGraphicListener.cxx:218
void _closeParagraph()
Definition: STOFFGraphicListener.cxx:699
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: STOFFGraphicListener.cxx:338
void startDocument() final
starts a new document
Definition: STOFFGraphicListener.cxx:476
bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a footer
Definition: STOFFGraphicListener.cxx:1048
bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a header
Definition: STOFFGraphicListener.cxx:994
void insertNote(STOFFNote const ¬e, STOFFSubDocumentPtr &subDocument) final
insert a note
Definition: STOFFGraphicListener.cxx:1133
void setParagraph(STOFFParagraph const ¶graph) final
sets the paragraph
Definition: STOFFGraphicListener.cxx:395
bool isDocumentStarted() const final
returns true if a document is opened
Definition: STOFFGraphicListener.cxx:529
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: STOFFGraphicListener.cxx:542
STOFFGraphicListener & operator=(const STOFFGraphicListener &)
void insertTab() final
adds a tab
Definition: STOFFGraphicListener.cxx:357
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: STOFFGraphicListener.cxx:328
void _endSubDocument()
Definition: STOFFGraphicListener.cxx:1718
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: STOFFGraphicListener.hxx:236
bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: STOFFGraphicListener.cxx:1704
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: STOFFGraphicListener.cxx:390
void openTableCell(STOFFCell const &cell) final
open a cell
Definition: STOFFGraphicListener.cxx:1480
bool openGroup(STOFFFrameStyle const &frame) final
open a group
Definition: STOFFGraphicListener.cxx:1552
bool canWriteText() const final
returns true if a text zone is opened
Definition: STOFFGraphicListener.cxx:534
bool closeSection() final
close a section
Definition: STOFFGraphicListener.hxx:250
void _closeSpan()
Definition: STOFFGraphicListener.cxx:898
void _startSubDocument()
Definition: STOFFGraphicListener.cxx:1712
void closeMasterPage()
close a master page
Definition: STOFFGraphicListener.hxx:111
void openTable(STOFFTable const &table) final
open a table (using the last parameters of openFrame for the position )
Definition: STOFFGraphicListener.cxx:1335
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: STOFFGraphicListener.cxx:960
bool openMasterPage(STOFFPageSpan &masterPage)
opens a master page
Definition: STOFFGraphicListener.cxx:554
std::shared_ptr< STOFFGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: STOFFGraphicListener.hxx:301
void insertTextBox(STOFFFrameStyle const &frame, STOFFSubDocumentPtr subDocument, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a textbox in given position
Definition: STOFFGraphicListener.cxx:1302
std::shared_ptr< STOFFGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFGraphicListener.hxx:303
bool closeFooter() final
close a footer
Definition: STOFFGraphicListener.cxx:1058
void insertShape(STOFFFrameStyle const &frame, STOFFGraphicShape const &shape, STOFFGraphicStyle const &style) final
adds a shape picture in given position
Definition: STOFFGraphicListener.cxx:1216
void _closeListElement()
close a list level
Definition: STOFFGraphicListener.cxx:762
bool isSectionOpened() const final
returns true if a section is opened
Definition: STOFFGraphicListener.hxx:241
STOFFFont const & getFont() const final
returns the actual font
Definition: STOFFGraphicListener.cxx:385
void addCoveredTableCell(STOFFVec2i const &pos) final
add covered cell
Definition: STOFFGraphicListener.cxx:1436
void _popParsingState()
resets the previous parsing state
Definition: STOFFGraphicListener.cxx:1744
void setDocumentLanguage(std::string locale) final
sets the documents language
Definition: STOFFGraphicListener.cxx:516
void closeFrame() final
close a frame
Definition: STOFFGraphicListener.cxx:1543
void closeTableCell() final
close a cell
Definition: STOFFGraphicListener.cxx:1500
bool openSection(STOFFSection const §ion) final
open a section if possible
Definition: STOFFGraphicListener.cxx:1082
std::vector< std::shared_ptr< STOFFGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFGraphicListener.hxx:305
void _openListElement()
open a list level
Definition: STOFFGraphicListener.cxx:733
bool closeHeader() final
close a header
Definition: STOFFGraphicListener.cxx:1004
bool isGraphicStyleDefined(librevenge::RVNGString const &name) const final
check if a graphic style with a display name is already defined
Definition: STOFFGraphicListener.cxx:282
void _flushText()
Definition: STOFFGraphicListener.cxx:920
void insertPicture(STOFFFrameStyle const &frame, STOFFEmbeddedObject const &picture, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a picture with potential various representationin given position
Definition: STOFFGraphicListener.cxx:1154
void _openSpan()
Definition: STOFFGraphicListener.cxx:867
void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="") final
adds comment
Definition: STOFFGraphicListener.cxx:1115
void closeTable() final
closes this table
Definition: STOFFGraphicListener.cxx:1382
void closeGroup() final
close a group
Definition: STOFFGraphicListener.cxx:1579
STOFFSection const & getSection() const final
returns the actual section
Definition: STOFFGraphicListener.cxx:1076
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: STOFFGraphicListener.cxx:578
bool openFooter(librevenge::RVNGPropertyList const &extras) final
open a footer (interaction with STOFFPageSpan which fills the parameters for openFooter)
Definition: STOFFGraphicListener.cxx:1019
void _resetParagraphState(const bool isListElement=false)
Definition: STOFFGraphicListener.cxx:724
void setDocumentMetaData(const librevenge::RVNGPropertyList &list) final
sets the document meta data
Definition: STOFFGraphicListener.cxx:522
bool openFrame(STOFFFrameStyle const &frame, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: STOFFGraphicListener.cxx:1521
void _openParagraph()
Definition: STOFFGraphicListener.cxx:676
void closeLink() final
close a link
Definition: STOFFGraphicListener.cxx:459
void openLink(STOFFLink const &link) final
open a link
Definition: STOFFGraphicListener.cxx:434
void setFont(STOFFFont const &font) final
sets the font
Definition: STOFFGraphicListener.cxx:374
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: STOFFGraphicListener.cxx:295
void closeLayer()
close a layer
Definition: STOFFGraphicListener.cxx:1623
bool isFontStyleDefined(librevenge::RVNGString const &name) const final
check if a font style with a display name is already defined
Definition: STOFFGraphicListener.cxx:277
void insertField(STOFFField const &field) final
adds a field type
Definition: STOFFGraphicListener.cxx:418
void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1, 1)) final
add empty cell
Definition: STOFFGraphicListener.cxx:1455
~STOFFGraphicListener() final
destructor
Definition: STOFFGraphicListener.cxx:238
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: STOFFGraphicListener.cxx:1593
void closeTableRow() final
closes this row
Definition: STOFFGraphicListener.cxx:1423
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:46
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:45
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:51
Type
the listener type
Definition: STOFFListener.hxx:57
@ Graphic
Definition: STOFFListener.hxx:57
BreakType
the different break type
Definition: STOFFListener.hxx:59
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:76
class to store the paragraph properties
Definition: STOFFParagraph.hxx:48
a class which stores section properties
Definition: STOFFSection.hxx:46
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:52
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:499
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:493
Internal and low level namespace to define the states of STOFFGraphicListener.
Definition: STOFFGraphicListener.cxx:64
Definition: STOFFDocument.hxx:43
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:51
SubDocumentType
Definition: libstaroffice_internal.hxx:185
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
a field
Definition: libstaroffice_internal.hxx:363
a link
Definition: libstaroffice_internal.hxx:375
a note
Definition: libstaroffice_internal.hxx:389