summaryrefslogtreecommitdiff
path: root/src/rtfformatting.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-04-19 17:24:24 +0000
committerStef Walter <stef@memberwebs.com>2005-04-19 17:24:24 +0000
commit6fab96c700f8a15b486c292e70c8fdb5d31121b2 (patch)
tree0262fbfd99f0954bed556599a6daaf983c566b6c /src/rtfformatting.h
parentc91a548602ca74b5989eb046bc9c906b81e0ae20 (diff)
Added support for character styles.
Diffstat (limited to 'src/rtfformatting.h')
-rw-r--r--src/rtfformatting.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/rtfformatting.h b/src/rtfformatting.h
index aa5ac58..3085198 100644
--- a/src/rtfformatting.h
+++ b/src/rtfformatting.h
@@ -70,7 +70,8 @@ public:
m_color == format.m_color &&
m_suscript == format.m_suscript &&
m_font == format.m_font &&
- m_fsize == format.m_fsize;
+ m_fsize == format.m_fsize &&
+ m_charstyle == format.m_charstyle;
}
bool paraEquals(RtfFormatting& format) const
@@ -91,6 +92,7 @@ public:
m_suscript = format.m_suscript;
m_font = format.m_font;
m_fsize = format.m_fsize;
+ m_charstyle = format.m_charstyle;
m_style = format.m_style;
m_list = format.m_list;
@@ -105,6 +107,7 @@ public:
m_suscript = 0;
m_fsize = -1;
m_font = -1;
+ m_charstyle = -1;
}
void resetPara()
@@ -131,6 +134,8 @@ public:
{ return m_font; }
int textFontSize() const
{ return m_fsize; }
+ int textStyle()
+ { return m_charstyle; }
int paraStyle() const
{ return m_style; }
int paraList() const
@@ -156,6 +161,8 @@ public:
{ m_font = font; }
void textSetFontSize(int fsize)
{ m_fsize = fsize == 24 ? -1 : fsize; } // default font size is always 24
+ void textSetStyle(int style)
+ { m_charstyle = style; }
void paraSetStyle(int style)
{ m_style = style; }
void paraSetList(int list)
@@ -179,12 +186,11 @@ protected:
int m_color;
int m_font;
int m_fsize;
+ int m_charstyle;
int m_style;
int m_list;
bool m_inTbl;
-
- // TODO: Character styles
};
#endif // __RTFFORMATTING_H__