libetonyek::IWORKText Class Reference

#include <IWORKText.h>

List of all members.

Public Member Functions

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

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.
IWORKStylePtr_t m_paraStyle
bool m_inPara
bool m_ignoreEmptyPara
IWORKStylePtr_t m_spanStyle
IWORKStylePtr_t m_langStyle
bool m_spanStyleChanged
bool m_inSpan
IWORKStylePtr_t m_oldSpanStyle
boost::shared_ptr
< IWORKTextRecorder
m_recorder

Constructor & Destructor Documentation

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

Member Function Documentation

Referenced by flushLayout().

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

Referenced by handleListLevelChange(), and openPara().

Flush the current layout.

Flush the current list level(s).

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

Flush the current paragraph.

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

Flush the current span.

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

const boost::shared_ptr< IWORKTextRecorder > & libetonyek::IWORKText::getRecorder ( ) const
void libetonyek::IWORKText::handleListLevelChange ( unsigned  level) [private]
void libetonyek::IWORKText::insertText ( const std::string &  text)
bool libetonyek::IWORKText::needsSection ( ) const [private]

Referenced by insertBlockContent(), and openPara().

void libetonyek::IWORKText::openLink ( const std::string &  url)
void libetonyek::IWORKText::openPara ( ) [private]

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

Referenced by insertBlockContent(), and openPara().

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

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

Set language used for the next span.

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

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().

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

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

Set style used for the next paragraph.

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

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

Set style used for the next span.

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


Member Data Documentation

bool libetonyek::IWORKText::m_checkedSection [mutable, private]

Referenced by needsSection(), and setLayoutStyle().

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().

librevenge::RVNGPropertyList libetonyek::IWORKText::m_sectionProps [mutable, private]

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