MagicSmoke  $VERSION$
MBillRenderer Class Reference

displays an order and allows the user to execute several commands on it More...

#include <billrender.h>

Inheritance diagram for MBillRenderer:
MOdtRenderer

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...
 

Detailed Description

displays an order and allows the user to execute several commands on it

Constructor & Destructor Documentation

MBillRenderer::MBillRenderer ( const MOOrder o,
const MTemplate tmp 
)

Member Function Documentation

int MBillRenderer::getLoopIterations ( QString  loopname)
overrideprotectedvirtual

callback for bill generator: loops; see MOdtSignalRenderer for details

Implements MOdtRenderer.

Referenced by setLoopIteration().

QVariant MBillRenderer::getLoopVariable ( QString  loopname,
int  it,
QString  vn 
)
protected

callback for bill generator: loop variables; see MOdtSignalRenderer for details

Referenced by getVariable().

void MBillRenderer::setLoopIteration ( QString  loopname,
int  iteration 
)
overrideprotectedvirtual

callback to set values of a specific loop iteration

Implements MOdtRenderer.

References getLoopIterations().


The documentation for this class was generated from the following files: