libetonyek::IWORKText Class Reference

#include <IWORKText.h>

Public Member Functions

 IWORKText (const IWORKLanguageManager &langManager, bool discardEmptyContent)
 
 ~IWORKText ()
 
void setRecorder (const std::shared_ptr< IWORKTextRecorder > &recorder)
 
const std::shared_ptr< IWORKTextRecorder > & getRecorder () const
 
void pushBaseLayoutStyle (const IWORKStylePtr_t &style)
 Set style used as base for all layout styles in this text. More...
 
void pushBaseParagraphStyle (const IWORKStylePtr_t &style)
 Set style used as base for all paragraph styles in this text. More...
 
void setLayoutStyle (const IWORKStylePtr_t &style)
 Set style used for the next layout. More...
 
void flushLayout ()
 Flush the current layout. More...
 
void setListStyle (const IWORKStylePtr_t &style)
 Set list style used for the next paragraph, if it is in a list. More...
 
void setListLevel (const unsigned level)
 Set the list level of the next paragraph, 0 meaning no list. More...
 
void flushList ()
 Flush the current list level(s). More...
 
void setParagraphStyle (const IWORKStylePtr_t &style)
 Set style used for the next paragraph. More...
 
void flushParagraph ()
 Flush the current paragraph. More...
 
void setSpanStyle (const IWORKStylePtr_t &style)
 Set style used for the next span. More...
 
void setLanguage (const IWORKStylePtr_t &style)
 Set language used for the next span. More...
 
void flushSpan ()
 Flush the current span. More...
 
void openLink (const std::string &url)
 
void closeLink ()
 
void insertText (const std::string &text)
 
void insertTab ()
 
void insertSpace ()
 
void insertLineBreak ()
 
void insertPageBreak ()
 
void insertInlineContent (const IWORKOutputElements &elements)
 
void insertBlockContent (const IWORKOutputElements &elements)
 
bool empty () const
 
void draw (IWORKOutputElements &elements)
 

Static Public Member Functions

static void fillCharPropList (const IWORKStyleStack &style, const IWORKLanguageManager &langManager, librevenge::RVNGPropertyList &props)
 

Private Member Functions

void openSection ()
 
void closeSection ()
 
bool needsSection () const
 
void handleListLevelChange (unsigned level)
 
void openPara ()
 
void closePara ()
 
void fillParaPropList (librevenge::RVNGPropertyList &propList)
 
void openSpan ()
 
void closeSpan ()
 

Private Attributes

const IWORKLanguageManagerm_langManager
 
IWORKStyleStack m_layoutStyleStack
 
IWORKStyleStack m_paraStyleStack
 
IWORKOutputElements m_elements
 
IWORKStylePtr_t m_layoutStyle
 
bool m_inSection
 
librevenge::RVNGPropertyList m_sectionProps
 
bool m_checkedSection
 
IWORKStylePtr_t m_listStyle
 
unsigned m_listLevel
 
unsigned m_inListLevel
 
std::stack< bool > m_isOrderedStack
 Saves info about the currently opened list levels being ordered or unordered. More...
 
IWORKStylePtr_t m_paraStyle
 
bool m_pageBreakDelayed
 
bool m_inPara
 
bool m_ignoreEmptyPara
 
IWORKStylePtr_t m_spanStyle
 
IWORKStylePtr_t m_langStyle
 
bool m_spanStyleChanged
 
bool m_inSpan
 
IWORKStylePtr_t m_oldSpanStyle
 
std::shared_ptr< IWORKTextRecorderm_recorder
 

Constructor & Destructor Documentation

◆ IWORKText()

libetonyek::IWORKText::IWORKText ( const IWORKLanguageManager langManager,
bool  discardEmptyContent 
)

◆ ~IWORKText()

libetonyek::IWORKText::~IWORKText ( )

Member Function Documentation

◆ closeLink()

void libetonyek::IWORKText::closeLink ( )

◆ closePara()

void libetonyek::IWORKText::closePara ( )
private

◆ closeSection()

void libetonyek::IWORKText::closeSection ( )
private

Referenced by flushLayout().

◆ closeSpan()

void libetonyek::IWORKText::closeSpan ( )
private

◆ draw()

void libetonyek::IWORKText::draw ( IWORKOutputElements elements)

◆ empty()

bool libetonyek::IWORKText::empty ( ) const

◆ fillCharPropList()

void libetonyek::IWORKText::fillCharPropList ( const IWORKStyleStack style,
const IWORKLanguageManager langManager,
librevenge::RVNGPropertyList &  props 
)
static

◆ fillParaPropList()

void libetonyek::IWORKText::fillParaPropList ( librevenge::RVNGPropertyList &  propList)
private

Referenced by handleListLevelChange(), and openPara().

◆ flushLayout()

void libetonyek::IWORKText::flushLayout ( )

Flush the current layout.

◆ flushList()

void libetonyek::IWORKText::flushList ( )

Flush the current list level(s).

Referenced by libetonyek::IWAText::parse().

◆ flushParagraph()

void libetonyek::IWORKText::flushParagraph ( )

Flush the current paragraph.

Referenced by libetonyek::IWAText::parse().

◆ flushSpan()

void libetonyek::IWORKText::flushSpan ( )

Flush the current span.

Referenced by libetonyek::IWAText::parse().

◆ getRecorder()

const std::shared_ptr< IWORKTextRecorder > & libetonyek::IWORKText::getRecorder ( ) const

◆ handleListLevelChange()

void libetonyek::IWORKText::handleListLevelChange ( unsigned  level)
private

