KReport

KReportItemWeb.h
1/* This file is part of the KDE project
2 Copyright Shreya Pandit <shreya@shreyapandit.com>
3 Copyright 2011 Adam Pigg <adam@piggz.co.uk>
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 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 KREPORTITEMWEB_H
22#define KREPORTITEMWEB_H
23
24#include <KReportAsyncItemBase>
25#include <KReportDataSource>
26
27#include <QGraphicsScene>
28#include <QUrl>
29#include <QDomNode>
30
31class QUrl;
32class QWebPage;
33
34namespace Scripting
35{
36class Web;
37}
38
39/**
40*/
41class KReportItemWeb : public KReportAsyncItemBase
42{
44public:
45 KReportItemWeb();
46 explicit KReportItemWeb(const QDomNode &element);
47 ~KReportItemWeb() override;
48
49 QString typeName() const override;
50 int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KReportScriptHandler *script) override;
51
52private Q_SLOTS:
53 void loadFinished(bool);
54
55private:
56 bool m_rendering;
57 OROPage *m_targetPage;
58 OROSection *m_targetSection;
59 QPointF m_targetOffset;
60
61protected:
62 void createProperties() override;
63
64 QWebPage *m_webPage;
65
66 friend class Scripting::Web;
67};
68
69#endif
Base class for items that are drawn asyncronously due to unknown loading times.
Represents a single page in a document and may contain zero or more OROPrimitive objects all of which...
Represents a single a single row in a document and may contain zero or more OROPrimitives.
Field item script interface.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.