34 #ifndef MWAW_PRESENTATION_LISTENER_H 35 #define MWAW_PRESENTATION_LISTENER_H 39 #include <librevenge/librevenge.h> 154 void insertEOL(
bool softBreak=false) final;
290 std::shared_ptr<MWAWPresentationListenerInternal::GraphicState>
m_ds;
292 std::shared_ptr<MWAWPresentationListenerInternal::State>
m_ps;
294 std::vector<std::shared_ptr<MWAWPresentationListenerInternal::State> >
m_psStack;
std::shared_ptr< MWAWPresentationListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWPresentationListener.hxx:290
void setDocumentMetaData(librevenge::RVNGPropertyList const &metadata) final
sets the documents metadata
Definition: MWAWPresentationListener.cxx:481
void _popParsingState()
resets the previous parsing state
Definition: MWAWPresentationListener.cxx:1703
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
Definition: MWAWDocument.hxx:56
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWPresentationListener.cxx:461
void _openListElement()
open a list level
Definition: MWAWPresentationListener.cxx:684
a link
Definition: libmwaw_internal.hxx:430
void setFont(MWAWFont const &font) final
sets the font
Definition: MWAWPresentationListener.cxx:347
MWAWParserState & m_parserState
the parser state
Definition: MWAWPresentationListener.hxx:296
bool closeSection() final
close a section
Definition: MWAWPresentationListener.hxx:239
MWAWSection const & getSection() const final
returns the actual section
Definition: MWAWPresentationListener.cxx:930
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: MWAWPresentationListener.cxx:1662
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: MWAWPresentationListener.cxx:304
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: MWAWPresentationListener.cxx:314
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: MWAWPresentationListener.cxx:223
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
void closeTable() final
closes this table
Definition: MWAWPresentationListener.cxx:1229
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWPresentationListener & operator=(const MWAWPresentationListener &)=delete
void _openParagraph()
Definition: MWAWPresentationListener.cxx:632
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
std::vector< std::shared_ptr< MWAWPresentationListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWPresentationListener.hxx:294
bool openSection(MWAWSection const §ion) final
open a section if possible
Definition: MWAWPresentationListener.cxx:936
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWPresentationListener.cxx:942
void setParagraph(MWAWParagraph const ¶graph) final
sets the paragraph
Definition: MWAWPresentationListener.cxx:377
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
adds a picture with potential various representationin given position
Definition: MWAWPresentationListener.cxx:1054
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
bool isSectionOpened() const final
returns true if a section is opened
Definition: MWAWPresentationListener.hxx:230
void _endSubDocument()
Definition: MWAWPresentationListener.cxx:1676
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: MWAWPresentationListener.cxx:372
bool insertFooter(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a footer
Definition: MWAWPresentationListener.cxx:903
librevenge::RVNGPresentationInterface * m_documentInterface
the document interface
Definition: MWAWPresentationListener.hxx:298
void insertTab() final
adds a tab
Definition: MWAWPresentationListener.cxx:333
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: MWAWPresentationListener.cxx:507
void openTable(MWAWTable const &table) final
open a table (using the last parameters of openFrame for the position )
Definition: MWAWPresentationListener.cxx:1189
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: MWAWPresentationListener.hxx:225
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: MWAWPresentationListener.cxx:1395
Class to store font.
Definition: MWAWFont.hxx:43
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: MWAWPresentationListener.cxx:877
void _closeSpan()
Definition: MWAWPresentationListener.cxx:827
a class to define the parser state
Definition: MWAWParser.hxx:49
BreakType
the different break type
Definition: MWAWListener.hxx:58
Internal and low level namespace to define the states of MWAWPresentationListener.
Definition: MWAWPresentationListener.cxx:62
void handleSubDocument(MWAWVec2f const &orig, MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument and modify the origin
Definition: MWAWPresentationListener.cxx:1606
void insertField(MWAWField const &field) final
adds a field type
Definition: MWAWPresentationListener.cxx:396
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWPresentationListener.cxx:542
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
void closeGroup() final
close a group
Definition: MWAWPresentationListener.cxx:1384
void closeFrame() final
close a frame
Definition: MWAWPresentationListener.cxx:1350
void _flushText()
Definition: MWAWPresentationListener.cxx:846
void insertUnicode(uint32_t character) final
adds an unicode character.
Definition: MWAWPresentationListener.cxx:291
void insertNote(MWAWNote const ¬e, MWAWSubDocumentPtr &subDocument) final
insert a note
Definition: MWAWPresentationListener.cxx:989
~MWAWPresentationListener() final
destructor
Definition: MWAWPresentationListener.cxx:216
void insertComment(MWAWSubDocumentPtr &subDocument) final
adds comment
Definition: MWAWPresentationListener.cxx:971
void insertGroup(MWAWBox2f const &bdbox, MWAWSubDocumentPtr const &subDocument)
adds a group: ie.
Definition: MWAWPresentationListener.cxx:1149
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1)) final
add empty cell
Definition: MWAWPresentationListener.cxx:1274
void _closeListElement()
close a list level
Definition: MWAWPresentationListener.cxx:710
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWPresentationListener.cxx:1164
void setDocumentLanguage(std::string const &locale) final
sets the documents language
Definition: MWAWPresentationListener.cxx:488
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos, MWAWGraphicStyle const &style)
adds in propList the frame parameters.
Definition: MWAWPresentationListener.cxx:1433
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: MWAWPresentationListener.cxx:1243
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWPresentationListener.cxx:723
a class which stores section properties
Definition: MWAWSection.hxx:45
Type getType() const final
returns the listener type
Definition: MWAWPresentationListener.hxx:68
MWAWFont const & getFont() const final
returns the actual font
Definition: MWAWPresentationListener.cxx:367
void closeTableRow() final
closes this row
Definition: MWAWPresentationListener.cxx:1264
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
void closeMasterPage()
close a master page
Definition: MWAWPresentationListener.hxx:114
Definition: MWAWListener.hxx:56
void closeLayer()
close a layer
Definition: MWAWPresentationListener.cxx:1422
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
bool openMasterPage(MWAWPageSpan &masterPage)
opens a master page
Definition: MWAWPresentationListener.cxx:519
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
void openLink(MWAWLink const &link) final
open a link
Definition: MWAWPresentationListener.cxx:417
void openTableCell(MWAWCell const &cell) final
open a cell
Definition: MWAWPresentationListener.cxx:1293
void startDocument() final
starts a new document
Definition: MWAWPresentationListener.cxx:450
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWPresentationListener.cxx:739
void closeLink() final
close a link
Definition: MWAWPresentationListener.cxx:437
a field
Definition: libmwaw_internal.hxx:399
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWPresentationListener.cxx:1012
bool isDocumentStarted() const final
returns true if a document is opened
Definition: MWAWPresentationListener.cxx:494
bool canWriteText() const final
returns true if a text zone is opened
Definition: MWAWPresentationListener.cxx:499
void _openSpan()
Definition: MWAWPresentationListener.cxx:800
a note
Definition: libmwaw_internal.hxx:445
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
std::shared_ptr< MWAWPresentationListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWPresentationListener.hxx:292
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: MWAWPresentationListener.cxx:1328
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
bool insertHeader(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a header
Definition: MWAWPresentationListener.cxx:882
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:563
std::shared_ptr< MWAWPresentationListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWPresentationListener.cxx:1694
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: MWAWPresentationListener.cxx:593
void closeTableCell() final
close a cell
Definition: MWAWPresentationListener.cxx:1310
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWPresentationListener.cxx:675
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWPresentationListener.cxx:1089
void insertCharacter(unsigned char c) final
insert a character using the font converter to find the utf8 character
Definition: MWAWPresentationListener.cxx:237
MWAWPageSpan const & getPageSpan() final
returns the current page span
Definition: MWAWPresentationListener.cxx:512
void _closeParagraph()
Definition: MWAWPresentationListener.cxx:653
MWAWPresentationListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGPresentationInterface *documentInterface)
constructor
Definition: MWAWPresentationListener.cxx:206
MWAWParagraph const & getParagraph() const final
returns the actual paragraph
Definition: MWAWPresentationListener.cxx:388
void _startSubDocument()
Definition: MWAWPresentationListener.cxx:1670
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:308
void insertSlideNote(MWAWPosition const &pos, MWAWSubDocumentPtr &subDocument)
insert a slide note
Definition: MWAWPresentationListener.cxx:1125
bool openGroup(MWAWPosition const &pos) final
open a group
Definition: MWAWPresentationListener.cxx:1359