22#include <kgenericfactory.h>
24#include "kexiviewbase.h"
25#include "keximainwindow.h"
26#include "kexiproject.h"
27#include <kexipartitem.h>
28#include <kexidialogbase.h>
30#include <kexidb/connection.h>
31#include <kexidb/fieldlist.h>
32#include <kexidb/field.h>
36#include <widgetlibrary.h>
38#include <kexiformmanager.h>
39#include <kexiformpart.h>
41#include "kexireportview.h"
42#include "kexireportpart.h"
46KexiReportPart::KexiReportPart(TQObject *parent,
const char *name,
const TQStringList &l)
47 : KexiPart::Part(parent, name, l)
50 m_registeredPartID = (int)KexiPart::ReportObjectType;
52 kexipluginsdbg <<
"KexiReportPart::KexiReportPart()" << endl;
53 m_names[
"instanceName"]
54 = i18n(
"Translate this word using only lowercase alphanumeric characters (a..z, 0..9). "
55 "Use '_' character instead of spaces. First character should be a..z character. "
56 "If you cannot use latin characters in your language, use english word.",
58 m_names[
"instanceCaption"] = i18n(
"Report");
59 m_supportedViewModes = Kexi::DataViewMode | Kexi::DesignViewMode;
65 formManager =
new KexiFormManager(
this,
"kexi_form_and_report_manager");
69 TQStringList supportedFactoryGroups;
70 supportedFactoryGroups +=
"kexi-report";
72 formManager, supportedFactoryGroups);
73 static_reportsLibrary->setAdvancedPropertiesVisible(
false);
76KexiReportPart::~KexiReportPart()
82 return static_reportsLibrary;
86KexiReportPart::initPartActions()
91KexiReportPart::initInstanceActions()
100 return new KexiReportPart::TempData(dialog);
107 kexipluginsdbg <<
"KexiReportPart::createView()" << endl;
108 KexiMainWindow *win = dialog->mainWin();
122 if (englishMessage==
"Design of object \"%1\" has been modified.")
123 return i18n(
"Design of report \"%1\" has been modified.");
124 if (englishMessage==
"Object \"%1\" already exists.")
125 return i18n(
"Report \"%1\" already exists.");
126 return englishMessage;
131KexiReportPart::TempData::TempData(TQObject* parent)
136KexiReportPart::TempData::~TempData()
140#include "kexireportpart.moc"
Base class for child window of Kexi's main application window.
Privides temporary data shared between KexiDialogBase's views (KexiView's).
virtual KexiProject * project()=0
Project data of currently opened project or NULL if no project here yet.
Information about a single object that can be instantiated using Kexi Part.
TDEActionCollection * actionCollectionForMode(int viewMode) const
GUIClient * guiClient() const
KexiDB::Connection * dbConnection() const
static KFormDesigner::WidgetLibrary * library()
virtual KexiDialogTempData * createTempData(KexiDialogBase *dialog)
virtual TQString i18nMessage(const TQCString &englishMessage, KexiDialogBase *dlg) const
virtual KexiViewBase * createView(TQWidget *parent, KexiDialogBase *dialog, KexiPart::Item &item, int viewMode=Kexi::DataViewMode, TQMap< TQString, TQString > *staticObjectArgs=0)
Base class for single view embeddable of in KexiDialogBase.