diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kivio/kiviopart/kiviosdk/kivio_text_style.h | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio/kiviopart/kiviosdk/kivio_text_style.h')
-rw-r--r-- | kivio/kiviopart/kiviosdk/kivio_text_style.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/kivio/kiviopart/kiviosdk/kivio_text_style.h b/kivio/kiviopart/kiviosdk/kivio_text_style.h new file mode 100644 index 00000000..5ce3afe9 --- /dev/null +++ b/kivio/kiviopart/kiviosdk/kivio_text_style.h @@ -0,0 +1,56 @@ +#ifndef KIVIO_TEXT_STYLE_H +#define KIVIO_TEXT_STYLE_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <qfont.h> + +class QDomDocument; +class QPainter; + + +class KivioTextStyle +{ +protected: + QString m_text; // The text inside this shape + QColor m_color; // The text color + QFont m_font; // The text font + bool m_isHtml; // Is the text HTML formatted? + int m_hTextAlign, m_vTextAlign; // Horizontal and vertical text alignment flags + +public: + KivioTextStyle(); + virtual ~KivioTextStyle(); + + QDomElement saveXML( QDomDocument & ); + bool loadXML( const QDomElement & ); + + void copyInto( KivioTextStyle * ); + + + + + inline QString text() { return m_text; } + inline void setText( QString s ) { m_text=s; } + + inline QColor color() { return m_color; } + inline void setColor( QColor c ) { m_color=c; } + + inline QFont font() { return m_font; } + inline void setFont( QFont f ) { m_font=f; } + + inline bool isHtml() { return m_isHtml; } + inline void setIsHtml( bool b ) { m_isHtml=b; } + + inline int hTextAlign() { return m_hTextAlign; } + inline void setHTextAlign(int i) { m_hTextAlign=i; } + + inline int vTextAlign() { return m_vTextAlign; } + inline void setVTextAlign(int i) { m_vTextAlign=i; } + +}; + +#endif + |