AppCore
Loading...
Searching...
No Matches
EPrinter.h
Go to the documentation of this file.
1#ifndef _EPRINTER_H
2#define _EPRINTER_H
3
4#include <string>
5
6#include "appcore/printertemplate/EImageIface.h"
7#include "appcore/printertemplate/EMPrinterTemplate.h"
8
9#define OLD_TEMPLATE_STYLE_VERSION 2
10
11namespace EM
12{
13 namespace Printer
14 {
15 class EMPRINTERTEMPLATE_API EPrinter : public EImageIface
16 {
17 public:
19 virtual ~EPrinter();
24 virtual long StartPrint();
25 virtual std::string GetExtendedProperties( std::string str );
30 virtual long EndPrint();
35 virtual long NewPage();
40 virtual long GetStatus();
41
42 virtual unsigned char* GetDataForPrinter( unsigned long& length, unsigned long& width, unsigned long& height ) = 0;
46 static void SetActPrinter( EPrinter* actPrinter );
51
52 void SetRatioX( float x );
53 void SetRatioY( float y );
54 float GetRatioX();
55 float GetRatioY();
56
57 void SetTemplateVersion( long templateVersion );
59
60 protected:
61 static EPrinter* mActPrinter;
62
63 private:
64 class DataClass;
65 DataClass* d;
66 };
67 }
68}
69
70#endif // _EPRINTER_H
#define EMPRINTERTEMPLATE_API
Definition EMPrinterTemplate.h:9
Definition EPrinter.h:16
virtual long StartPrint()
static void SetActPrinter(EPrinter *actPrinter)
virtual long EndPrint()
void SetTemplateVersion(long templateVersion)
static EPrinter * GetActPrinter()
virtual long GetStatus()
void SetRatioY(float y)
virtual std::string GetExtendedProperties(std::string str)
virtual unsigned char * GetDataForPrinter(unsigned long &length, unsigned long &width, unsigned long &height)=0
void SetRatioX(float x)
virtual long NewPage()
Definition EPrinter.cpp:7
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7