34 #ifndef STOFF_GRAPHIC_LISTENER_H
35 #define STOFF_GRAPHIC_LISTENER_H
39 #include <librevenge/librevenge.h>
49 namespace STOFFGraphicListenerInternal
103 bool openLayer(librevenge::RVNGString
const &name);
124 bool openHeader(librevenge::RVNGPropertyList
const &extras);
126 bool openFooter(librevenge::RVNGPropertyList
const &extras);
218 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
298 shared_ptr<STOFFGraphicListenerInternal::GraphicState>
m_ds;
300 shared_ptr<STOFFGraphicListenerInternal::State>
m_ps;
302 std::vector<shared_ptr<STOFFGraphicListenerInternal::State> >
m_psStack;
void closeFrame()
close a frame
Definition: STOFFGraphicListener.cxx:1465
STOFFSection const & getSection() const
returns the actual section
Definition: STOFFGraphicListener.cxx:1033
void _flushText()
Definition: STOFFGraphicListener.cxx:879
shared_ptr< STOFFGraphicListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: STOFFGraphicListener.cxx:1655
bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const
returns try if a subdocument is open
Definition: STOFFGraphicListener.cxx:1623
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: STOFFGraphicListener.cxx:536
bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which)
insert a footer
Definition: STOFFGraphicListener.cxx:1005
void _closeSpan()
Definition: STOFFGraphicListener.cxx:857
bool closeFooter()
close a footer
Definition: STOFFGraphicListener.cxx:1015
void _closePageSpan(bool masterPage=false)
does close a page (low level)
Definition: STOFFGraphicListener.cxx:587
void _openSpan()
Definition: STOFFGraphicListener.cxx:826
bool openSection(STOFFSection const §ion)
open a section if possible
Definition: STOFFGraphicListener.cxx:1039
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
bool isDocumentStarted() const
returns true if a document is opened
Definition: STOFFGraphicListener.cxx:487
void insertEOL(bool softBreak=false)
adds an end of line ( by default an hard one)
Definition: STOFFGraphicListener.cxx:298
void insertNote(STOFFNote const ¬e, STOFFSubDocumentPtr &subDocument)
insert a note
Definition: STOFFGraphicListener.cxx:1090
bool isSectionOpened() const
returns true if a section is opened
Definition: STOFFGraphicListener.hxx:238
void endDocument(bool sendDelayedSubDoc=true)
ends the actual document
Definition: STOFFGraphicListener.cxx:451
void setFont(STOFFFont const &font)
sets the font
Definition: STOFFGraphicListener.cxx:334
Type
the listener type
Definition: STOFFListener.hxx:57
librevenge::RVNGPresentationInterface * m_presentationInterface
the presentation interface
Definition: STOFFGraphicListener.hxx:306
void _changeList()
update the list so that it corresponds to the actual level
Definition: STOFFGraphicListener.cxx:753
std::vector< shared_ptr< STOFFGraphicListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFGraphicListener.hxx:302
void insertUnicode(uint32_t character)
insert a character using the font converter to find the utf8 character
Definition: STOFFGraphicListener.cxx:269
void addCoveredTableCell(STOFFVec2i const &pos)
add covered cell
Definition: STOFFGraphicListener.cxx:1358
bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which)
insert a header
Definition: STOFFGraphicListener.cxx:952
STOFFPageSpan const & getPageSpan()
returns the current page span
Definition: STOFFGraphicListener.cxx:505
bool isParagraphStyleDefined(librevenge::RVNGString const &name) const
check if a paragraph style with a display name is already defined
Definition: STOFFGraphicListener.cxx:247
a link
Definition: libstaroffice_internal.hxx:379
void closeTableCell()
close a cell
Definition: STOFFGraphicListener.cxx:1422
bool openFooter(librevenge::RVNGPropertyList const &extras)
open a footer (interaction with STOFFPageSpan which fills the parameters for openFooter) ...
Definition: STOFFGraphicListener.cxx:977
void insertPicture(STOFFPosition const &pos, STOFFEmbeddedObject const &picture, STOFFGraphicStyle const &style=STOFFGraphicStyle())
adds a picture with potential various representationin given position
Definition: STOFFGraphicListener.cxx:1111
void insertBreak(BreakType breakType)
inserts a break type: ColumBreak, PageBreak, ..
Definition: STOFFGraphicListener.cxx:1045
void closeMasterPage()
close a master page
Definition: STOFFGraphicListener.hxx:111
bool isFontStyleDefined(librevenge::RVNGString const &name) const
check if a font style with a display name is already defined
Definition: STOFFGraphicListener.cxx:237
void _closeParagraph()
Definition: STOFFGraphicListener.cxx:657
void startDocument()
starts a new document
Definition: STOFFGraphicListener.cxx:434
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
virtual ~STOFFGraphicListener()
destructor
Definition: STOFFGraphicListener.cxx:198
void defineStyle(STOFFFont const &style)
defines a font styles
Definition: STOFFGraphicListener.cxx:202
void openLink(STOFFLink const &link)
open a link
Definition: STOFFGraphicListener.cxx:394
void openTableCell(STOFFCell const &cell)
open a cell
Definition: STOFFGraphicListener.cxx:1402
bool closeHeader()
close a header
Definition: STOFFGraphicListener.cxx:962
Definition: STOFFListener.hxx:57
bool canOpenSectionAddBreak() const
returns true if we can add open a section, add page break, ...
Definition: STOFFGraphicListener.hxx:233
void _closeListElement()
close a list level
Definition: STOFFGraphicListener.cxx:720
void _openListElement()
open a list level
Definition: STOFFGraphicListener.cxx:691
void closeLayer()
close a layer
Definition: STOFFGraphicListener.cxx:1545
a note
Definition: libstaroffice_internal.hxx:393
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
void _popParsingState()
resets the previous parsing state
Definition: STOFFGraphicListener.cxx:1663
void _endSubDocument()
Definition: STOFFGraphicListener.cxx:1637
STOFFFont const & getFont() const
returns the actual font
Definition: STOFFGraphicListener.cxx:345
void openTableRow(float h, librevenge::RVNGUnit unit, bool headerRow=false)
open a row with given height ( if h < 0.0, set min-row-height = -h )
Definition: STOFFGraphicListener.cxx:1321
bool closeSection()
close a section
Definition: STOFFGraphicListener.hxx:247
void _resetParagraphState(const bool isListElement=false)
Definition: STOFFGraphicListener.cxx:682
void setParagraph(STOFFParagraph const ¶graph)
sets the paragraph
Definition: STOFFGraphicListener.cxx:355
void insertUnicodeString(librevenge::RVNGString const &str)
adds a unicode string
Definition: STOFFGraphicListener.cxx:288
shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:492
librevenge::RVNGDrawingInterface * m_drawingInterface
the drawing interface
Definition: STOFFGraphicListener.hxx:304
void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1, 1))
add empty cell
Definition: STOFFGraphicListener.cxx:1377
void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType)
function called to add a subdocument and modify the origin
Definition: STOFFGraphicListener.cxx:1570
bool canWriteText() const
returns true if a text zone is opened
Definition: STOFFGraphicListener.cxx:492
bool openMasterPage(STOFFPageSpan &masterPage)
opens a master page
Definition: STOFFGraphicListener.cxx:512
void setDocumentLanguage(std::string locale)
sets the documents language
Definition: STOFFGraphicListener.cxx:474
bool openHeader(librevenge::RVNGPropertyList const &extras)
open a header (interaction with STOFFPageSpan which fills the parameters for openHeader) ...
Definition: STOFFGraphicListener.cxx:924
void insertTab()
adds a tab
Definition: STOFFGraphicListener.cxx:317
SubDocumentType
Definition: libstaroffice_internal.hxx:189
shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:498
a class which stores section properties
Definition: STOFFSection.hxx:45
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:59
a field
Definition: libstaroffice_internal.hxx:367
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:412
bool isGraphicStyleDefined(librevenge::RVNGString const &name) const
check if a graphic style with a display name is already defined
Definition: STOFFGraphicListener.cxx:242
bool openFrame(STOFFPosition const &pos, STOFFGraphicStyle const &style=STOFFGraphicStyle())
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: STOFFGraphicListener.cxx:1443
shared_ptr< STOFFGraphicListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFGraphicListener.hxx:300
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:762
void _openParagraph()
Definition: STOFFGraphicListener.cxx:634
bool openLayer(librevenge::RVNGString const &name)
open a layer
Definition: STOFFGraphicListener.cxx:1515
bool isParagraphOpened() const
returns true if a paragraph or a list is opened
Definition: STOFFGraphicListener.cxx:350
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: STOFFGraphicListener.cxx:736
STOFFGraphicListener(STOFFListManagerPtr listManager, std::vector< STOFFPageSpan > const &pageList, librevenge::RVNGDrawingInterface *drawingInterface)
constructor with a drawing interface
Definition: STOFFGraphicListener.cxx:186
Class to store font.
Definition: STOFFFont.hxx:43
shared_ptr< STOFFGraphicListenerInternal::GraphicState > m_ds
the actual global state
Definition: STOFFGraphicListener.hxx:298
void closeLink()
close a link
Definition: STOFFGraphicListener.cxx:418
Type getType() const
returns the listener type
Definition: STOFFGraphicListener.hxx:70
void closeGroup()
close a group
Definition: STOFFGraphicListener.cxx:1501
void insertField(STOFFField const &field)
adds a field type
Definition: STOFFGraphicListener.cxx:378
bool isPageSpanOpened() const
returns true if a page is opened
Definition: STOFFGraphicListener.cxx:500
bool isHeaderFooterOpened() const
returns true if the header/footer is open
Definition: STOFFGraphicListener.cxx:919
void openTable(STOFFTable const &table)
open a table (using the last parameters of openFrame for the position )
Definition: STOFFGraphicListener.cxx:1258
void insertChar(uint8_t character)
adds a basic character, ..
Definition: STOFFGraphicListener.cxx:255
void insertTextBox(STOFFPosition const &pos, STOFFSubDocumentPtr subDocument, STOFFGraphicStyle const &style=STOFFGraphicStyle())
adds a textbox in given position
Definition: STOFFGraphicListener.cxx:1225
void setDocumentMetaData(const librevenge::RVNGPropertyList &list)
sets the document meta data
Definition: STOFFGraphicListener.cxx:480
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
void insertShape(STOFFGraphicShape const &shape, STOFFGraphicStyle const &style, STOFFPosition const &pos)
adds a shape picture in given position
Definition: STOFFGraphicListener.cxx:1139
BreakType
the different break type
Definition: STOFFListener.hxx:59
void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="")
adds comment
Definition: STOFFGraphicListener.cxx:1072
void _startSubDocument()
Definition: STOFFGraphicListener.cxx:1631
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, STOFFPosition const &pos, STOFFGraphicStyle const &style)
adds in propList the frame parameters.
Definition: STOFFGraphicListener.cxx:1559
bool openGroup(STOFFPosition const &pos)
open a group
Definition: STOFFGraphicListener.cxx:1474
STOFFGraphicListener & operator=(const STOFFGraphicListener &)
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
STOFFParagraph const & getParagraph() const
returns the actual paragraph
Definition: STOFFGraphicListener.cxx:370
void closeTableRow()
closes this row
Definition: STOFFGraphicListener.cxx:1345
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47
void closeTable()
closes this table
Definition: STOFFGraphicListener.cxx:1304