AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
11 namespace 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
static EPrinter * mActPrinter
Definition: EPrinter.h:61
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
properties of draw objects
Definition: EImageIface.h:34
#define EMPRINTERTEMPLATE_API
Definition: EMPrinterTemplate.h:9
Definition: EPrinter.h:15
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
Definition: EPrinter.cpp:6