2 * SVGReport.cpp - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
17 #include "SVGReport.h"
19 // #include <qptrdict.h>
21 // #include <klocale.h>
23 #include "tjlib-internal.h"
27 // Older versions of KDE do not have this macro
28 #ifndef KDE_IS_VERSION
29 #define KDE_IS_VERSION(a,b,c) 0
32 SVGReport::SVGReport(Project* p, const QString& file, const QString& defFile,
34 Report(p, file, defFile, dl)
36 // By default, use all scenarios.
38 for (ScenarioListIterator sli(project->getScenarioIterator()); *sli ; ++sli, ++i)
40 if ((*sli)->getEnabled())
44 taskSortCriteria[0] = CoreAttributesList::NameUp;
47 void SVGReport::inheritValues()
49 Report::inheritValues();
51 SVGReport* parent = dynamic_cast<SVGReport*>(getParentReport());
55 setCaption(parent->getCaption());