/*
 * HTMLAccountReport.h - TaskJuggler
 *
 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@suse.de>
 *
 * 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: HTMLAccountReport.cpp 1128 2005-08-06 16:05:28Z cs $
 */

#include <qfile.h>

#include "tjlib-internal.h"
#include "HTMLAccountReport.h"
#include "HTMLAccountReportElement.h"

#define KW(a) a

HTMLAccountReport::HTMLAccountReport(Project* p, const QString& f,
                                     const QString& df, int dl) :
    HTMLReport(p, f, df, dl)
{
    tab = new HTMLAccountReportElement(this, df, dl);
}

HTMLAccountReport::~HTMLAccountReport()
{
    delete tab;
}

bool
HTMLAccountReport::generate()
{
    if (!open())
        return FALSE;

    generateHeader(i18n("Account Report"));
    tab->generate();
    generateFooter();

    f.close();
    return TRUE;
}

