1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
/*
* HTMLReport.h - TaskJuggler
*
* Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* $Id: HTMLReport.h 1259 2006-01-31 12:04:00Z cs $
*/
#ifndef _HTMLReport_h_
#define _HTMLReport_h_
#include <stdio.h>
#include <time.h>
#include <qstring.h>
#include "Report.h"
#include "HTMLPrimitives.h"
class Project;
class ExpressionTree;
/**
* @short Stores all information about an HTML report.
* @author Chris Schlaeger <cs@kde.org>
*/
class HTMLReport : public Report, public HTMLPrimitives
{
public:
HTMLReport(Project* p, const QString& f, const QString& df, int dl);
virtual ~HTMLReport() { }
virtual const char* getType() const { return "HTMLReport"; }
void generateHeader(const QString& title);
void generateFooter();
void setRawStyleSheet(const QString& ss)
{
rawStyleSheet = ss;
}
bool hasStyleSheet() const { return !rawStyleSheet.isEmpty(); }
void setRawHead(const QString& head)
{
rawHead = head;
}
void setRawTail(const QString& tail)
{
rawTail = tail;
}
protected:
HTMLReport() { }
QString rawStyleSheet;
QString rawHead;
QString rawTail;
} ;
#endif
|