Diffstat (limited to 'noncore/apps/opie-reader/StyleConsts.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/StyleConsts.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/StyleConsts.h b/noncore/apps/opie-reader/StyleConsts.h index 8e23c6f..4b7ff4b 100644 --- a/noncore/apps/opie-reader/StyleConsts.h +++ b/noncore/apps/opie-reader/StyleConsts.h @@ -37,16 +37,18 @@ enum EalignmentType { m_AlignLeft, m_AlignRight, m_AlignCentre, - m_AlignJustify + m_AlignJustify, + m_AlignNone }; class CBasicStyle { friend class CStyle; bool m_bold, m_italic; + unsigned long m_table; int m_fontsize; EalignmentType m_align; unsigned char red, green, blue; unsigned char bred, bgreen, bblue; @@ -63,8 +65,9 @@ class CBasicStyle signed char m_voffset; CBasicStyle() { unset(); + m_table = 0xffffffff; } bool operator!=(const CBasicStyle& rhs) { return (memcmp(this, &rhs, sizeof(CBasicStyle)) != 0); @@ -145,8 +148,11 @@ class CStyle // CStyle(CStyle&); CStyle(const CStyle&); CStyle& operator=(const CStyle&); void unset(); + bool isTable() const { return (sty.m_table != 0xffffffff); } + void setTable(unsigned long _b) { sty.m_table = _b; } + unsigned long getTable() { return sty.m_table; } bool isPicture() const { return (graphic != NULL); } bool canScale() const { return graphic->m_isScaleable; } void clearPicture(); void setPicture(bool canScale, QImage* _g, bool il=false, unsigned long tgt=0); @@ -186,8 +192,12 @@ class CStyle void setFullJustify() { sty.m_align = m_AlignJustify; } + void setNoJustify() + { + sty.m_align = m_AlignNone; + } StyleType getJustify() { return sty.m_align; } |