MagicSmoke
$VERSION$
|
displays an order and allows the user to execute several commands on it More...
#include <billrender.h>
Public Member Functions | |
MBillRenderer (const MOOrder &, const MTemplate &) | |
creates the order renderer More... | |
Public Member Functions inherited from MOdtRenderer | |
MOdtRenderer (MTemplate file) | |
instantiates a renderer loaded from template file More... | |
virtual | ~MOdtRenderer () |
deletes the renderer More... | |
FileFormat | fileFormat () const |
returns the format of the file More... | |
virtual void | renderToFile (QString file) |
starts the internal rendering routine and outputs to file More... | |
virtual void | renderToFile (QFile &file, bool preventOpen=false) |
starts the internal rendering routine and outputs to file More... | |
virtual QString | renderToPdf () |
like renderToPrinter, but renders to PDF, returns the PDF file name More... | |
virtual void | renderToPrinter () |
starts the internal rendering routine and outputs to printer (calls OpenOffice to print) More... | |
Protected Member Functions | |
int | getLoopIterations (QString loopname) override |
callback for bill generator: loops; see MOdtSignalRenderer for details More... | |
QVariant | getLoopVariable (QString, int, QString) |
callback for bill generator: loop variables; see MOdtSignalRenderer for details More... | |
QVariant | getVariable (QString) override |
callback for bill generator: variables; see MOdtSignalRenderer for details More... | |
void | setLoopIteration (QString loopname, int iteration) override |
callback to set values of a specific loop iteration More... | |
Additional Inherited Members | |
Public Types inherited from MOdtRenderer | |
enum | FileFormat { FileFormat::None, FileFormat::Version2, FileFormat::ConvertedV1 } |
format of the file represented by this renderer More... | |
Static Public Member Functions inherited from MOdtRenderer | |
static QByteArray | convertV1toV2 (const QByteArray &) |
helper routine: converts a V1 template to V2 you have to make sure to not do a double conversion on an already converted document More... | |
displays an order and allows the user to execute several commands on it
creates the order renderer
References compare(), MOTicketAbstract::MaskPay, MOOrderAbstract::tickets, and MOOrderAbstract::vouchers.
|
overrideprotectedvirtual |
callback for bill generator: loops; see MOdtSignalRenderer for details
Implements MOdtRenderer.
Referenced by setLoopIteration().
|
protected |
callback for bill generator: loop variables; see MOdtSignalRenderer for details
Referenced by getVariable().
|
overrideprotectedvirtual |
callback for bill generator: variables; see MOdtSignalRenderer for details
Implements MOdtRenderer.
References MOOrderAbstract::amountpaid, MOOrderAbstract::comments, MOOrderAbstract::customer, MOOrderAbstract::customerid, getLoopVariable(), MOOrderAbstract::orderid, MOOrderAbstract::ordertime, MOOrderAbstract::senttime, MOOrderAbstract::shippingcosts, MOOrderAbstract::shippingtype, MOOrderAbstract::soldby, and MOOrderAbstract::totalprice.
|
overrideprotectedvirtual |
callback to set values of a specific loop iteration
Implements MOdtRenderer.
References getLoopIterations().