34 #ifndef MWAW_PRESENTATION_LISTENER_H 35 #define MWAW_PRESENTATION_LISTENER_H 39 #include <librevenge/librevenge.h> 74 void setDocumentLanguage(std::string locale);
78 void endDocument(
bool delayed=
true);
82 bool canWriteText()
const;
84 bool isDocumentStarted()
const;
91 handleSubDocument(
MWAWVec2f(0,0), subDocument, subDocumentType);
104 bool openLayer(librevenge::RVNGString
const &name);
114 _closePageSpan(
true);
117 bool isPageSpanOpened()
const;
125 bool insertHeader(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
127 bool insertFooter(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
129 bool isHeaderFooterOpened()
const;
133 void insertChar(uint8_t character);
136 void insertCharacter(
unsigned char c);
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 insertField(
MWAWField const &field);
174 void openLink(
MWAWLink const &link);
210 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
212 void closeTableRow();
214 void openTableCell(
MWAWCell const &cell);
216 void closeTableCell();
246 void _openPageSpan(
bool sendHeaderFooters=
true);
248 void _closePageSpan(
bool masterPage=
false);
250 void _startSubDocument();
251 void _endSubDocument();
258 void _openParagraph();
259 void _closeParagraph();
260 void _resetParagraphState(
const bool isListElement=
false);
263 void _openListElement();
265 void _closeListElement();
272 int _getListId()
const;
282 shared_ptr<MWAWPresentationListenerInternal::State> _pushParsingState();
284 void _popParsingState();
288 shared_ptr<MWAWPresentationListenerInternal::GraphicState>
m_ds;
290 shared_ptr<MWAWPresentationListenerInternal::State>
m_ps;
292 std::vector<shared_ptr<MWAWPresentationListenerInternal::State> >
m_psStack;
bool closeSection()
close a section
Definition: MWAWPresentationListener.hxx:237
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWPresentationListener.hxx:223
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:379
MWAWParserState & m_parserState
the parser state
Definition: MWAWPresentationListener.hxx:294
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
SubDocumentType
Definition: libmwaw_internal.hxx:172
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:767
shared_ptr< MWAWPresentationListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWPresentationListener.hxx:290
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:503
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
Class to store font.
Definition: MWAWFont.hxx:43
Type getType() const
returns the listener type
Definition: MWAWPresentationListener.hxx:68
a class to define the parser state
Definition: MWAWParser.hxx:49
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
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:771
void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument
Definition: MWAWPresentationListener.hxx:89
small class use to define a embedded object
Definition: libmwaw_internal.hxx:412
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:489
void closeMasterPage()
close a master page
Definition: MWAWPresentationListener.hxx:112
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWPresentationListener.hxx:228
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
a field
Definition: libmwaw_internal.hxx:360
a note
Definition: libmwaw_internal.hxx:393
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
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:269