00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef RTKOUTPUTHTML_H
00022 #define RTKOUTPUTHTML_H
00023
00024 #include <qfile.h>
00025 #include <qtextstream.h>
00026
00027 #include "rtkoutput.h"
00028
00029 namespace RTK {
00030
00031 class OutputHtml : public Output {
00032
00033 public:
00034 OutputHtml(const String& filename = String::null,
00035 PaperType papertype = A4, UnitsType units = dots,
00036 Measure sizex = 595, Measure sizey = 841, Measure marginleft = 0,
00037 Measure marginright = 0, Measure margintop = 0, Measure marginbottom = 0, int pageorientation = 0)
00038 :Output(papertype, units,
00039 sizex, sizey, marginleft,
00040 marginright, margintop, marginbottom, pageorientation),
00041 mFileName(filename)
00042
00043 {};
00044
00045 ~OutputHtml() {};
00046 int startReport(const Report &report);
00047 int endReport(const Report &report);
00048 Measure startPage();
00049 Measure endPage();
00050 Measure startSection(const Section §ion);
00051 Measure endSection(const Section §ion);
00052 Measure startObject(const Section §ion, const Object &object);
00053 Measure endObject(const Section §ion, const Object &object);
00054 Measure printObject(const Report &report, const Section §ion, const Object &object);
00055
00056
00057 public:
00059 const String& getFileName() const { return mFileName; };
00061 void setFileName(const String& filename) { mFileName = filename; };
00062 protected:
00063 String mFileName;
00064
00065
00066 private:
00067 QFile *pFile;
00068 };
00069
00070 };
00071
00072 #endif
00073