/usr/include/openrpt/OpenRPT/renderer/openreports.h is in libopenrpt-dev 3.3.12-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | /*
* OpenRPT report writer and rendering engine
* Copyright (C) 2001-2014 by OpenMFG, LLC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* Please contact info@openmfg.com with any questions on this license.
*/
/*
* This file contains the class definitions used for rendering reports
* and is based largely on top of the openReports.h file done by Jeffrey Lyon.
*/
#ifndef __ORRENDERER_H__
#define __ORRENDERER_H__
class orReportPrivate;
class QWidget;
class ParameterList;
#include <QDomDocument>
#include <QFont>
#include <QImage>
#include <QPainter>
#include <QPrinter>
#include <QSqlDatabase>
#include <QStringList>
class orReport {
private:
void constructor(const QString &);
orReportPrivate *_internal;
static QPrinter* multiPrinter;
static QPainter* multiPainter;
public:
orReport(QSqlDatabase = QSqlDatabase());
orReport(const QString &, QSqlDatabase = QSqlDatabase());
orReport(const QString &, const QStringList &, QSqlDatabase = QSqlDatabase());
orReport(const char *, const ParameterList &, QSqlDatabase = QSqlDatabase());
orReport(const QString &, const ParameterList &, QSqlDatabase = QSqlDatabase());
~orReport();
bool render(QPainter *, QPrinter * = 0);
bool print(QPrinter *prtThis = 0, bool boolSetupPrinter = true, bool showPreview = false, QWidget *parent = 0);
bool exportToPDF( const QString& fileName );
static bool beginMultiPrint(QPrinter *);
static bool beginMultiPrint(QPrinter *, bool & userCanceled);
static bool endMultiPrint(QPrinter *);
void setWatermarkText(const QString &);
void setWatermarkFont(const QFont &);
void setWatermarkOpacity(unsigned char); // 0..255 : default 25
QString watermarkText();
QFont watermarkFont();
unsigned char watermarkOpacity();
void setBackgroundImage(const QImage &);
void setBackgroundRect(const QRect &);
void setBackgroundRect(int, int, int, int);
void setBackgroundOpacity(unsigned char); // 0..255 : default 25
void setBackgroundAlignment(int); // Qt::AlignmentFlags
void setBackgroundScale(bool);
void setBackgroundScaleMode(Qt::AspectRatioMode);
QImage backgroundImage();
QRect backgroundRect();
unsigned char backgroundOpacity();
int backgroundAlignment();
bool backgroundScale();
Qt::AspectRatioMode backgroundScaleMode();
void setDatabase(QSqlDatabase);
bool setDom(const QDomDocument &docPReport);
void setParamList(const QStringList &);
void setParamList(const ParameterList &);
ParameterList getParamList();
bool isValid();
bool doesReportExist();
bool doParamsSatisfy();
bool satisfyParams(QWidget *);
int reportError(QWidget *);
};
#endif
|