34 #ifndef MWAW_GRAPHIC_LISTENER_H 35 #define MWAW_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 78 void setDocumentLanguage(std::string locale);
82 void endDocument(
bool delayed=
true);
86 bool canWriteText()
const;
88 bool isDocumentStarted()
const;
95 handleSubDocument(
MWAWVec2f(0,0), subDocument, subDocumentType);
108 bool openLayer(librevenge::RVNGString
const &name);
118 _closePageSpan(
true);
121 bool isPageSpanOpened()
const;
129 bool insertHeader(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
131 bool insertFooter(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
133 bool isHeaderFooterOpened()
const;
137 void insertChar(uint8_t character);
140 void insertCharacter(
unsigned char c);
149 void insertUnicode(uint32_t character);
151 void insertUnicodeString(librevenge::RVNGString
const &str);
156 void insertEOL(
bool softBreak=
false);
166 bool isParagraphOpened()
const;
174 void insertField(
MWAWField const &field);
178 void openLink(
MWAWLink const &link);
212 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
214 void closeTableRow();
216 void openTableCell(
MWAWCell const &cell);
218 void closeTableCell();
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 shared_ptr<MWAWGraphicListenerInternal::State> _pushParsingState();
286 void _popParsingState();
290 shared_ptr<MWAWGraphicListenerInternal::GraphicState>
m_ds;
292 shared_ptr<MWAWGraphicListenerInternal::State>
m_ps;
294 std::vector<shared_ptr<MWAWGraphicListenerInternal::State> >
m_psStack;
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
a link
Definition: libmwaw_internal.hxx:379
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWGraphicListener.hxx:225
Internal and low level namespace to define the states of MWAWGraphicListener.
Definition: MWAWGraphicListener.cxx:62
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
SubDocumentType
Definition: libmwaw_internal.hxx:172
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
librevenge::RVNGDrawingInterface * m_documentInterface
the document interface
Definition: MWAWGraphicListener.hxx:298
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:767
Type
the listener type
Definition: MWAWListener.hxx:56
bool closeSection()
close a section
Definition: MWAWGraphicListener.hxx:239
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWGraphicListener.hxx:230
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
void handleSubDocument(MWAWSubDocumentPtr subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument
Definition: MWAWGraphicListener.hxx:93
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:503
Type getType() const
returns the listener type
Definition: MWAWGraphicListener.hxx:72
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
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:771
void closeMasterPage()
close a master page
Definition: MWAWGraphicListener.hxx:116
shared_ptr< MWAWGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWGraphicListener.hxx:290
std::vector< shared_ptr< MWAWGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWGraphicListener.hxx:294
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
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWParserState & m_parserState
the parser state
Definition: MWAWGraphicListener.hxx:296
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
shared_ptr< MWAWGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWGraphicListener.hxx:292
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:269