IWORKText.h Source File documentation

IWORKText.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libetonyek project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10 #ifndef IWORKTEXT_H_INCLUDED
11 #define IWORKTEXT_H_INCLUDED
12
13 #include "IWORKText_fwd.h"
14
15 #include <deque>
16 #include <stack>
17
18 #include <glm/glm.hpp>
19
20 #include <librevenge/librevenge.h>
21
22 #include "IWORKEnum.h"
23 #include "IWORKStyle_fwd.h"
24 #include "IWORKStyleStack.h"
25 #include "IWORKOutputElements.h"
26
27 namespace libetonyek
28 {
29
30 class IWORKLanguageManager;
31 class IWORKTextRecorder;
32
33 class IWORKText
34 {
35 public:
36 IWORKText(const IWORKLanguageManager &langManager, bool discardEmptyContent, bool allowListInsertion);
37 ~IWORKText();
38
39 void setRecorder(const std::shared_ptr<IWORKTextRecorder> &recorder);
40 const std::shared_ptr<IWORKTextRecorder> &getRecorder() const;
41
43 void pushBaseLayoutStyle(const IWORKStylePtr_t &style);
45 void pushBaseParagraphStyle(const IWORKStylePtr_t &style);
46
48 void setLayoutStyle(const IWORKStylePtr_t &style);
50 void flushLayout();
52 IWORKStylePtr_t getLayoutStyle();
53
55 void setListStyle(const IWORKStylePtr_t &style);
57 void setListLevel(const unsigned level);
59 void flushList();
60
62 void setParagraphStyle(const IWORKStylePtr_t &style);
64 void flushParagraph();
65
67 void setSpanStyle(const IWORKStylePtr_t &style);
69 void setLanguage(const IWORKStylePtr_t &style);
71 void flushSpan();
72
73 void insertField(IWORKFieldType fieldType);
74 void openLink(const std::string &url);
75 void closeLink();
76 void insertText(const std::string &text);
77 void insertTab();
78 void insertSpace();
79 void insertColumnBreak();
80 void insertLineBreak();
81 void insertPageBreak();
82
83 void insertInlineContent(const IWORKOutputElements &elements);
84 void insertBlockContent(const IWORKOutputElements &elements);
85
86 bool empty() const;
87
88 void draw(IWORKOutputElements &elements);
89
90 // utility function
91 static void fillCharPropList(const IWORKStyleStack &style, const IWORKLanguageManager &langManager, librevenge::RVNGPropertyList &props);
92
93 private:
94 void openSection();
95 void closeSection();
96 bool needsSection() const;
97
98 void handleListLevelChange(unsigned level);
99
100 void openPara();
101 void closePara();
102 void fillParaPropList(librevenge::RVNGPropertyList &propList, bool realParagraph=true);
103
104 void openSpan();
105 void closeSpan();
106
107 private:
108 const IWORKLanguageManager &m_langManager;
109
110 IWORKStyleStack m_layoutStyleStack;
111 IWORKStyleStack m_paraStyleStack;
112
113 IWORKOutputElements m_elements;
114
115 bool m_hasContent;
116 IWORKStylePtr_t m_layoutStyle;
117 bool m_inSection;
118 mutable librevenge::RVNGPropertyList m_sectionProps;
119 mutable bool m_checkedSection;
120
121 IWORKStylePtr_t m_listStyle;
123 IWORKStylePtr_t m_previousListStyle;
124 bool m_listAllowed;
126 bool m_listHasLevel0;
127 unsigned m_listLevel;
128 unsigned m_inListLevel;
130 std::stack<bool> m_isOrderedStack;
131
132 IWORKStylePtr_t m_paraStyle;
133 IWORKBreakType m_breakDelayed;
134 bool m_inPara;
135 bool m_inListElement;
136 bool m_ignoreEmptyPara;
137
138 bool m_inLink;
139 IWORKStylePtr_t m_spanStyle;
140 IWORKStylePtr_t m_langStyle;
141 bool m_spanStyleChanged;
142 bool m_inSpan;
143
144 IWORKStylePtr_t m_oldSpanStyle;
145
146 std::shared_ptr<IWORKTextRecorder> m_recorder;
147 };
148
149 }
150
151 #endif // IWORKTEXT_H_INCLUDED
152
153 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libetonyek::IWORKText::m_inListElement
bool m_inListElement
Definition: IWORKText.h:135
libetonyek::IWORKText::m_listStyle
IWORKStylePtr_t m_listStyle
Definition: IWORKText.h:121
libetonyek::IWORKOutputElements::addCloseSpan
void addCloseSpan()
Definition: IWORKOutputElements.cpp:953
libetonyek::IWORK_BREAK_PAGE
@ IWORK_BREAK_PAGE
Definition: IWORKEnum.h:54
libetonyek::IWORK_LABEL_NUM_FORMAT_SURROUNDING_NONE
@ IWORK_LABEL_NUM_FORMAT_SURROUNDING_NONE
Definition: IWORKEnum.h:137
libetonyek::IWORKOutputElements::addOpenOrderedListLevel
void addOpenOrderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1093
IWORKTextRecorder.h
libetonyek::IWORKText::openSpan
void openSpan()
Definition: IWORKText.cpp:1036
libetonyek::IWORKAlignment
IWORKAlignment
Definition: IWORKEnum.h:16
libetonyek::IWORK_BORDER_TYPE_NONE
@ IWORK_BORDER_TYPE_NONE
Definition: IWORKEnum.h:34
libetonyek::writeBorder
void writeBorder(const IWORKStroke &stroke, const char *const name, librevenge::RVNGPropertyList &props)
Definition: libetonyek_utils.cpp:286
libetonyek
Definition: IWORKBezierElement.cpp:20
libetonyek::IWORKText::setListStyle
void setListStyle(const IWORKStylePtr_t &style)
Set list style used for the next paragraph, if it is in a list.
Definition: IWORKText.cpp:621
libetonyek::IWORKOutputElements::addCloseUnorderedListLevel
void addCloseUnorderedListLevel()
Definition: IWORKOutputElements.cpp:973
libetonyek::IWORKLanguageManager
Definition: IWORKLanguageManager.h:23
libetonyek::IWORK_ALIGNMENT_RIGHT
@ IWORK_ALIGNMENT_RIGHT
Definition: IWORKEnum.h:19
libetonyek::IWORKToken::listStyle
@ listStyle
Definition: IWORKToken.h:307
libetonyek::IWORKText::m_langManager
const IWORKLanguageManager & m_langManager
Definition: IWORKText.h:108
libetonyek::IWORKText::m_layoutStyle
IWORKStylePtr_t m_layoutStyle
Definition: IWORKText.h:116
libetonyek::IWORKText::m_oldSpanStyle
IWORKStylePtr_t m_oldSpanStyle
Definition: IWORKText.h:144
IWORKEnum.h
libetonyek::IWORK_ALIGNMENT_AUTOMATIC
@ IWORK_ALIGNMENT_AUTOMATIC
Definition: IWORKEnum.h:22
libetonyek::IWORK_LABEL_NUM_FORMAT_ROMAN
@ IWORK_LABEL_NUM_FORMAT_ROMAN
Definition: IWORKEnum.h:131
m_initial
const int m_initial
Definition: IWORKText.cpp:415
IWORKProperties.h
libetonyek::IWORKToken::type
@ type
Definition: IWORKToken.h:486
libetonyek::IWORK_BORDER_TYPE_BOTTOM
@ IWORK_BORDER_TYPE_BOTTOM
Definition: IWORKEnum.h:36
libetonyek::IWORKText::fillParaPropList
void fillParaPropList(librevenge::RVNGPropertyList &propList, bool realParagraph=true)
Definition: IWORKText.cpp:1019
libetonyek::IWORKOutputElements::addOpenSection
void addOpenSection(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1103
libetonyek::IWORKText::draw
void draw(IWORKOutputElements &elements)
Definition: IWORKText.cpp:484
libetonyek::IWORKToken::alignment
@ alignment
Definition: IWORKToken.h:89
IWORKText_fwd.h
libetonyek::IWORKText::m_recorder
std::shared_ptr< IWORKTextRecorder > m_recorder
Definition: IWORKText.h:146
libetonyek::IWORKText::~IWORKText
~IWORKText()
Definition: IWORKText.cpp:530
libetonyek::IWORKText::insertPageBreak
void insertPageBreak()
Definition: IWORKText.cpp:889
libetonyek::IWORK_BORDER_TYPE_TOP
@ IWORK_BORDER_TYPE_TOP
Definition: IWORKEnum.h:35
libetonyek::IWORKOutputElements::addInsertField
void addInsertField(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1018
libetonyek::IWORKText::m_inLink
bool m_inLink
Definition: IWORKText.h:138
libetonyek::IWORK_BASELINE_NORMAL
@ IWORK_BASELINE_NORMAL
Definition: IWORKEnum.h:27
libetonyek::IWORKText::openPara
void openPara()
Definition: IWORKText.cpp:978
libetonyek::IWORK_BORDER_TYPE_TOP_AND_BOTTOM
@ IWORK_BORDER_TYPE_TOP_AND_BOTTOM
Definition: IWORKEnum.h:37
libetonyek::KEY1Token::level
@ level
Definition: KEY1Token.h:158
libetonyek::IWORKText::insertText
void insertText(const std::string &text)
Definition: IWORKText.cpp:806
libetonyek::IWORKOutputElements::addCloseLink
void addCloseLink()
Definition: IWORKOutputElements.cpp:928
libetonyek::IWORKText::insertField
void insertField(IWORKFieldType fieldType)
Definition: IWORKText.cpp:733
libetonyek::IWORKText::insertTab
void insertTab()
Definition: IWORKText.cpp:829
libetonyek::IWORKOutputElements::addCloseListElement
void addCloseListElement()
Definition: IWORKOutputElements.cpp:933
libetonyek::IWORKText::m_inListLevel
unsigned m_inListLevel
Definition: IWORKText.h:128
libetonyek::IWORK_LABEL_NUM_FORMAT_ALPHA
@ IWORK_LABEL_NUM_FORMAT_ALPHA
Definition: IWORKEnum.h:129
ETONYEK_DEBUG_MSG
#define ETONYEK_DEBUG_MSG(M)
Definition: libetonyek_utils.h:54
libetonyek::IWORKText::m_sectionProps
librevenge::RVNGPropertyList m_sectionProps
Definition: IWORKText.h:118
libetonyek::IWORK_LABEL_NUM_FORMAT_SURROUNDING_DOT
@ IWORK_LABEL_NUM_FORMAT_SURROUNDING_DOT
Definition: IWORKEnum.h:139
libetonyek::IWORK_TABULATION_CENTER
@ IWORK_TABULATION_CENTER
Definition: IWORKEnum.h:154
libetonyek::IWORKText::closeSpan
void closeSpan()
Definition: IWORKText.cpp:1056
libetonyek::IWORKOutputElements::addCloseOrderedListLevel
void addCloseOrderedListLevel()
Definition: IWORKOutputElements.cpp:938
libetonyek::IWORKStyleStack
Representation of a dynamic inheritance of styles.
Definition: IWORKStyleStack.h:34
libetonyek::IWORKText::m_isOrderedStack
std::stack< bool > m_isOrderedStack
Saves info about the currently opened list levels being ordered or unordered.
Definition: IWORKText.h:130
libetonyek::IWORK_ALIGNMENT_CENTER
@ IWORK_ALIGNMENT_CENTER
Definition: IWORKEnum.h:20
IWORKLanguageManager.h
libetonyek::IWORKTabStops_t
std::deque< IWORKTabStop > IWORKTabStops_t
Definition: IWORKTypes.h:119
m_props
RVNGPropertyList *const m_props
Definition: IWORKText.cpp:423
libetonyek::IWORKFieldType
IWORKFieldType
Definition: IWORKEnum.h:142
libetonyek::IWORK_TABULATION_DECIMAL
@ IWORK_TABULATION_DECIMAL
Definition: IWORKEnum.h:155
libetonyek::IWORKText::flushSpan
void flushSpan()
Flush the current span.
Definition: IWORKText.cpp:721
libetonyek::IWORKOutputElements::clear
void clear()
Definition: IWORKOutputElements.cpp:883
libetonyek::IWORK_LABEL_NUM_FORMAT_ROMAN_LOWERCASE
@ IWORK_LABEL_NUM_FORMAT_ROMAN_LOWERCASE
Definition: IWORKEnum.h:132
libetonyek::IWORK_FIELD_PAGENUMBER
@ IWORK_FIELD_PAGENUMBER
Definition: IWORKEnum.h:147
libetonyek::IWORKText::m_paraStyleStack
IWORKStyleStack m_paraStyleStack
Definition: IWORKText.h:111
libetonyek::IWORKMediaContentPtr_t
std::shared_ptr< IWORKMediaContent > IWORKMediaContentPtr_t
Definition: IWORKTypes_fwd.h:54
libetonyek::IWORKToken::bullet
@ bullet
Definition: IWORKToken.h:651
libetonyek::IWORKText::m_inSection
bool m_inSection
Definition: IWORKText.h:117
libetonyek::IWORKText::insertBlockContent
void insertBlockContent(const IWORKOutputElements &elements)
Definition: IWORKText.cpp:909
libetonyek::IWORK_BASELINE_SUB
@ IWORK_BASELINE_SUB
Definition: IWORKEnum.h:28
libetonyek::IWORK_FIELD_FILENAME
@ IWORK_FIELD_FILENAME
Definition: IWORKEnum.h:145
libetonyek::IWORKText::insertInlineContent
void insertInlineContent(const IWORKOutputElements &elements)
Definition: IWORKText.cpp:901
libetonyek::IWORKText::getLayoutStyle
IWORKStylePtr_t getLayoutStyle()
returns the current layout style
Definition: IWORKText.cpp:567
libetonyek::IWORKStyleStack::has
bool has(const bool lookInParent=true) const
Definition: IWORKStyleStack.h:69
libetonyek::IWORKText::pushBaseParagraphStyle
void pushBaseParagraphStyle(const IWORKStylePtr_t &style)
Set style used as base for all paragraph styles in this text.
Definition: IWORKText.cpp:556
libetonyek::IWORKOutputElements::addInsertTab
void addInsertTab()
Definition: IWORKOutputElements.cpp:1033
libetonyek::pt2in
double pt2in(const double d)
Convert a length from points to inches.
Definition: libetonyek_utils.cpp:225
m_current
const IWORKListLevels_t::const_iterator m_current
Definition: IWORKText.cpp:414
libetonyek::IWORKToken::columns
@ columns
Definition: IWORKToken.h:154
libetonyek::IWORKText::pushBaseLayoutStyle
void pushBaseLayoutStyle(const IWORKStylePtr_t &style)
Set style used as base for all layout styles in this text.
Definition: IWORKText.cpp:545
libetonyek::IWORKToken::spacing
@ spacing
Definition: IWORKToken.h:609
libetonyek::IWORKText::empty
bool empty() const
Definition: IWORKText.cpp:919
libetonyek::IWORKText::handleListLevelChange
void handleListLevelChange(unsigned level)
Definition: IWORKText.cpp:924
libetonyek::IWORK_CAPITALIZATION_ALL_CAPS
@ IWORK_CAPITALIZATION_ALL_CAPS
Definition: IWORKEnum.h:60
libetonyek::IWORKOutputElements::addOpenParagraph
void addOpenParagraph(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1098
libetonyek::IWORKText::m_spanStyle
IWORKStylePtr_t m_spanStyle
Definition: IWORKText.h:139
libetonyek::IWORKText::setParagraphStyle
void setParagraphStyle(const IWORKStylePtr_t &style)
Set style used for the next paragraph.
Definition: IWORKText.cpp:669
libetonyek::IWORKText::closePara
void closePara()
Definition: IWORKText.cpp:1001
libetonyek::IWORKStyleStack::get
const IWORKPropertyInfo< Property >::ValueType & get(const bool lookInParent=true) const
Definition: IWORKStyleStack.h:85
IWORKPath.h
libetonyek::IWORKText::m_previousListStyle
IWORKStylePtr_t m_previousListStyle
the previous list style
Definition: IWORKText.h:123
libetonyek::IWORK_LABEL_NUM_FORMAT_SURROUNDING_PARENTHESIS
@ IWORK_LABEL_NUM_FORMAT_SURROUNDING_PARENTHESIS
Definition: IWORKEnum.h:138
libetonyek::IWORKOutputElements::addOpenLink
void addOpenLink(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1083
libetonyek::IWORKText::insertSpace
void insertSpace()
Definition: IWORKText.cpp:845
libetonyek::IWORK_BREAK_COLUMN
@ IWORK_BREAK_COLUMN
Definition: IWORKEnum.h:53
libetonyek::IWORKToken::image
@ image
Definition: IWORKToken.h:260
libetonyek::IWORK_BASELINE_SUPER
@ IWORK_BASELINE_SUPER
Definition: IWORKEnum.h:29
libetonyek::IWORKText::m_inPara
bool m_inPara
Definition: IWORKText.h:134
libetonyek::IWORKText::m_paraStyle
IWORKStylePtr_t m_paraStyle
Definition: IWORKText.h:132
libetonyek::IWORKText::m_layoutStyleStack
IWORKStyleStack m_layoutStyleStack
Definition: IWORKText.h:110
libetonyek::IWORKText::m_ignoreEmptyPara
bool m_ignoreEmptyPara
Definition: IWORKText.h:136
libetonyek::IWORKToken::string
@ string
Definition: IWORKToken.h:411
IWORKDocumentInterface.h
IWORKText.h
libetonyek::IWORKToken::angle
@ angle
Definition: IWORKToken.h:505
libetonyek::IWORKOutputElements::addOpenUnorderedListLevel
void addOpenUnorderedListLevel(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1128
libetonyek::IWORKText::setListLevel
void setListLevel(const unsigned level)
Set the list level of the next paragraph, 0 meaning no list.
Definition: IWORKText.cpp:646
libetonyek::IWORKToken::column
@ column
Definition: IWORKToken.h:152
libetonyek::IWORKText::m_breakDelayed
IWORKBreakType m_breakDelayed
Definition: IWORKText.h:133
libetonyek::IWORKOutputElements::addInsertText
void addInsertText(const librevenge::RVNGString &text)
Definition: IWORKOutputElements.cpp:1038
libetonyek::IWORKToken::style
@ style
Definition: IWORKToken.h:414
libetonyek::IWORK_CAPITALIZATION_TITLE
@ IWORK_CAPITALIZATION_TITLE
Definition: IWORKEnum.h:62
IWORKTypes.h
libetonyek::IWORKText::flushParagraph
void flushParagraph()
Flush the current paragraph.
Definition: IWORKText.cpp:680
libetonyek::IWORKOutputElements::append
void append(const IWORKOutputElements &elements)
Definition: IWORKOutputElements.cpp:871
libetonyek::IWORK_BORDER_TYPE_ALL
@ IWORK_BORDER_TYPE_ALL
Definition: IWORKEnum.h:38
libetonyek::IWORKText::setSpanStyle
void setSpanStyle(const IWORKStylePtr_t &style)
Set style used for the next span.
Definition: IWORKText.cpp:697
libetonyek::IWORKLabelNumFormatSurrounding
IWORKLabelNumFormatSurrounding
Definition: IWORKEnum.h:135
libetonyek::IWORKText::IWORKText
IWORKText(const IWORKLanguageManager &langManager, bool discardEmptyContent, bool allowListInsertion)
Definition: IWORKText.cpp:495
libetonyek::IWORK_TABULATION_LEFT
@ IWORK_TABULATION_LEFT
Definition: IWORKEnum.h:152
libetonyek::IWORKToken::tabs
@ tabs
Definition: IWORKToken.h:422
libetonyek::IWORKText::getRecorder
const std::shared_ptr< IWORKTextRecorder > & getRecorder() const
Definition: IWORKText.cpp:540
libetonyek::IWORK_ALIGNMENT_LEFT
@ IWORK_ALIGNMENT_LEFT
Definition: IWORKEnum.h:18
libetonyek::IWORK_CAPITALIZATION_NONE
@ IWORK_CAPITALIZATION_NONE
Definition: IWORKEnum.h:59
libetonyek::IWORKText::openLink
void openLink(const std::string &url)
Definition: IWORKText.cpp:765
libetonyek::IWORKText::m_spanStyleChanged
bool m_spanStyleChanged
Definition: IWORKText.h:141
libetonyek::IWORKBreakType
IWORKBreakType
Definition: IWORKEnum.h:49
libetonyek::IWORKText::closeLink
void closeLink()
Definition: IWORKText.cpp:790
IWORKOutputElements.h
libetonyek::IWORKLanguageManager::writeProperties
void writeProperties(const std::string &tag, librevenge::RVNGPropertyList &props) const
Definition: IWORKLanguageManager.cpp:243
libetonyek::IWORKToken::first
@ first
Definition: IWORKToken.h:524
libetonyek::IWORKOutputElements::addInsertLineBreak
void addInsertLineBreak()
Definition: IWORKOutputElements.cpp:1023
libetonyek::IWORKToken::stroke
@ stroke
Definition: IWORKToken.h:412
IWORKStyleStack.h
libetonyek::deg2rad
double deg2rad(double value)
Convert an angle from degrees to radians.
Definition: libetonyek_utils.cpp:230
libetonyek::IWORKOutputElements::addInsertSpace
void addInsertSpace()
Definition: IWORKOutputElements.cpp:1028
libetonyek::IWORKStylePtr_t
std::shared_ptr< IWORKStyle > IWORKStylePtr_t
Definition: IWORKStyle_fwd.h:21
libetonyek::IWORK_ALIGNMENT_JUSTIFY
@ IWORK_ALIGNMENT_JUSTIFY
Definition: IWORKEnum.h:21
libetonyek::IWORKListLevels_t
std::map< unsigned, IWORKStylePtr_t > IWORKListLevels_t
Definition: IWORKTypes.h:458
libetonyek::IWORKToken::s
@ s
Definition: IWORKToken.h:387
libetonyek::IWORK_LABEL_NUM_FORMAT_ALPHA_LOWERCASE
@ IWORK_LABEL_NUM_FORMAT_ALPHA_LOWERCASE
Definition: IWORKEnum.h:130
libetonyek::IWORKText::m_checkedSection
bool m_checkedSection
Definition: IWORKText.h:119
libetonyek::IWORKText::setLayoutStyle
void setLayoutStyle(const IWORKStylePtr_t &style)
Set style used for the next layout.
Definition: IWORKText.cpp:572
libetonyek::IWORKText::needsSection
bool needsSection() const
Definition: IWORKText.cpp:1064
libetonyek::IWORKOutputElements::addCloseParagraph
void addCloseParagraph()
Definition: IWORKOutputElements.cpp:943
libetonyek::IWORKText::m_langStyle
IWORKStylePtr_t m_langStyle
Definition: IWORKText.h:140
libetonyek::IWORKText::insertLineBreak
void insertLineBreak()
Definition: IWORKText.cpp:873
libetonyek::IWORKOutputElements::addCloseSection
void addCloseSection()
Definition: IWORKOutputElements.cpp:948
libetonyek::IWORKOutputElements::addOpenSpan
void addOpenSpan(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1108
libetonyek::IWORKOutputElements::addOpenListElement
void addOpenListElement(const librevenge::RVNGPropertyList &propList)
Definition: IWORKOutputElements.cpp:1088
libetonyek::IWORKText::flushList
void flushList()
Flush the current list level(s).
Definition: IWORKText.cpp:657
libetonyek::IWORKText::openSection
void openSection()
Definition: IWORKText.cpp:597
libetonyek::IWORKText::insertColumnBreak
void insertColumnBreak()
Definition: IWORKText.cpp:861
libetonyek::IWORKText::fillCharPropList
static void fillCharPropList(const IWORKStyleStack &style, const IWORKLanguageManager &langManager, librevenge::RVNGPropertyList &props)
Definition: IWORKText.cpp:79
libetonyek::IWORKStyleStack::pop
void pop()
Pop a style from the active styles stack.
Definition: IWORKStyleStack.cpp:40
libetonyek::IWORKText
Definition: IWORKText.h:33
libetonyek::IWORKToken::padding
@ padding
Definition: IWORKToken.h:343
libetonyek::IWORKText::m_listAllowed
bool m_listAllowed
Definition: IWORKText.h:124
libetonyek::IWORKText::setRecorder
void setRecorder(const std::shared_ptr< IWORKTextRecorder > &recorder)
Definition: IWORKText.cpp:535
libetonyek::get
const ValueT & get(const detail::IWAFieldImpl< TagV, ValueT, Reader > &field)
Definition: IWAField.h:190
libetonyek::IWORKText::setLanguage
void setLanguage(const IWORKStylePtr_t &style)
Set language used for the next span.
Definition: IWORKText.cpp:709
libetonyek::IWORK_FIELD_PAGECOUNT
@ IWORK_FIELD_PAGECOUNT
Definition: IWORKEnum.h:146
libetonyek::makeColor
librevenge::RVNGString makeColor(const IWORKColor &color)
Definition: libetonyek_utils.cpp:251
IWORKStyle_fwd.h
libetonyek::IWORKListLabelTypeInfo_t
boost::variant< bool, std::string, IWORKTextLabel, IWORKMediaContentPtr_t > IWORKListLabelTypeInfo_t
Definition: IWORKTypes.h:455
libetonyek::IWORK_FIELD_DATETIME
@ IWORK_FIELD_DATETIME
Definition: IWORKEnum.h:144
libetonyek::IWORKText::closeSection
void closeSection()
Definition: IWORKText.cpp:609
libetonyek::IWORK_BREAK_NONE
@ IWORK_BREAK_NONE
Definition: IWORKEnum.h:51
libetonyek::IWORKToken::geometry
@ geometry
Definition: IWORKToken.h:232
libetonyek::IWORK_CAPITALIZATION_SMALL_CAPS
@ IWORK_CAPITALIZATION_SMALL_CAPS
Definition: IWORKEnum.h:61
libetonyek::IWORK_TABULATION_RIGHT
@ IWORK_TABULATION_RIGHT
Definition: IWORKEnum.h:153
libetonyek::IWORKText::m_elements
IWORKOutputElements m_elements
Definition: IWORKText.h:113
libetonyek::IWORKToken::name
@ name
Definition: IWORKToken.h:578
libetonyek::IWORKText::m_listLevel
unsigned m_listLevel
Definition: IWORKText.h:127
libetonyek::IWORKText::m_hasContent
bool m_hasContent
Definition: IWORKText.h:115
libetonyek::IWORKText::m_inSpan
bool m_inSpan
Definition: IWORKText.h:142
libetonyek::IWORKText::m_listHasLevel0
bool m_listHasLevel0
flag to know if the list level 0 is defined
Definition: IWORKText.h:126
libetonyek::IWORKStyleStack::push
void push()
Push a style onto the active styles stack.
Definition: IWORKStyleStack.cpp:30
m_typeInfo
const IWORKListLabelTypeInfo_t & m_typeInfo
Definition: IWORKText.cpp:422
libetonyek::IWORK_LABEL_NUM_FORMAT_NUMERIC
@ IWORK_LABEL_NUM_FORMAT_NUMERIC
Definition: IWORKEnum.h:128
libetonyek::IWORKText::flushLayout
void flushLayout()
Flush the current layout.
Definition: IWORKText.cpp:585
libetonyek::IWORKOutputElements
Definition: IWORKOutputElements.h:32
libetonyek::IWORKToken::text
@ text
Definition: IWORKToken.h:465
libetonyek::IWORKToken::tab
@ tab
Definition: IWORKToken.h:421
m_geometry
const IWORKListLabelGeometry *const m_geometry
Definition: IWORKText.cpp:421