34 #ifndef MWAW_GRAPHIC_LISTENER_H 35 #define MWAW_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 78 void setDocumentMetaData(librevenge::RVNGPropertyList
const &metadata)
final;
80 void setDocumentLanguage(std::string
const &locale)
final;
82 void startDocument()
final;
84 void endDocument(
bool delayed=
true)
final;
88 bool canWriteText()
const final;
90 bool isDocumentStarted()
const final;
97 handleSubDocument(
MWAWVec2f(0,0), subDocument, subDocumentType);
104 void closeFrame()
final;
108 void closeGroup()
final;
110 bool openLayer(librevenge::RVNGString
const &name);
120 _closePageSpan(
true);
123 bool isPageSpanOpened()
const final;
131 bool insertHeader(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
133 bool insertFooter(
MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList
const &extras)
final;
135 bool isHeaderFooterOpened()
const final;
139 void insertChar(uint8_t character)
final;
142 void insertCharacter(
unsigned char c)
final;
148 int insertCharacter(
unsigned char c,
MWAWInputStreamPtr &input,
long endPos=-1)
final;
151 void insertUnicode(uint32_t character)
final;
153 void insertUnicodeString(librevenge::RVNGString
const &str)
final;
156 void insertTab()
final;
158 void insertEOL(
bool softBreak=
false)
final;
162 void setFont(
MWAWFont const &font)
final;
164 MWAWFont const &getFont()
const final;
168 bool isParagraphOpened()
const final;
176 void insertField(
MWAWField const &field)
final;
180 void openLink(
MWAWLink const &link)
final;
182 void closeLink()
final;
208 void openTable(
MWAWTable const &table)
final;
212 void closeTable()
final;
214 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false)
final;
216 void closeTableRow()
final;
218 void openTableCell(
MWAWCell const &cell)
final;
220 void closeTableCell()
final;
239 bool openSection(
MWAWSection const §ion)
final;
246 void insertBreak(
BreakType breakType)
final;
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 std::shared_ptr<MWAWGraphicListenerInternal::State> _pushParsingState();
288 void _popParsingState();
292 std::shared_ptr<MWAWGraphicListenerInternal::GraphicState>
m_ds;
294 std::shared_ptr<MWAWGraphicListenerInternal::State>
m_ps;
296 std::vector<std::shared_ptr<MWAWGraphicListenerInternal::State> >
m_psStack;
std::vector< std::shared_ptr< MWAWGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWGraphicListener.hxx:296
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
a link
Definition: libmwaw_internal.hxx:430
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:188
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: MWAWGraphicListener.hxx:227
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:834
Type
the listener type
Definition: MWAWListener.hxx:56
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
Section getSection(const State &state, const long id)
Definition: HanMacWrdKText.cxx:268
Class to store font.
Definition: MWAWFont.hxx:43
void handleSubDocument(MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType) final
function called to add a subdocument
Definition: MWAWGraphicListener.hxx:95
a class to define the parser state
Definition: MWAWParser.hxx:49
BreakType
the different break type
Definition: MWAWListener.hxx:58
std::shared_ptr< MWAWGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWGraphicListener.hxx:294
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:838
void closeMasterPage()
close a master page
Definition: MWAWGraphicListener.hxx:118
bool closeSection() final
close a section
Definition: MWAWGraphicListener.hxx:241
Type getType() const final
returns the listener type
Definition: MWAWGraphicListener.hxx:72
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
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
bool isSectionOpened() const final
returns true if a section is opened
Definition: MWAWGraphicListener.hxx:232
MWAWParserState & m_parserState
the parser state
Definition: MWAWGraphicListener.hxx:298
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
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
std::shared_ptr< MWAWGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWGraphicListener.hxx:292
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:304