From 7f776ee854b84c51b471c69a702152feb5672bdb Mon Sep 17 00:00:00 2001 From: Stef Date: Sun, 11 Jul 2004 21:19:53 +0000 Subject: - Footnote support - Support for super and sub script --- src/rtfformatting.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/rtfformatting.h') 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 }; -- cgit v1.2.3