34 #ifndef STOFF_TEXT_LISTENER_H 35 #define STOFF_TEXT_LISTENER_H 39 #include <librevenge/librevenge.h> 80 void endDocument(
bool sendDelayedSubDoc=true) final;
153 void insertEOL(
bool softBreak=false) final;
void insertEquation(STOFFFrameStyle const &frame, librevenge::RVNGString const &equation, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a equation given a position
Definition: STOFFTextListener.cxx:1249
void _closePageSpan()
does close a page (low level)
Definition: STOFFTextListener.cxx:622
void _closeSection()
does close a section (low level)
Definition: STOFFTextListener.cxx:779
std::shared_ptr< STOFFTextListenerInternal::TextState > m_ds
the actual global state
Definition: STOFFTextListener.hxx:299
void handleSubDocument(STOFFSubDocumentPtr subDocument, libstoff::SubDocumentType subDocumentType) final
function called to add a subdocument and modify the origin
Definition: STOFFTextListener.cxx:1420
void insertChar(uint8_t character) final
adds a basic character, ..
Definition: STOFFTextListener.cxx:290
int _getListId() const
low level: find a list id which corresponds to actual list and a change of level. ...
Definition: STOFFTextListener.cxx:918
void _openSpan()
low level: the function which opens a new span property
Definition: STOFFTextListener.cxx:993
void _closeParagraph()
Definition: STOFFTextListener.cxx:827
Definition: STOFFDocument.hxx:42
bool canWriteText() const final
returns true if a text zone is opened
Definition: STOFFTextListener.hxx:84
bool openFooter(librevenge::RVNGPropertyList const &extras) final
open a footer (interaction with STOFFPageSpan which fills the parameters for openFooter) ...
Definition: STOFFTextListener.cxx:677
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
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: STOFFTextListener.cxx:1569
bool insertHeaderRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a header
Definition: STOFFTextListener.cxx:654
Class to store a frame style.
Definition: STOFFFrameStyle.hxx:45
Type
the listener type
Definition: STOFFListener.hxx:57
void insertTab() final
adds a tab
Definition: STOFFTextListener.cxx:340
bool isSectionOpened() const final
returns true if a section is opened
Definition: STOFFTextListener.cxx:715
void openLink(STOFFLink const &link) final
open a link
Definition: STOFFTextListener.cxx:467
void insertPicture(STOFFFrameStyle const &frame, STOFFEmbeddedObject const &picture, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a picture with potential various representationin given position
Definition: STOFFTextListener.cxx:1239
void _changeList()
update the list so that it corresponds to the actual level
Definition: STOFFTextListener.cxx:934
bool openSection(STOFFSection const §ion) final
open a section if possible
Definition: STOFFTextListener.cxx:730
bool canOpenSectionAddBreak() const final
returns true if we can add open a section, add page break, ...
Definition: STOFFTextListener.cxx:725
STOFFSection const & getSection() const final
returns the actual section
Definition: STOFFTextListener.cxx:720
bool closeFooter() final
close a footer
Definition: STOFFTextListener.cxx:701
void startDocument() final
starts a new document
Definition: STOFFTextListener.cxx:517
bool isPageSpanOpened() const final
returns true if a page is opened
Definition: STOFFTextListener.cxx:561
a link
Definition: libstaroffice_internal.hxx:375
std::vector< std::shared_ptr< STOFFTextListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFTextListener.hxx:303
void setFont(STOFFFont const &font) final
sets the font
Definition: STOFFTextListener.cxx:420
void _flushDeferredTabs()
low level: flush the deferred tabs
Definition: STOFFTextListener.cxx:1031
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
void insertUnicodeString(librevenge::RVNGString const &str) final
adds a unicode string
Definition: STOFFTextListener.cxx:318
void setDocumentMetaData(const librevenge::RVNGPropertyList &list) final
sets the document meta data
Definition: STOFFTextListener.cxx:499
void defineStyle(STOFFFont const &style) final
defines a font styles
Definition: STOFFTextListener.cxx:246
void insertBreak(BreakType breakType) final
inserts a break type: ColumBreak, PageBreak, ..
Definition: STOFFTextListener.cxx:351
void insertField(STOFFField const &field) final
adds a field type
Definition: STOFFTextListener.cxx:457
STOFFParagraph const & getParagraph() const final
returns the actual paragraph
Definition: STOFFTextListener.cxx:449
void _closeSpan()
low level: the function which closes the last opened span property
Definition: STOFFTextListener.cxx:1017
void endDocument(bool sendDelayedSubDoc=true) final
ends the actual document
Definition: STOFFTextListener.cxx:530
void closeTableRow() final
closes this row
Definition: STOFFTextListener.cxx:1590
a note
Definition: libstaroffice_internal.hxx:389
Type getType() const final
returns the listener type
Definition: STOFFTextListener.hxx:68
void _handleFrameParameters(librevenge::RVNGPropertyList &propList, STOFFFrameStyle const &frame, STOFFGraphicStyle const &style)
adds in propList the frame parameters.
Definition: STOFFTextListener.cxx:1409
bool openFrame(STOFFFrameStyle const &frame, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
store the position and the style (which will be needed further to insert a textbox or a table with op...
Definition: STOFFTextListener.cxx:1268
bool openHeader(librevenge::RVNGPropertyList const &extras) final
open a header (interaction with STOFFPageSpan which fills the parameters for openHeader) ...
Definition: STOFFTextListener.cxx:642
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
void setParagraph(STOFFParagraph const ¶graph) final
sets the paragraph
Definition: STOFFTextListener.cxx:438
bool openMasterPage(STOFFPageSpan &)
opens a master page
std::shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:495
Definition: STOFFListener.hxx:57
void _popParsingState()
resets the previous parsing state
Definition: STOFFTextListener.cxx:1683
void _openPageSpan(bool sendHeaderFooters=true)
does open a new page (low level)
Definition: STOFFTextListener.cxx:574
void closeFrame() final
close a frame
Definition: STOFFTextListener.cxx:1337
bool isHeaderFooterOpened() const final
returns true if the header/footer is open
Definition: STOFFTextListener.cxx:637
void _flushText()
low level: flush the deferred text
Definition: STOFFTextListener.cxx:1039
librevenge::RVNGTextInterface * m_documentInterface
the document interface
Definition: STOFFTextListener.hxx:305
void insertNote(STOFFNote const ¬e, STOFFSubDocumentPtr &subDocument) final
insert a note
Definition: STOFFTextListener.cxx:1070
SubDocumentType
Definition: libstaroffice_internal.hxx:185
a class which stores section properties
Definition: STOFFSection.hxx:45
void openTableCell(STOFFCell const &cell) final
open a cell
Definition: STOFFTextListener.cxx:1635
void closeLayer()
close a layer
bool isDocumentStarted() const final
returns true if a document is opened
Definition: STOFFTextListener.cxx:512
a field
Definition: libstaroffice_internal.hxx:363
void insertShape(STOFFFrameStyle const &frame, STOFFGraphicShape const &shape, STOFFGraphicStyle const &style) final
adds a shape picture in given position
Definition: STOFFTextListener.cxx:1169
void insertEOL(bool softBreak=false) final
adds an end of line ( by default an hard one)
Definition: STOFFTextListener.cxx:325
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:50
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
~STOFFTextListener() final
destructor
Definition: STOFFTextListener.cxx:242
void _closeListElement()
close a list level
Definition: STOFFTextListener.cxx:902
void addCoveredTableCell(STOFFVec2i const &pos) final
add covered cell
Definition: STOFFTextListener.cxx:1600
STOFFFont const & getFont() const final
returns the actual font
Definition: STOFFTextListener.cxx:428
bool isSubDocumentOpened(libstoff::SubDocumentType &subdocType) const final
returns try if a subdocument is open
Definition: STOFFTextListener.cxx:1503
void _openSection()
does open a section (low level)
Definition: STOFFTextListener.cxx:761
bool closeHeader() final
close a header
Definition: STOFFTextListener.cxx:666
This class contains the code needed to create Text document.
Definition: STOFFTextListener.hxx:59
void _openListElement()
open a list level
Definition: STOFFTextListener.cxx:872
void closeTableCell() final
close a cell
Definition: STOFFTextListener.cxx:1652
bool isParagraphOpened() const final
returns true if a paragraph or a list is opened
Definition: STOFFTextListener.cxx:433
void openTable(STOFFTable const &table) final
open a table (using the last parameters of openFrame for the position )
Definition: STOFFTextListener.cxx:1531
void closeGroup() final
close a group
Definition: STOFFTextListener.cxx:1397
bool closeSection() final
close a section
Definition: STOFFTextListener.cxx:746
void closeMasterPage()
close a master page
Definition: STOFFTextListener.hxx:113
Class to store font.
Definition: STOFFFont.hxx:43
void _insertBreakIfNecessary(librevenge::RVNGPropertyList &propList)
Definition: STOFFTextListener.cxx:399
bool insertFooterRegion(STOFFSubDocumentPtr subDocument, librevenge::RVNGString const &which) final
insert a footer
Definition: STOFFTextListener.cxx:689
std::shared_ptr< STOFFTextListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFTextListener.hxx:301
void setDocumentLanguage(std::string locale) final
sets the documents language
Definition: STOFFTextListener.cxx:506
bool openGroup(STOFFFrameStyle const &frame) final
open a group
Definition: STOFFTextListener.cxx:1347
void _resetParagraphState(const bool isListElement=false)
Definition: STOFFTextListener.cxx:851
std::shared_ptr< STOFFTextListenerInternal::State > _pushParsingState()
creates a new parsing state (copy of the actual state)
Definition: STOFFTextListener.cxx:1672
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
BreakType
the different break type
Definition: STOFFListener.hxx:59
void addEmptyTableCell(STOFFVec2i const &pos, STOFFVec2i span=STOFFVec2i(1, 1)) final
add empty cell
Definition: STOFFTextListener.cxx:1616
void _startSubDocument()
Definition: STOFFTextListener.cxx:1511
STOFFPageSpan const & getPageSpan() final
returns the current page span
Definition: STOFFTextListener.cxx:566
bool openLayer(librevenge::RVNGString const &name)
open a layer
bool isFontStyleDefined(librevenge::RVNGString const &name) const final
check if a font style with a display name is already defined
Definition: STOFFTextListener.cxx:272
void _openParagraph()
Definition: STOFFTextListener.cxx:799
void closeLink() final
close a link
Definition: STOFFTextListener.cxx:485
Internal and low level namespace to define the states of STOFFTextListener.
Definition: STOFFTextListener.cxx:69
std::shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:489
bool isParagraphStyleDefined(librevenge::RVNGString const &name) const final
check if a paragraph style with a display name is already defined
Definition: STOFFTextListener.cxx:282
bool isGraphicStyleDefined(librevenge::RVNGString const &name) const final
check if a graphic style with a display name is already defined
Definition: STOFFTextListener.cxx:277
void closeTable() final
closes this table
Definition: STOFFTextListener.cxx:1555
void insertTextBox(STOFFFrameStyle const &pos, STOFFSubDocumentPtr subDocument, STOFFGraphicStyle const &style=STOFFGraphicStyle()) final
adds a textbox in given position
Definition: STOFFTextListener.cxx:1154
void insertUnicode(uint32_t character) final
insert a character using the font converter to find the utf8 character
Definition: STOFFTextListener.cxx:301
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
STOFFTextListener(STOFFListManagerPtr &listManager, std::vector< STOFFPageSpan > const &pageList, librevenge::RVNGTextInterface *documentInterface)
constructor
Definition: STOFFTextListener.cxx:233
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
void _appendParagraphProperties(librevenge::RVNGPropertyList &propList, const bool isListElement=false)
Definition: STOFFTextListener.cxx:859
void _endSubDocument()
Definition: STOFFTextListener.cxx:1517
void insertComment(STOFFSubDocumentPtr &subDocument, librevenge::RVNGString const &creator="", librevenge::RVNGString const &date="") final
adds comment
Definition: STOFFTextListener.cxx:1127