34 #ifndef MWAW_PRESENTATION_LISTENER_H 35 #define MWAW_PRESENTATION_LISTENER_H 39 #include <librevenge/librevenge.h> 74 void setDocumentMetaData(librevenge::RVNGPropertyList
const &metadata)
final;
76 void setDocumentLanguage(std::string
const &locale)
final;
78 void startDocument()
final;
80 void endDocument(
bool delayed=
true)
final;
84 bool canWriteText()
const final;
86 bool isDocumentStarted()
const final;
93 handleSubDocument(
MWAWVec2f(0,0), subDocument, subDocumentType);
100 void closeFrame()
final;
104 void closeGroup()
final;
106 bool openLayer(librevenge::RVNGString
const &name);
116 _closePageSpan(
true);
119 bool isPageSpanOpened()
const final;
127 bool insertHeader(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
129 bool insertFooter(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
131 bool isHeaderFooterOpened()
const final;
135 void insertChar(uint8_t character)
final;
138 void insertCharacter(
unsigned char c)
final;
144 int insertCharacter(
unsigned char c,
MWAWInputStreamPtr &input,
long endPos=-1)
final;
147 void insertUnicode(uint32_t character)
final;
149 void insertUnicodeString(librevenge::RVNGString
const &str)
final;
152 void insertTab()
final;
154 void insertEOL(
bool softBreak=
false)
final;
158 void setFont(
MWAWFont const &font)
final;
160 MWAWFont const &getFont()
const final;
164 bool isParagraphOpened()
const final;
172 void insertField(
MWAWField const &field)
final;
176 void openLink(
MWAWLink const &link)
final;
178 void closeLink()
final;
206 void openTable(
MWAWTable const &table)
final;
210 void closeTable()
final;
212 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false)
final;
214 void closeTableRow()
final;
216 void openTableCell(
MWAWCell const &cell)
final;
218 void closeTableCell()
final;
237 bool openSection(
MWAWSection const §ion)
final;
244 void insertBreak(
BreakType breakType)
final;
248 void _openPageSpan(
bool sendHeaderFooters=
true);
250 void _closePageSpan(
bool masterPage=
false);
252 void _startSubDocument();
253 void _endSubDocument();
260 void _openParagraph();
261 void _closeParagraph();
262 void _resetParagraphState(
const bool isListElement=
false);
265 void _openListElement();
267 void _closeListElement();
274 int _getListId()
const;
284 std::shared_ptr<MWAWPresentationListenerInternal::State> _pushParsingState();
286 void _popParsingState();
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
bool isSectionOpened() const final
returns true if a section is opened
Definition: MWAWPresentationListener.hxx:230
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
a link
Definition: libmwaw_internal.hxx:430
MWAWParserState & m_parserState
the parser state
Definition: MWAWPresentationListener.hxx:296
bool closeSection() final
close a section
Definition: MWAWPresentationListener.hxx:239
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:188
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:834
std::vector< std::shared_ptr< MWAWPresentationListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWPresentationListener.hxx:294
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
librevenge::RVNGPresentationInterface * m_documentInterface
the document interface
Definition: MWAWPresentationListener.hxx:298
Type getType() const final
returns the listener type
Definition: MWAWPresentationListener.hxx:68
Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:268
Class to store font.
Definition: MWAWFont.hxx:43
a class to define the parser state
Definition: MWAWParser.hxx:49
BreakType
the different break type
Definition: MWAWListener.hxx:58
void handleSubDocument(MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType) final
function called to add a subdocument
Definition: MWAWPresentationListener.hxx:91
Internal and low level namespace to define the states of MWAWPresentationListener.
Definition: MWAWPresentationListener.cxx:62
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:838
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
a class which stores section properties
Definition: MWAWSection.hxx:45
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:547
void closeMasterPage()
close a master page
Definition: MWAWPresentationListener.hxx:114
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
a field
Definition: libmwaw_internal.hxx:399
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
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:561
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: MWAWPresentationListener.hxx:225
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:304