kexi

kexireportpart.h
1/* This file is part of the KDE project
2 Copyright (C) 2004 Lucijan Busch <lucijan@kde.org>
3 Copyright (C) 2004 Cedric Pasteur <cedric.pasteur@free.fr>
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 KEXIREPORTPART_H
22#define KEXIREPORTPART_H
23
24#include <kexi.h>
25#include <kexipart.h>
26#include <kexidialogbase.h>
27
28namespace KFormDesigner
29{
30 class FormManager;
31 class WidgetLibrary;
32 class Form;
33}
34
35namespace KexiDB
36{
37 class FieldList;
38}
39
42class KEXIREPORTUTILS_EXPORT KexiReportPart : public KexiPart::Part
43{
44 TQ_OBJECT
45
46
47 public:
48 KexiReportPart(TQObject *parent, const char *name, const TQStringList &);
49 virtual ~KexiReportPart();
50
53
54// KFormDesigner::FormManager *manager() { return m_manager; }
55
56 void generateForm(KexiDB::FieldList *list, TQDomDocument &domDoc);
57
58 class TempData : public KexiDialogTempData
59 {
60 public:
61 TempData(TQObject* parent);
62 ~TempData();
63 TQGuardedPtr<KFormDesigner::Form> form;
64 TQGuardedPtr<KFormDesigner::Form> previewForm;
65 TQString tempForm;
66 TQPoint scrollViewContentsPos;
67 int resizeMode;
68 };
69
70 virtual TQString i18nMessage(const TQCString& englishMessage,
71 KexiDialogBase* dlg) const;
72
73 protected:
75
76 virtual KexiViewBase* createView(TQWidget *parent, KexiDialogBase* dialog,
77 KexiPart::Item &item, int viewMode = Kexi::DataViewMode, TQMap<TQString,TQString>* staticObjectArgs = 0);
78
79 virtual void initPartActions();
80 virtual void initInstanceActions();
81
82 static KFormDesigner::WidgetLibrary* static_reportsLibrary;
83
84 private:
85// TQGuardedPtr<KFormDesigner::FormManager> m_manager;
86};
87
88#endif
89
A class to manage (create/load/save) Forms.
Definition formmanager.h:73
A simple class representing a form.
Definition form.h:136
This class searches for factories and provides TDEActions for widget creation.
Base class for child window of Kexi's main application window.
Privides temporary data shared between KexiDialogBase's views (KexiView's).
Information about a single object that can be instantiated using Kexi Part.
The main class for kexi frontend parts like tables, queries, forms and reports.
Definition kexipart.h:66
virtual KexiDialogTempData * createTempData(KexiDialogBase *dialog)
Definition kexipart.cpp:393
virtual KexiViewBase * createView(TQWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, TQMap< TQString, TQString > *staticObjectArgs=0)=0
virtual TQString i18nMessage(const TQCString &englishMessage, KexiDialogBase *dlg) const
Definition kexipart.cpp:398
static KFormDesigner::WidgetLibrary * library()
Base class for single view embeddable of in KexiDialogBase.
High-level database connectivity library with database backend drivers.