34 #ifndef STOFF_TEXT_LISTENER_H 35 #define STOFF_TEXT_LISTENER_H 39 #include <librevenge/librevenge.h> 74 void setDocumentLanguage(std::string locale);
76 void setDocumentMetaData(
const librevenge::RVNGPropertyList &list);
80 void endDocument(
bool sendDelayedSubDoc=
true);
90 bool isDocumentStarted()
const;
105 bool openLayer(librevenge::RVNGString
const &name);
117 bool isPageSpanOpened()
const;
125 bool openHeader(librevenge::RVNGPropertyList
const &extras);
127 bool openFooter(librevenge::RVNGPropertyList
const &extras);
133 bool insertHeaderRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
135 bool insertFooterRegion(
STOFFSubDocumentPtr subDocument, librevenge::RVNGString
const &which);
137 bool isHeaderFooterOpened()
const;
141 void insertChar(uint8_t character);
146 void insertUnicode(uint32_t character);
148 void insertUnicodeString(librevenge::RVNGString
const &str);
153 void insertEOL(
bool softBreak=
false);
163 bool isParagraphOpened()
const;
171 void defineStyle(
STOFFFont const &style);
173 bool isFontStyleDefined(librevenge::RVNGString
const &name)
const;
177 bool isGraphicStyleDefined(librevenge::RVNGString
const &name)
const;
181 bool isParagraphStyleDefined(librevenge::RVNGString
const &name)
const;
204 void insertComment(
STOFFSubDocumentPtr &subDocument, librevenge::RVNGString
const &creator=
"", librevenge::RVNGString
const &date=
"");
217 void openTableRow(
float h, librevenge::RVNGUnit unit,
bool headerRow=
false);
219 void closeTableRow();
221 void openTableCell(
STOFFCell const &cell);
223 void closeTableCell();
225 void addCoveredTableCell(
STOFFVec2i const &pos);
232 bool canOpenSectionAddBreak()
const;
234 bool isSectionOpened()
const;
248 void _closeSection();
250 void _openPageSpan(
bool sendHeaderFooters=
true);
252 void _closePageSpan();
254 void _startSubDocument();
255 void _endSubDocument();
262 void _openParagraph();
263 void _closeParagraph();
264 void _appendParagraphProperties(librevenge::RVNGPropertyList &propList,
const bool isListElement=
false);
265 void _resetParagraphState(
const bool isListElement=
false);
268 void _openListElement();
270 void _closeListElement();
277 int _getListId()
const;
287 void _flushDeferredTabs();
289 void _insertBreakIfNecessary(librevenge::RVNGPropertyList &propList);
294 shared_ptr<STOFFTextListenerInternal::State> _pushParsingState();
296 void _popParsingState();
300 shared_ptr<STOFFTextListenerInternal::TextState>
m_ds;
302 shared_ptr<STOFFTextListenerInternal::State>
m_ps;
304 std::vector<shared_ptr<STOFFTextListenerInternal::State> >
m_psStack;
bool isDocumentStarted() const
returns true if a document is opened
Definition: STOFFTextListener.cxx:485
a structure used to define a cell and its format
Definition: STOFFCell.hxx:53
bool canWriteText() const
returns true if a text zone is opened
Definition: STOFFTextListener.hxx:84
Type
the listener type
Definition: STOFFListener.hxx:57
a link
Definition: libstaroffice_internal.hxx:365
a class used to recreate the table structure using cell informations, ....
Definition: STOFFTable.hxx:51
a note
Definition: libstaroffice_internal.hxx:379
shared_ptr< STOFFTextListenerInternal::State > m_ps
the actual local parse state
Definition: STOFFTextListener.hxx:302
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:478
librevenge::RVNGTextInterface * m_documentInterface
the document interface
Definition: STOFFTextListener.hxx:306
SubDocumentType
Definition: libstaroffice_internal.hxx:175
shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:484
a class which stores section properties
Definition: STOFFSection.hxx:45
a field
Definition: libstaroffice_internal.hxx:353
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:398
Type getType() const
returns the listener type
Definition: STOFFTextListener.hxx:68
This class contains the code needed to create Text document.
Definition: STOFFTextListener.hxx:59
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:748
void closeMasterPage()
close a master page
Definition: STOFFTextListener.hxx:113
Class to store font.
Definition: STOFFFont.hxx:43
shared_ptr< STOFFTextListenerInternal::TextState > m_ds
the actual global state
Definition: STOFFTextListener.hxx:300
std::vector< shared_ptr< STOFFTextListenerInternal::State > > m_psStack
stack of local state
Definition: STOFFTextListener.hxx:304
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:75
BreakType
the different break type
Definition: STOFFListener.hxx:59
Internal and low level namespace to define the states of STOFFTextListener.
Definition: STOFFTextListener.cxx:68
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:50
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47