summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CDrawBuffer.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/CDrawBuffer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CDrawBuffer.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/noncore/apps/opie-reader/CDrawBuffer.h b/noncore/apps/opie-reader/CDrawBuffer.h
index 0d8968c..9ec0ed9 100644
--- a/noncore/apps/opie-reader/CDrawBuffer.h
+++ b/noncore/apps/opie-reader/CDrawBuffer.h
@@ -3,18 +3,12 @@
#include "StyleConsts.h"
#include "CBuffer.h"
#include "my_list.h"
+#include "linktype.h"
class QPainter;
-enum linkType
-{
- eNone,
- eLink,
- ePicture
-};
-
struct textsegment
{
int start;
CStyle style;
@@ -32,11 +26,14 @@ class CDrawBuffer : public CBuffer
int len;
FontControl* fc;
int m_maxstyle, m_ascent, m_descent, m_lineSpacing, m_lineExtraSpacing;
bool m_bEof;
+ bool m_bSop, m_bEop;
CDrawBuffer(const CDrawBuffer&);
CDrawBuffer& operator=(const tchar*sztmp);
public:
+ void setstartpara() { m_bSop = true; }
+ void setendpara() { m_bEop = true; }
int leftMargin();
int rightMargin();
void setEof() { m_bEof = true; }
bool eof() { return m_bEof; }
@@ -55,11 +52,11 @@ class CDrawBuffer : public CBuffer
{
empty();
}
*/
- int width(int numchars = -1);
- int offset(int);
- void render(QPainter* _p, int _y, bool _bMono, int _charWidth, int scw);
+ int width(int numchars = -1, bool onscreen = false, int scwidth = 0, unsigned char _border = 0);
+ int offset(int, unsigned char);
+ void render(QPainter* _p, int _y, bool _bMono, int _charWidth, int scw, unsigned char);
void empty();
void addch(tchar ch, CStyle _style);
void truncate(int);
void setright(CDrawBuffer&, int);