34 #ifndef MWAW_PRESENTATION_LISTENER_H
35 #define MWAW_PRESENTATION_LISTENER_H
39 #include <librevenge/librevenge.h>
104 bool openLayer(librevenge::RVNGString
const &name);
210 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
288 shared_ptr<MWAWPresentationListenerInternal::GraphicState>
m_ds;
290 shared_ptr<MWAWPresentationListenerInternal::State>
m_ps;
292 std::vector<shared_ptr<MWAWPresentationListenerInternal::State> >
m_psStack;
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWPresentationListener.cxx:464
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWPresentationListener.cxx:1235
void closeFrame()
close a frame
Definition: MWAWPresentationListener.cxx:1342
bool closeSection()
close a section
Definition: MWAWPresentationListener.hxx:237
bool isParagraphOpened() const
returns true if a paragraph or a list is opened
Definition: MWAWPresentationListener.cxx:339
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWPresentationListener.hxx:223
bool insertFooter(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a footer
Definition: MWAWPresentationListener.cxx:896
void _popParsingState()
resets the previous parsing state
Definition: MWAWPresentationListener.cxx:1686
void setDocumentLanguage(std::string locale)
sets the documents language
Definition: MWAWPresentationListener.cxx:484
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
void _openListElement()
open a list level
Definition: MWAWPresentationListener.cxx:680
a link
Definition: libmwaw_internal.hxx:380
MWAWParserState & m_parserState
the parser state
Definition: MWAWPresentationListener.hxx:294
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const
returns try if a subdocument is open
Definition: MWAWPresentationListener.cxx:1645
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:173
void _openParagraph()
Definition: MWAWPresentationListener.cxx:628
bool insertHeader(MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList const &extras)
insert a header
Definition: MWAWPresentationListener.cxx:875
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:717
bool isHeaderFooterOpened() const
returns true if the header/footer is open
Definition: MWAWPresentationListener.cxx:870
void closeGroup()
close a group
Definition: MWAWPresentationListener.cxx:1376
shared_ptr< MWAWPresentationListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWPresentationListener.hxx:290
bool isDocumentStarted() const
returns true if a document is opened
Definition: MWAWPresentationListener.cxx:490
MWAWFont const & getFont() const
returns the actual font
Definition: MWAWPresentationListener.cxx:334
virtual ~MWAWPresentationListener()
destructor
Definition: MWAWPresentationListener.cxx:183
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
void insertTab()
adds a tab
Definition: MWAWPresentationListener.cxx:300
void _endSubDocument()
Definition: MWAWPresentationListener.cxx:1659
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:453
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1))
add empty cell
Definition: MWAWPresentationListener.cxx:1266
shared_ptr< MWAWPresentationListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWPresentationListener.cxx:1677
void openTableCell(MWAWCell const &cell)
open a cell
Definition: MWAWPresentationListener.cxx:1285
librevenge::RVNGPresentationInterface * m_documentInterface
the document interface
Definition: MWAWPresentationListener.hxx:296
shared_ptr< MWAWPresentationListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWPresentationListener.hxx:288
void closeTableCell()
close a cell
Definition: MWAWPresentationListener.cxx:1302
MWAWPageSpan const & getPageSpan()
returns the current page span
Definition: MWAWPresentationListener.cxx:508
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: MWAWPresentationListener.cxx:1387
void setParagraph(MWAWParagraph const ¶graph)
sets the paragraph
Definition: MWAWPresentationListener.cxx:344
void insertGroup(MWAWBox2f const &bdbox, MWAWSubDocumentPtr subDocument)
adds a group: ie.
Definition: MWAWPresentationListener.cxx:1141
Class to store font.
Definition: MWAWFont.hxx:44
Type getType() const
returns the listener type
Definition: MWAWPresentationListener.hxx:68
void _closeSpan()
Definition: MWAWPresentationListener.cxx:820
a class to define the parser state
Definition: MWAWParser.hxx:49
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: MWAWPresentationListener.cxx:1320
std::vector< shared_ptr< MWAWPresentationListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWPresentationListener.hxx:292
BreakType
the different break type
Definition: MWAWListener.hxx:58
void insertEOL(bool softBreak=false)
adds an end of line ( by default an hard one)
Definition: MWAWPresentationListener.cxx:281
MWAWPresentationListener & operator=(const MWAWPresentationListener &)
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWPresentationListener.cxx:719
bool openSection(MWAWSection const §ion)
open a section if possible
Definition: MWAWPresentationListener.cxx:930
Internal and low level namespace to define the states of MWAWPresentationListener.
Definition: MWAWPresentationListener.cxx:62
void insertUnicode(uint32_t character)
adds an unicode character.
Definition: MWAWPresentationListener.cxx:258
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWPresentationListener.cxx:538
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:721
void _flushText()
Definition: MWAWPresentationListener.cxx:839
void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument
Definition: MWAWPresentationListener.hxx:89
void openLink(MWAWLink const &link)
open a link
Definition: MWAWPresentationListener.cxx:420
bool openGroup(MWAWPosition const &pos)
open a group
Definition: MWAWPresentationListener.cxx:1351
void _closeListElement()
close a list level
Definition: MWAWPresentationListener.cxx:706
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWPresentationListener.cxx:1156
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos, MWAWGraphicStyle const &style)
adds in propList the frame parameters.
Definition: MWAWPresentationListener.cxx:1425
void insertComment(MWAWSubDocumentPtr &subDocument)
adds comment
Definition: MWAWPresentationListener.cxx:963
void setFont(MWAWFont const &font)
sets the font
Definition: MWAWPresentationListener.cxx:314
void handleSubDocument(MWAWVec2f const &orig, MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument and modify the origin
Definition: MWAWPresentationListener.cxx:1590
void insertBreak(BreakType breakType)
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWPresentationListener.cxx:936
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWPresentationListener.cxx:1081
void startDocument()
starts a new document
Definition: MWAWPresentationListener.cxx:453
void closeMasterPage()
close a master page
Definition: MWAWPresentationListener.hxx:112
Definition: MWAWListener.hxx:56
void closeLayer()
close a layer
Definition: MWAWPresentationListener.cxx:1414
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
bool openMasterPage(MWAWPageSpan &masterPage)
opens a master page
Definition: MWAWPresentationListener.cxx:515
bool canWriteText() const
returns true if a text zone is opened
Definition: MWAWPresentationListener.cxx:495
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWPresentationListener.hxx:228
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
void closeLink()
close a link
Definition: MWAWPresentationListener.cxx:440
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWPresentationListener.cxx:736
void insertNote(MWAWNote const ¬e, MWAWSubDocumentPtr &subDocument)
insert a note
Definition: MWAWPresentationListener.cxx:981
void openTable(MWAWTable const &table)
open a table (using the last parameters of openFrame for the position )
Definition: MWAWPresentationListener.cxx:1181
a field
Definition: libmwaw_internal.hxx:361
void insertPicture(MWAWPosition const &pos, const librevenge::RVNGBinaryData &binaryData, std::string type="image/pict", MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a picture in given position
Definition: MWAWPresentationListener.cxx:1045
void insertUnicodeString(librevenge::RVNGString const &str)
adds a unicode string
Definition: MWAWPresentationListener.cxx:271
void closeTable()
closes this table
Definition: MWAWPresentationListener.cxx:1221
void _openSpan()
Definition: MWAWPresentationListener.cxx:793
a note
Definition: libmwaw_internal.hxx:394
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
void insertCharacter(unsigned char c)
insert a character using the font converter to find the utf8 character
Definition: MWAWPresentationListener.cxx:204
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: MWAWPresentationListener.cxx:589
void insertChar(uint8_t character)
adds a basic character, ..
Definition: MWAWPresentationListener.cxx:190
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWPresentationListener.cxx:671
void closeTableRow()
closes this row
Definition: MWAWPresentationListener.cxx:1256
MWAWSection const & getSection() const
returns the actual section
Definition: MWAWPresentationListener.cxx:923
MWAWParagraph const & getParagraph() const
returns the actual paragraph
Definition: MWAWPresentationListener.cxx:355
bool isPageSpanOpened() const
returns true if a page is opened
Definition: MWAWPresentationListener.cxx:503
void insertField(MWAWField const &field)
adds a field type
Definition: MWAWPresentationListener.cxx:363
void _closeParagraph()
Definition: MWAWPresentationListener.cxx:649
MWAWPresentationListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGPresentationInterface *documentInterface)
constructor
Definition: MWAWPresentationListener.cxx:177
void _startSubDocument()
Definition: MWAWPresentationListener.cxx:1653
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:204
void insertSlideNote(MWAWPosition const &pos, MWAWSubDocumentPtr &subDocument)
insert a slide note
Definition: MWAWPresentationListener.cxx:1117