From ad2094feff861802c0d44ab3f5dbaf8e480866e8 Mon Sep 17 00:00:00 2001 From: Stef Date: Sat, 24 Jul 2004 00:45:18 +0000 Subject: - More work on font support - Addition of extras mode to XmlComposer --- 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 b718245..f2d0581 100644 --- a/src/rtfformatting.h +++ b/src/rtfformatting.h @@ -68,7 +68,9 @@ public: m_hidden == format.m_hidden && m_underline == format.m_underline && m_color == format.m_color && - m_suscript == format.m_suscript; + m_suscript == format.m_suscript && + m_font == format.m_font && + m_fsize == format.m_fsize; } bool paraEquals(RtfFormatting& format) const @@ -87,6 +89,8 @@ public: m_underline = format.m_underline; m_color = format.m_color; m_suscript = format.m_suscript; + m_font = format.m_font; + m_fsize = format.m_fsize; m_style = format.m_style; m_list = format.m_list; @@ -99,6 +103,8 @@ public: m_underline = m_hidden = false; m_color = -1; m_suscript = 0; + m_fsize = -1; + m_font = -1; } void resetPara() @@ -121,6 +127,10 @@ public: { return m_color; } int textSuScript() const { return m_suscript; } + int textFont() const + { return m_font; } + int textFontSize() const + { return m_fsize; } int paraStyle() const { return m_style; } int paraList() const @@ -142,6 +152,10 @@ public: { m_color = color; } void textSetSuScript(int suscript) { m_suscript = suscript; } + void textSetFont(int font) + { m_font = font; } + void textSetFontSize(int fsize) + { m_fsize = fsize; } void paraSetStyle(int style) { m_style = style; } void paraSetList(int list) @@ -163,6 +177,8 @@ protected: bool m_hidden; int m_suscript; int m_color; + int m_font; + int m_fsize; int m_style; int m_list; -- cgit v1.2.3