◆ insertBlockContent()

void libetonyek::IWORKText::insertBlockContent ( const IWORKOutputElements elements)

◆ insertInlineContent()

void libetonyek::IWORKText::insertInlineContent ( const IWORKOutputElements elements)

◆ insertLineBreak()

void libetonyek::IWORKText::insertLineBreak ( )

◆ insertPageBreak()

void libetonyek::IWORKText::insertPageBreak ( )

◆ insertSpace()

void libetonyek::IWORKText::insertSpace ( )

◆ insertTab()

void libetonyek::IWORKText::insertTab ( )

◆ insertText()

void libetonyek::IWORKText::insertText ( const std::string &  text)

◆ needsSection()

bool libetonyek::IWORKText::needsSection ( ) const
private

Referenced by insertBlockContent(), and openPara().

◆ openLink()

void libetonyek::IWORKText::openLink ( const std::string &  url)

◆ openPara()

void libetonyek::IWORKText::openPara ( )
private

Referenced by flushParagraph(), openLink(), and openSpan().

◆ openSection()

void libetonyek::IWORKText::openSection ( )
private

Referenced by insertBlockContent(), and openPara().

◆ openSpan()

void libetonyek::IWORKText::openSpan ( )
private

◆ pushBaseLayoutStyle()

void libetonyek::IWORKText::pushBaseLayoutStyle ( const IWORKStylePtr_t style)

Set style used as base for all layout styles in this text.

◆ pushBaseParagraphStyle()

void libetonyek::IWORKText::pushBaseParagraphStyle ( const IWORKStylePtr_t style)

Set style used as base for all paragraph styles in this text.

◆ setLanguage()

void libetonyek::IWORKText::setLanguage ( const IWORKStylePtr_t style)

Set language used for the next span.

Referenced by libetonyek::IWAText::parse().

◆ setLayoutStyle()

void libetonyek::IWORKText::setLayoutStyle ( const IWORKStylePtr_t style)

Set style used for the next layout.

◆ setListLevel()

void libetonyek::IWORKText::setListLevel ( const unsigned  level)

Set the list level of the next paragraph, 0 meaning no list.

Referenced by libetonyek::IWAText::parse().

◆ setListStyle()

void libetonyek::IWORKText::setListStyle ( const IWORKStylePtr_t style)

Set list style used for the next paragraph, if it is in a list.

Referenced by libetonyek::IWAText::parse().

◆ setParagraphStyle()

void libetonyek::IWORKText::setParagraphStyle ( const IWORKStylePtr_t style)

Set style used for the next paragraph.

Referenced by libetonyek::IWAText::parse().

◆ setRecorder()

void libetonyek::IWORKText::setRecorder ( const std::shared_ptr< IWORKTextRecorder > &  recorder)

◆ setSpanStyle()

void libetonyek::IWORKText::setSpanStyle ( const IWORKStylePtr_t style)

Set style used for the next span.

Referenced by libetonyek::IWAText::parse().

Member Data Documentation

◆ m_checkedSection

bool libetonyek::IWORKText::m_checkedSection
mutableprivate

Referenced by needsSection(), and setLayoutStyle().

◆ m_elements

◆ m_ignoreEmptyPara

bool libetonyek::IWORKText::m_ignoreEmptyPara
private

◆ m_inListLevel

unsigned libetonyek::IWORKText::m_inListLevel
private

◆ m_inPara

◆ m_inSection

bool libetonyek::IWORKText::m_inSection
private

◆ m_inSpan

◆ m_isOrderedStack

std::stack<bool> libetonyek::IWORKText::m_isOrderedStack
private

Saves info about the currently opened list levels being ordered or unordered.

Referenced by handleListLevelChange(), and ~IWORKText().

◆ m_langManager

const IWORKLanguageManager& libetonyek::IWORKText::m_langManager
private

Referenced by openSpan().

◆ m_langStyle

IWORKStylePtr_t libetonyek::IWORKText::m_langStyle
private

Referenced by openSpan(), and setLanguage().

◆ m_layoutStyle

IWORKStylePtr_t libetonyek::IWORKText::m_layoutStyle
private

Referenced by needsSection(), and setLayoutStyle().

◆ m_layoutStyleStack

IWORKStyleStack libetonyek::IWORKText::m_layoutStyleStack
private

◆ m_listLevel

unsigned libetonyek::IWORKText::m_listLevel
private

Referenced by flushList(), openPara(), and setListLevel().

◆ m_listStyle

IWORKStylePtr_t libetonyek::IWORKText::m_listStyle
private

◆ m_oldSpanStyle

IWORKStylePtr_t libetonyek::IWORKText::m_oldSpanStyle
private

Referenced by closeLink(), and openLink().

◆ m_pageBreakDelayed

bool libetonyek::IWORKText::m_pageBreakDelayed
private

◆ m_paraStyle

IWORKStylePtr_t libetonyek::IWORKText::m_paraStyle
private

◆ m_paraStyleStack

IWORKStyleStack libetonyek::IWORKText::m_paraStyleStack
private

◆ m_recorder

◆ m_sectionProps

librevenge::RVNGPropertyList libetonyek::IWORKText::m_sectionProps
mutableprivate

◆ m_spanStyle

IWORKStylePtr_t libetonyek::IWORKText::m_spanStyle
private

◆ m_spanStyleChanged

bool libetonyek::IWORKText::m_spanStyleChanged
private

The documentation for this class was generated from the following files:

Generated for libetonyek by doxygen 1.8.13