KReport

KoOdtFrameReportDocument.h
1/* This file is part of the KDE project
2 Copyright (C) 2010 by Adam Pigg (adam@piggz.co.uk)
3 Copyright (C) 2011, 2012 by Dag Andersen (danders@get2net.dk)
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KOODTFRAMEREPORTDOCUMENT_H
22#define KOODTFRAMEREPORTDOCUMENT_H
23
24#include <QFile>
25#include <QMap>
26#include <QList>
27
28#include "reportpageoptions.h"
29
30class KoOdfWriteStore;
31class KoXmlWriter;
32class KoOdtFrameReportPrimitive;
33class KoGenStyles;
34
35class OROSection;
36
37class KoOdtFrameReportDocument
38{
39public:
40 KoOdtFrameReportDocument();
41 ~KoOdtFrameReportDocument();
42
43 void startTable(OROSection *section);
44 void addPrimitive(KoOdtFrameReportPrimitive *data);
45 void setPageOptions(const ReportPageOptions &pageOptions);
46 QFile::FileError saveDocument(const QString&);
47
48private:
49 void createStyles(KoGenStyles *coll);
50 bool createContent(KoOdfWriteStore* odfStore, KoGenStyles *coll);
51 void createPages(KoXmlWriter* bodyWriter, KoGenStyles *coll);
52
53 KoXmlWriter* manifestWriter;
54 ReportPageOptions m_pageOptions;
55
57};
58
59#endif // KOODTFRAMESREPORTDOCUMENT_H
Represents a single a single row in a document and may contain zero or more OROPrimitives.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:50:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.