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 {
16 {
17 public:
18 EPrinter();
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 );
50 static EPrinter* GetActPrinter();
51
52 void SetRatioX( float x );
53 void SetRatioY( float y );
54 float GetRatioX();
55 float GetRatioY();
56
57 void SetTemplateVersion( long templateVersion );
58 long GetTemplateVersion();
59
60 protected:
62
63 private:
64 class DataClass;
65 DataClass* d;
66 };
67 }
68}
69
70#endif // _EPRINTER_H
#define EMPRINTERTEMPLATE_API
Definition EMPrinterTemplate.h:9
properties of draw objects
Definition EImageIface.h:35
Definition EPrinter.h:16
virtual std::string GetExtendedProperties(std::string str)
virtual unsigned char * GetDataForPrinter(unsigned long &length, unsigned long &width, unsigned long &height)=0
static EPrinter * mActPrinter
Definition EPrinter.h:61
Definition EPrinter.cpp:7
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7