summaryrefslogtreecommitdiff
path: root/src/rtfformatting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rtfformatting.h')
-rw-r--r--src/rtfformatting.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/rtfformatting.h b/src/rtfformatting.h
index c98881b..6fbcf57 100644
--- a/src/rtfformatting.h
+++ b/src/rtfformatting.h
@@ -60,7 +60,8 @@ public:
m_strike == format.m_italic &&
m_hidden == format.m_hidden &&
m_underline == format.m_underline &&
- m_color == format.m_color;
+ m_color == format.m_color &&
+ m_suscript == format.m_suscript;
}
bool paraEquals(RtfFormatting& format) const
@@ -78,6 +79,7 @@ public:
m_hidden = format.m_hidden;
m_underline = format.m_underline;
m_color = format.m_color;
+ m_suscript = format.m_suscript;
m_style = format.m_style;
m_list = format.m_list;
@@ -89,6 +91,7 @@ public:
m_bold = m_italic = m_strike =
m_underline = m_hidden = false;
m_color = -1;
+ m_suscript = 0;
}
void resetPara()
@@ -109,6 +112,8 @@ public:
{ return m_hidden; }
int textColor() const
{ return m_color; }
+ int textSuScript() const
+ { return m_suscript; }
int paraStyle() const
{ return m_style; }
int paraList() const
@@ -128,6 +133,8 @@ public:
{ m_hidden = hidden; }
void textSetColor(int color)
{ m_color = color; }
+ void textSetSuScript(int suscript)
+ { m_suscript = suscript; }
void paraSetStyle(int style)
{ m_style = style; }
void paraSetList(int list)
@@ -135,17 +142,26 @@ public:
void paraSetTable(bool inTable)
{ m_inTbl = inTable; }
+ enum
+ {
+ SUPERSCRIPT = 1,
+ SUBSCRIPT
+ };
+
protected:
bool m_bold;
bool m_italic;
bool m_strike;
bool m_underline;
bool m_hidden;
+ int m_suscript;
int m_color;
int m_style;
int m_list;
bool m_inTbl;
+
+
// TODO: Character styles
};