KReport
KReportScriptHandler.cpp
65 KReportScriptHandler::Private::Private() : constants(new KReportScriptConstants), debug(new KReportScriptDebug), draw(new KReportScriptDraw)
73 KReportScriptHandler::KReportScriptHandler(const KReportDataSource* reportDataSource, KReportScriptSource* scriptSource, KReportDocument* reportDocument) : d(new Private())
97 //kreportDebug() << "Added" << d->sectionMap[sec]->objectName() << "to report" << d->reportData->name();
149 void KReportScriptHandler::slotEnteredSection(KReportSectionData *section, OROPage* cp, QPointF off)
170 msgBox.setText(tr("Cannot evaluate script. Error: %1\n\nDo you want to suppress further messages?\n(messages will be restored next time the report is opened)").arg(d->scriptValue.toString()));
198 w += QLatin1Char('(') + i.key() + QLatin1String(" = '") + i.value().toString() + QLatin1String("') AND ");
QMap::const_iterator constBegin() const const
void setDefaultButton(QPushButton *button)
QJSValue newQObject(QObject *object)
const T value(const Key &key, const T &defaultValue) const const
Helper for the scripting API to display user messages.
Definition: KReportScriptDebug.h:28
void chop(int n)
Helper giving access to various scripting constants.
Definition: KReportScriptConstants.h:30
QMessageBox::StandardButton warning(QWidget *parent, const QString &title, const QString &text, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton)
KReportSectionData is used to store the information about a specific report section.
Definition: KReportSectionData.h:44
Represents a single page in a document and may contain zero or more OROPrimitive objects all of which...
Definition: KReportRenderObjects.h:167
void setDetailedText(const QString &text)
void setStandardButtons(QMessageBox::StandardButtons buttons)
bool isError() const const
void setProperty(const QString &name, const QJSValue &value)
bool isEmpty() const const
QJSEngine * engine() const const
KGuiItem remove()
QJSValue evaluate(const QString &program, const QString &fileName, int lineNumber)
const Key key(const T &value, const Key &defaultKey) const const
QString & replace(int position, int n, QChar after)
QVariant toVariant() const const
virtual int exec() override
void setText(const QString &text)
QJSValue globalObject() const const
Top level report document definition. A KReportDocment defines the design of a document,...
Definition: KReportDocument.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.