Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

rtkoutputhtml.h

00001 /*<<<<<COPYRIGHT*/
00002 /*
00003  * RTK The report toolkit
00004  * Copyright (C) 2003 Francisco Santiago Capel Torres
00005 
00006  * rtkoutputhtml.h RTK HTML output object
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  */
00019 /*>>>>>COPYRIGHT*/
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 /*<<<<<OUTPUTFILE_CONSTRUCTOR*/
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 /*>>>>>OUTPUTFILE_CONSTRUCTOR*/
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 &section);
00051     Measure endSection(const Section &section);
00052     Measure startObject(const Section &section, const Object &object);
00053     Measure endObject(const Section &section, const Object &object);
00054     Measure printObject(const Report &report, const Section &section, const Object &object);
00055 
00056 /*<<<<<OUTPUTFILE_GETSET*/
00057 public:
00059         const String& getFileName() const { return mFileName; };
00061         void setFileName(const String& filename) { mFileName = filename; };
00062 protected:
00063         String mFileName;
00064 /*>>>>>OUTPUTFILE_GETSET*/
00065 
00066 private:
00067     QFile *pFile;
00068 };
00069 
00070 }; // namespace
00071 
00072 #endif
00073 

Generated on Tue Feb 22 14:44:37 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1