#include <IWORKText.h>
Public Member Functions | |
IWORKText (const IWORKLanguageManager &langManager, bool discardEmptyContent, bool allowListInsertion) | |
~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... | |
IWORKStylePtr_t | getLayoutStyle () |
returns the current layout style 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 | insertField (IWORKFieldType fieldType) |
void | openLink (const std::string &url) |
void | closeLink () |
void | insertText (const std::string &text) |
void | insertTab () |
void | insertSpace () |
void | insertColumnBreak () |
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, bool realParagraph=true) |
void | openSpan () |
void | closeSpan () |
Private Attributes | |
const IWORKLanguageManager & | m_langManager |
IWORKStyleStack | m_layoutStyleStack |
IWORKStyleStack | m_paraStyleStack |
IWORKOutputElements | m_elements |
bool | m_hasContent |
IWORKStylePtr_t | m_layoutStyle |
bool | m_inSection |
librevenge::RVNGPropertyList | m_sectionProps |
bool | m_checkedSection |
IWORKStylePtr_t | m_listStyle |
IWORKStylePtr_t | m_previousListStyle |
the previous list style More... | |
bool | m_listAllowed |
bool | m_listHasLevel0 |
flag to know if the list level 0 is defined More... | |
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 |
IWORKBreakType | m_breakDelayed |
bool | m_inPara |
bool | m_inListElement |
bool | m_ignoreEmptyPara |
bool | m_inLink |
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, | ||
bool | allowListInsertion | ||
) |
libetonyek::IWORKText::~IWORKText | ( | ) |
void libetonyek::IWORKText::closeLink | ( | ) |
Referenced by closePara(), openLink(), and libetonyek::IWAText::parse().
|
private |
Referenced by closeSection(), draw(), flushList(), flushParagraph(), and handleListLevelChange().
|
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.
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::flushList | ( | ) |
Flush the current list level(s).
Referenced by draw(), flushLayout(), insertBlockContent(), and 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().
IWORKStylePtr_t libetonyek::IWORKText::getLayoutStyle | ( | ) |
returns the current layout style
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::insertColumnBreak | ( | ) |
Referenced by libetonyek::IWAText::parse().
void libetonyek::IWORKText::insertField | ( | IWORKFieldType | fieldType | ) |
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 insertField(), 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.
Referenced by libetonyek::IWAText::parse().
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().
|
private |
Referenced by fillParaPropList(), insertColumnBreak(), and insertPageBreak().
|
mutableprivate |
Referenced by needsSection(), and setLayoutStyle().
|
private |
|
private |
|
private |
Referenced by flushParagraph(), and insertBlockContent().
|
private |
Referenced by closeLink(), closePara(), insertText(), and openLink().
|
private |
Referenced by handleListLevelChange(), and openPara().
|
private |
Referenced by closePara(), handleListLevelChange(), and openPara().
|
private |
Referenced by closePara(), closeSection(), draw(), flushList(), flushParagraph(), handleListLevelChange(), openLink(), openPara(), openSection(), and openSpan().
|
private |
Referenced by closeSection(), flushLayout(), insertBlockContent(), openPara(), and openSection().
|
private |
Referenced by closeLink(), closePara(), closeSpan(), flushParagraph(), flushSpan(), insertField(), 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 getLayoutStyle(), needsSection(), and setLayoutStyle().
|
private |
Referenced by needsSection(), and pushBaseLayoutStyle().
|
private |
Referenced by handleListLevelChange().
|
private |
flag to know if the list level 0 is defined
Referenced by openPara(), and setListStyle().
|
private |
Referenced by openPara(), and setListLevel().
|
private |
Referenced by handleListLevelChange(), and setListStyle().
|
private |
Referenced by closeLink(), and openLink().
|
private |
Referenced by fillParaPropList(), handleListLevelChange(), openSpan(), and setParagraphStyle().
|
private |
Referenced by fillParaPropList(), handleListLevelChange(), openSpan(), and pushBaseParagraphStyle().
|
private |
the previous list style
Referenced by handleListLevelChange().
|
private |
Referenced by closeLink(), draw(), flushLayout(), flushList(), flushParagraph(), flushSpan(), getRecorder(), insertColumnBreak(), insertField(), 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().