00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SCHEDITDOCBOX_H
00022 #define SCHEDITDOCBOX_H
00023
00024 #include <qpen.h>
00025 #include <qcanvas.h>
00026
00027 #include "colourfont.h"
00028 #include "labelini.h"
00029 #include "doscolourbox.h"
00030 #include "spinvalue.h"
00031 #include "scheditprefs.h"
00032 #include "scheditline.h"
00033 #include "scheditfontprefs.h"
00034
00035 class KDialogBase;
00036 class KConfig;
00037
00038 class ColourValuePref;
00039
00043 class ScheditDocBox : public QCanvasRectangle {
00044 public:
00045
00046
00047
00048
00049
00050 private:
00051 #pragma pack (push,1)
00052 typedef struct {
00053 unsigned char ucType;
00054 unsigned short int usStartX;
00055 unsigned short int usStartY;
00056 unsigned short int usEndX;
00057 unsigned short int usEndY;
00058 unsigned char aucScrap1 [3];
00059 unsigned char ucLines;
00060 unsigned char aucScrap2 [3];
00061 } DocBoxHdr;
00062 #pragma pack (pop)
00063
00064 DocBoxHdr header;
00065 char * pText;
00066 int iLength;
00067 QStringList * sl;
00068
00069 static ScheditFontPrefs * lpFont;
00070 static ColourValuePref * lpLine;
00071
00072 public:
00073 ScheditDocBox ( QCanvas * canvas,
00074 unsigned char * & puc );
00075
00076
00077
00078 int rtti () const;
00079
00080 virtual void draw ( QPainter& painter );
00081
00082 static void setup ( KDialogBase * dlg );
00083
00084 static void readProperties ( KConfig * config );
00085
00086 static void writeProperties ( KConfig * config );
00087 };
00088
00089 #endif