#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 IWORKLanguageManager & | m_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< IWORKTextRecorder > | m_recorder |
libetonyek::IWORKText::IWORKText | ( | const IWORKLanguageManager & | langManager, |
bool | discardEmptyContent | ||
) |
libetonyek::IWORKText::~IWORKText | ( | ) |
void libetonyek::IWORKText::closeLink | ( | ) |
Referenced by libetonyek::IWAText::parse().
|
private |
Referenced by closeSection(), flushParagraph(), handleListLevelChange(), and insertBlockContent().
|
private |
Referenced by flushLayout().
|
private |
Referenced by closeLink(), closePara(), flushParagraph(), flushSpan(), insertLineBreak(), insertSpace(), insertTab(), insertText(), and openLink().
void libetonyek::IWORKText::draw | ( | IWORKOutputElements & | elements | ) |
bool libetonyek::IWORKText::empty | ( | ) | const |
|
static |
Referenced by libetonyek::IWORKTable::draw(), and openSpan().
|
private |
Referenced by handleListLevelChange(), and openPara().
void libetonyek::IWORKText::flushLayout | ( | ) |
Flush the current layout.
void libetonyek::IWORKText::flushList | ( | ) |
Flush the current list level(s).
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::flushParagraph | ( | ) |
Flush the current paragraph.
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::flushSpan | ( | ) |
Flush the current span.
Referenced by libetonyek::IWAText::parse().
const std::shared_ptr< IWORKTextRecorder > & libetonyek::IWORKText::getRecorder | ( | ) | const |
|
private |
Referenced by closeSection(), flushList(), openPara(), and openSection().
void libetonyek::IWORKText::insertBlockContent | ( | const IWORKOutputElements & | elements | ) |
void libetonyek::IWORKText::insertInlineContent | ( | const IWORKOutputElements & | elements | ) |
void libetonyek::IWORKText::insertLineBreak | ( | ) |
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::insertPageBreak | ( | ) |
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::insertSpace | ( | ) |
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::insertTab | ( | ) |
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::insertText | ( | const std::string & | text | ) |
|
private |
Referenced by insertBlockContent(), and openPara().
void libetonyek::IWORKText::openLink | ( | const std::string & | url | ) |
Referenced by libetonyek::IWAText::parse().
|
private |
Referenced by flushParagraph(), openLink(), and openSpan().
|
private |
Referenced by insertBlockContent(), and openPara().
|
private |
Referenced by insertInlineContent(), insertLineBreak(), insertSpace(), insertTab(), and insertText().
void libetonyek::IWORKText::pushBaseLayoutStyle | ( | const IWORKStylePtr_t & | style | ) |
Set style used as base for all layout styles in this text.
void libetonyek::IWORKText::pushBaseParagraphStyle | ( | const IWORKStylePtr_t & | style | ) |
Set style used as base for all paragraph styles in this text.
void libetonyek::IWORKText::setLanguage | ( | const IWORKStylePtr_t & | style | ) |
Set language used for the next span.
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::setLayoutStyle | ( | const IWORKStylePtr_t & | style | ) |
Set style used for the next layout.
void libetonyek::IWORKText::setListLevel | ( | const unsigned | level | ) |
Set the list level of the next paragraph, 0 meaning no list.
Referenced by libetonyek::IWAText::parse().
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().
void libetonyek::IWORKText::setParagraphStyle | ( | const IWORKStylePtr_t & | style | ) |
Set style used for the next paragraph.
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::setRecorder | ( | const std::shared_ptr< IWORKTextRecorder > & | recorder | ) |
void libetonyek::IWORKText::setSpanStyle | ( | const IWORKStylePtr_t & | style | ) |
Set style used for the next span.
Referenced by libetonyek::IWAText::parse().
|
mutableprivate |
Referenced by needsSection(), and setLayoutStyle().
|
private |
|
private |
Referenced by flushParagraph(), and insertBlockContent().
|
private |
Referenced by closePara(), handleListLevelChange(), and openPara().
|
private |
Referenced by closePara(), closeSection(), flushParagraph(), handleListLevelChange(), insertBlockContent(), openLink(), openPara(), openSection(), and openSpan().
|
private |
Referenced by closeSection(), flushLayout(), insertBlockContent(), openPara(), and openSection().
|
private |
Referenced by closeLink(), closePara(), closeSpan(), flushParagraph(), flushSpan(), insertInlineContent(), insertLineBreak(), insertSpace(), insertTab(), insertText(), openLink(), and openSpan().
|
private |
Saves info about the currently opened list levels being ordered or unordered.
Referenced by handleListLevelChange(), and ~IWORKText().
|
private |
Referenced by openSpan().
|
private |
Referenced by openSpan(), and setLanguage().
|
private |
Referenced by needsSection(), and setLayoutStyle().
|
private |
Referenced by needsSection(), and pushBaseLayoutStyle().
|
private |
Referenced by flushList(), openPara(), and setListLevel().
|
private |
Referenced by handleListLevelChange(), and setListStyle().
|
private |
Referenced by closeLink(), and openLink().
|
private |
Referenced by fillParaPropList(), and insertPageBreak().
|
private |
Referenced by fillParaPropList(), handleListLevelChange(), openSpan(), and setParagraphStyle().
|
private |
Referenced by fillParaPropList(), handleListLevelChange(), openSpan(), and pushBaseParagraphStyle().
|
private |
Referenced by closeLink(), flushLayout(), flushList(), flushParagraph(), flushSpan(), getRecorder(), insertLineBreak(), insertPageBreak(), insertSpace(), insertTab(), insertText(), openLink(), pushBaseLayoutStyle(), pushBaseParagraphStyle(), setLanguage(), setLayoutStyle(), setListLevel(), setListStyle(), setParagraphStyle(), setRecorder(), and setSpanStyle().
|
mutableprivate |
Referenced by needsSection(), openSection(), and setLayoutStyle().
|
private |
Referenced by closeLink(), openLink(), openSpan(), and setSpanStyle().
|
private |
Referenced by insertLineBreak(), insertSpace(), insertTab(), insertText(), openSpan(), setLanguage(), and setSpanStyle().