34 #ifndef MWAW_GRAPHIC_LISTENER_H 35 #define MWAW_GRAPHIC_LISTENER_H 39 #include <librevenge/librevenge.h> 158 void insertEOL(
bool softBreak=false) final;
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;
void insertField(MWAWField const &field) final
adds a field type
Definition: MWAWGraphicListener.cxx:414
void setFont(MWAWFont const &font) final
sets the font
Definition: MWAWGraphicListener.cxx:365
std::vector< std::shared_ptr< MWAWGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: MWAWGraphicListener.hxx:296
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:479
void _openParagraph()
Definition: MWAWGraphicListener.cxx:650
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false) final
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: MWAWGraphicListener.cxx:1239
void insertTab() final
adds a tab
Definition: MWAWGraphicListener.cxx:351
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: MWAWGraphicListener.cxx:525
void setParagraph(MWAWParagraph const ¶graph) final
sets the paragraph
Definition: MWAWGraphicListener.cxx:395
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: MWAWGraphicListener.cxx:1391
bool canWriteText() const final
returns true if a text zone is opened
Definition: MWAWGraphicListener.cxx:517
void insertNote(MWAWNote const ¬e, MWAWSubDocumentPtr &subDocument) final
insert a note
Definition: MWAWGraphicListener.cxx:1007
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
Definition: MWAWDocument.hxx:56
void _flushText()
Definition: MWAWGraphicListener.cxx:864
void setDocumentMetaData(librevenge::RVNGPropertyList const &metadata) final
sets the documents metadata
Definition: MWAWGraphicListener.cxx:499
void closeGroup() final
close a group
Definition: MWAWGraphicListener.cxx:1380
MWAWSection const & getSection() const final
returns the actual section
Definition: MWAWGraphicListener.cxx:948
a link
Definition: libmwaw_internal.hxx:430
Definition: MWAWListener.hxx:56
Internal and low level namespace to define the states of MWAWGraphicListener.
Definition: MWAWGraphicListener.cxx:62
bool openMasterPage(MWAWPageSpan &masterPage)
opens a master page
Definition: MWAWGraphicListener.cxx:537
void _resetParagraphState(const bool isListElement=false)
Definition: MWAWGraphicListener.cxx:693
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: MWAWGraphicListener.cxx:895
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
bool insertFooter(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a footer
Definition: MWAWGraphicListener.cxx:921
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
void openTable(MWAWTable const &table) final
open a table (using the last parameters of openFrame for the position )
Definition: MWAWGraphicListener.cxx:1185
void addEmptyTableCell(MWAWVec2i const &pos, MWAWVec2i span=MWAWVec2i(1, 1)) final
add empty cell
Definition: MWAWGraphicListener.cxx:1270
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
void _openListElement()
open a list level
Definition: MWAWGraphicListener.cxx:702
Type
the listener type
Definition: MWAWListener.hxx:56
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, MWAWPosition const &pos, MWAWGraphicStyle const &style)
adds in propList the frame parameters.
Definition: MWAWGraphicListener.cxx:1429
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
void _endSubDocument()
Definition: MWAWGraphicListener.cxx:1673
void openTableCell(MWAWCell const &cell) final
open a cell
Definition: MWAWGraphicListener.cxx:1289
void openLink(MWAWLink const &link) final
open a link
Definition: MWAWGraphicListener.cxx:435
MWAWGraphicListener(MWAWParserState &parserState, std::vector< MWAWPageSpan > const &pageList, librevenge::RVNGDrawingInterface *documentInterface)
constructor
Definition: MWAWGraphicListener.cxx:207
void insertPicture(MWAWPosition const &pos, MWAWEmbeddedObject const &picture, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
adds a picture with potential various representationin given position
Definition: MWAWGraphicListener.cxx:1074
void insertGroup(MWAWBox2f const &bdbox, MWAWSubDocumentPtr const &subDocument)
adds a group: ie.
Definition: MWAWGraphicListener.cxx:1145
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: MWAWGraphicListener.cxx:322
void closeTable() final
closes this table
Definition: MWAWGraphicListener.cxx:1225
void closeLayer()
close a layer
Definition: MWAWGraphicListener.cxx:1418
void closeTableCell() final
close a cell
Definition: MWAWGraphicListener.cxx:1306
void handleSubDocument(MWAWVec2f const &orig, MWAWSubDocumentPtr const &subDocument, libmwaw::SubDocumentType subDocumentType)
function called to add a subdocument and modify the origin
Definition: MWAWGraphicListener.cxx:1602
Class to store font.
Definition: MWAWFont.hxx:43
a class to define the parser state
Definition: MWAWParser.hxx:49
~MWAWGraphicListener() final
destructor
Definition: MWAWGraphicListener.cxx:234
BreakType
the different break type
Definition: MWAWListener.hxx:58
void closeLink() final
close a link
Definition: MWAWGraphicListener.cxx:455
std::shared_ptr< MWAWGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: MWAWGraphicListener.hxx:294
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:1030
std::shared_ptr< MWAWGraphicListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: MWAWGraphicListener.cxx:1691
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:838
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: MWAWGraphicListener.cxx:611
void closeMasterPage()
close a master page
Definition: MWAWGraphicListener.hxx:118
void _closeListElement()
close a list level
Definition: MWAWGraphicListener.cxx:728
bool closeSection() final
close a section
Definition: MWAWGraphicListener.hxx:241
Type getType() const final
returns the listener type
Definition: MWAWGraphicListener.hxx:72
void insertCharacter(unsigned char c) final
insert a character using the font converter to find the utf8 character
Definition: MWAWGraphicListener.cxx:255
MWAWFont const & getFont() const final
returns the actual font
Definition: MWAWGraphicListener.cxx:385
bool openGroup(MWAWPosition const &pos) final
open a group
Definition: MWAWGraphicListener.cxx:1355
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: MWAWGraphicListener.cxx:960
bool insertHeader(MWAWSubDocumentPtr const &subDocument, librevenge::RVNGPropertyList const &extras) final
insert a header
Definition: MWAWGraphicListener.cxx:900
void _popParsingState()
resets the previous parsing state
Definition: MWAWGraphicListener.cxx:1699
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
a class which stores section properties
Definition: MWAWSection.hxx:45
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: MWAWGraphicListener.cxx:332
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
bool openFrame(MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle()) final
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: MWAWGraphicListener.cxx:1324
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
bool isDocumentStarted() const final
returns true if a document is opened
Definition: MWAWGraphicListener.cxx:512
void insertTable(MWAWPosition const &pos, MWAWTable &table, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
adds a table in given position
Definition: MWAWGraphicListener.cxx:1160
void insertComment(MWAWSubDocumentPtr &subDocument) final
adds comment
Definition: MWAWGraphicListener.cxx:989
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr const &subDocument, MWAWGraphicStyle const &style) final
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1109
a field
Definition: libmwaw_internal.hxx:399
void closeTableRow() final
closes this row
Definition: MWAWGraphicListener.cxx:1260
bool isSubDocumentOpened(libmwaw::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: MWAWGraphicListener.cxx:1659
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: MWAWGraphicListener.cxx:560
void _openSpan()
Definition: MWAWGraphicListener.cxx:818
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:468
a note
Definition: libmwaw_internal.hxx:445
void setDocumentLanguage(std::string const &locale) final
sets the documents language
Definition: MWAWGraphicListener.cxx:506
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
bool openSection(MWAWSection const §ion) final
open a section if possible
Definition: MWAWGraphicListener.cxx:954
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:561
MWAWGraphicListener & operator=(const MWAWGraphicListener &)=delete
void insertUnicode(uint32_t character) final
adds an unicode character.
Definition: MWAWGraphicListener.cxx:309
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: MWAWGraphicListener.cxx:741
void _closeParagraph()
Definition: MWAWGraphicListener.cxx:671
void _startSubDocument()
Definition: MWAWGraphicListener.cxx:1667
MWAWPageSpan const & getPageSpan() final
returns the current page span
Definition: MWAWGraphicListener.cxx:530
void _changeList()
update the list so that it corresponds to the actual level
Definition: MWAWGraphicListener.cxx:757
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: MWAWGraphicListener.cxx:241
MWAWParagraph const & getParagraph() const final
returns the actual paragraph
Definition: MWAWGraphicListener.cxx:406
void _closeSpan()
Definition: MWAWGraphicListener.cxx:845
void closeFrame() final
close a frame
Definition: MWAWGraphicListener.cxx:1346
std::shared_ptr< MWAWGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: MWAWGraphicListener.hxx:292
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: MWAWGraphicListener.cxx:390
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:304