34 #ifndef MWAW_GRAPHIC_LISTENER_H 35 #define MWAW_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 78 void setDocumentMetaData(librevenge::RVNGPropertyList
const &metadata);
80 void setDocumentLanguage(std::string
const &locale);
84 void endDocument(
bool delayed=
true);
88 bool canWriteText()
const;
90 bool isDocumentStarted()
const;
97 handleSubDocument(
MWAWVec2f(0,0), subDocument, subDocumentType);
110 bool openLayer(librevenge::RVNGString
const &name);
120 _closePageSpan(
true);
123 bool isPageSpanOpened()
const;
131 bool insertHeader(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
133 bool insertFooter(
MWAWSubDocumentPtr subDocument, librevenge::RVNGPropertyList
const &extras);
135 bool isHeaderFooterOpened()
const;
139 void insertChar(uint8_t character);
142 void insertCharacter(
unsigned char c);
151 void insertUnicode(uint32_t character);
153 void insertUnicodeString(librevenge::RVNGString
const &str);
158 void insertEOL(
bool softBreak=
false);
168 bool isParagraphOpened()
const;
176 void insertField(
MWAWField const &field);
180 void openLink(
MWAWLink const &link);
214 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
216 void closeTableRow();
218 void openTableCell(
MWAWCell const &cell);
220 void closeTableCell();
250 void _openPageSpan(
bool sendHeaderFooters=
true);
252 void _closePageSpan(
bool masterPage=
false);
254 void _startSubDocument();
255 void _endSubDocument();
262 void _openParagraph();
263 void _closeParagraph();
264 void _resetParagraphState(
const bool isListElement=
false);
267 void _openListElement();
269 void _closeListElement();
276 int _getListId()
const;
286 shared_ptr<MWAWGraphicListenerInternal::State> _pushParsingState();
288 void _popParsingState();
292 shared_ptr<MWAWGraphicListenerInternal::GraphicState>
m_ds;
294 shared_ptr<MWAWGraphicListenerInternal::State>
m_ps;
296 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:392
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:178
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:300
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
Type
the listener type
Definition: MWAWListener.hxx:56
bool closeSection()
close a section
Definition: MWAWGraphicListener.hxx:241
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:95
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
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:785
void closeMasterPage()
close a master page
Definition: MWAWGraphicListener.hxx:118
shared_ptr< MWAWGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWGraphicListener.hxx:292
std::vector< shared_ptr< MWAWGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWGraphicListener.hxx:296
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWParserState & m_parserState
the parser state
Definition: MWAWGraphicListener.hxx:298
bool isSectionOpened() const
returns true if a section is opened
Definition: MWAWGraphicListener.hxx:232
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
a field
Definition: libmwaw_internal.hxx:369
a note
Definition: libmwaw_internal.hxx:406
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
Type getType() const
returns the listener type
Definition: MWAWGraphicListener.hxx:72
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: MWAWGraphicListener.hxx:227
shared_ptr< MWAWGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWGraphicListener.hxx:294
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:268