13 #ifndef MAGICSMOKE_ODTRENDER_H
14 #define MAGICSMOKE_ODTRENDER_H
38 virtual void renderToFile(QString file);
41 virtual void renderToFile(QFile& file,
bool preventOpen=
false);
44 virtual void renderToPrinter();
47 virtual QString renderToPdf();
51 static QByteArray convertV1toV2(
const QByteArray&);
63 FileFormat fileFormat()
const;
69 virtual QVariant getVariable(QString varname)=0;
72 virtual int getLoopIterations(QString loopname)=0;
75 virtual void setLoopIteration(QString loopname,
int interation)=0;
#define MAGICSMOKE_COMMON_EXPORT
Definition: commonexport.h:7
Definition: odtrender.cpp:63
this class wraps a single template
Definition: templates.h:25
MAGICSMOKE_COMMON_EXPORT const QString OdfTemplateNS
virtual int getLoopIterations(QString loopname)=0
implement this to return the amount of iterations for a defined loop; should return 0 if the loop doe...
Definition: odtrender.cpp:33
abstract base class for all ODT rendering classes
Definition: odtrender.h:29
generic class that implements MOdtRenderer by calling signals; the signals must be connected using a ...
Definition: odtrender.h:81
FileFormat
format of the file represented by this renderer
Definition: odtrender.h:54
virtual QVariant getVariable(QString varname)=0
implement this to return the value of a variable during rendering; should return empty string if the ...
virtual void setLoopIteration(QString loopname, int interation)=0
implement this to populate the variables used in a specific iteration of the loop ...
MAGICSMOKE_COMMON_EXPORT const QString OdfTemplatePrefix