AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
EM::Printer::EPrinter Class Referenceabstract

#include <EPrinter.h>

Inheritance diagram for EM::Printer::EPrinter:
Inheritance graph
[legend]
Collaboration diagram for EM::Printer::EPrinter:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 EPrinter ()
 
virtual ~EPrinter ()
 
virtual long StartPrint ()
 
virtual std::string GetExtendedProperties (std::string str)
 
virtual long EndPrint ()
 
virtual long NewPage ()
 
virtual long GetStatus ()
 
virtual unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned long &height)=0
 
void SetRatioX (float x)
 
void SetRatioY (float y)
 
float GetRatioX ()
 
float GetRatioY ()
 
void SetTemplateVersion (long templateVersion)
 
long GetTemplateVersion ()
 
 EPrinter ()
 
virtual ~EPrinter ()
 
virtual long StartPrint ()
 
virtual std::string GetExtendedProperties (std::string str)
 
virtual long EndPrint ()
 
virtual long NewPage ()
 
virtual long GetStatus ()
 
virtual unsigned char * GetDataForPrinter (unsigned long &length, unsigned long &width, unsigned long &height)=0
 
void SetRatioX (float x)
 
void SetRatioY (float y)
 
float GetRatioX ()
 
float GetRatioY ()
 
void SetTemplateVersion (long templateVersion)
 
long GetTemplateVersion ()
 
- Public Member Functions inherited from EM::Printer::EImageIface
 EImageIface ()
 
virtual ~EImageIface ()
 
virtual long SetSize (float width, float height)
 
virtual long GetWidth ()
 
virtual long GetHeight ()
 
virtual long GetTextWidth (std::string text)
 
virtual long GetTextHeight ()
 
virtual float GetTextHeightMM ()
 
virtual Metrics GetMetrics ()
 
virtual FontEncoding GetFontEncoding ()
 
virtual long CalculateMetrics ()
 
virtual long SetCurrentPos (float x, float y)
 
virtual long GetPositionX ()
 
virtual long GetPositionY ()
 
virtual long SetMetrics (Metrics metric)
 
virtual long SetFontEncoding (FontEncoding encode)
 
virtual long SetAlign (Alignement align)
 
virtual long SetBkColor (int colorIdx)
 
virtual long SetTextColor (int colorIdx)
 
virtual long SetDrawedObjectColors (int borderColorIdx, int fillColorIdx)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic, bool underline)
 
virtual long DrawText (float x, float y, long width, long height, std::string text, Alignement align, short rotation=0)
 
virtual long DrawBox (float x1, float y1, float x2, float y2)
 
virtual long DrawEllipse (float x, float y, float w, float h)
 
virtual long DrawLine (float x1, float y1, float x2, float y2)
 
virtual long DrawPicture (float x, float y, std::string fileName)
 
virtual long DrawPicture (float x, float y, std::string fileName, long width, long height)
 
virtual long DrawQRCode (long x, long y, long width, long height, std::string data)
 DrawQRCode. More...
 
void SetDefaultPath (const std::string &defaultPath)
 
std::string GetDefaultPath () const
 
 EImageIface ()
 
virtual ~EImageIface ()
 
virtual long SetSize (float width, float height)
 
virtual long GetWidth ()
 
virtual long GetHeight ()
 
virtual long GetTextWidth (std::string text)
 
virtual long GetTextHeight ()
 
virtual float GetTextHeightMM ()
 
virtual Metrics GetMetrics ()
 
virtual FontEncoding GetFontEncoding ()
 
virtual long CalculateMetrics ()
 
virtual long SetCurrentPos (float x, float y)
 
virtual long GetPositionX ()
 
virtual long GetPositionY ()
 
virtual long SetMetrics (Metrics metric)
 
virtual long SetFontEncoding (FontEncoding encode)
 
virtual long SetAlign (Alignement align)
 
virtual long SetBkColor (int colorIdx)
 
virtual long SetTextColor (int colorIdx)
 
virtual long SetDrawedObjectColors (int borderColorIdx, int fillColorIdx)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic)
 
virtual long SetFont (std::string fontName, long size, bool bold, bool italic, bool underline)
 
virtual long DrawText (float x, float y, long width, long height, std::string text, Alignement align, short rotation=0)
 
virtual long DrawBox (float x1, float y1, float x2, float y2)
 
virtual long DrawEllipse (float x, float y, float w, float h)
 
virtual long DrawLine (float x1, float y1, float x2, float y2)
 
virtual long DrawPicture (float x, float y, std::string fileName)
 
virtual long DrawPicture (float x, float y, std::string fileName, long width, long height)
 
virtual long DrawQRCode (long x, long y, long width, long height, std::string data)
 DrawQRCode. More...
 
void SetDefaultPath (const std::string &defaultPath)
 
std::string GetDefaultPath () const
 

Static Public Member Functions

static void SetActPrinter (EPrinter *actPrinter)
 
static EPrinterGetActPrinter ()
 
static void SetActPrinter (EPrinter *actPrinter)
 
static EPrinterGetActPrinter ()
 

Static Protected Attributes

static EPrintermActPrinter = NULL
 

Additional Inherited Members

- Public Types inherited from EM::Printer::EImageIface
enum  Metrics {
  Pixel = 0, Milimeter = 1, Centimeter = 2, Pixel = 0,
  Milimeter = 1, Centimeter = 2
}
 
enum  FontEncoding { None = 0, Utf8 = 1, None = 0, Utf8 = 1 }
 
enum  Metrics {
  Pixel = 0, Milimeter = 1, Centimeter = 2, Pixel = 0,
  Milimeter = 1, Centimeter = 2
}
 
enum  FontEncoding { None = 0, Utf8 = 1, None = 0, Utf8 = 1 }
 

Constructor & Destructor Documentation

EPrinter::EPrinter ( )

public constructor EPrinter

Returns
void
EPrinter::~EPrinter ( )
virtual

public virtual destructor ~EPrinter

Returns
void
EM::Printer::EPrinter::EPrinter ( )
virtual EM::Printer::EPrinter::~EPrinter ( )
virtual

Member Function Documentation

long EPrinter::EndPrint ( )
virtual

Samotne vytlacenie

Returns
0=OK

public virtual EndPrint Ukoncenie tlace

Reimplemented in EM::Printer::EPrinterGraf, and EM::Printer::EPrinterGraf.

virtual long EM::Printer::EPrinter::EndPrint ( )
virtual

Samotne vytlacenie

Returns
0=OK

Reimplemented in EM::Printer::EPrinterGraf, and EM::Printer::EPrinterGraf.

EPrinter * EPrinter::GetActPrinter ( )
static
Returns
vrati aktulne nastvanu tlacieren (by SetActPrinter)

public static GetActPrinter Vratenie aktualne nastavenej tlaciarne

See also
SetActPrinter
Returns
EM::Printer::EPrinter * tlaciaren
static EPrinter* EM::Printer::EPrinter::GetActPrinter ( )
static
Returns
vrati aktulne nastvanu tlacieren (by SetActPrinter)
virtual unsigned char* EM::Printer::EPrinter::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
pure virtual
virtual unsigned char* EM::Printer::EPrinter::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
pure virtual
virtual std::string EM::Printer::EPrinter::GetExtendedProperties ( std::string  str)
virtual
virtual std::string EM::Printer::EPrinter::GetExtendedProperties ( std::string  str)
virtual
float EPrinter::GetRatioX ( )

Here is the caller graph for this function:

float EM::Printer::EPrinter::GetRatioX ( )
float EPrinter::GetRatioY ( )

Here is the caller graph for this function:

float EM::Printer::EPrinter::GetRatioY ( )
long EPrinter::GetStatus ( )
virtual

vracia status tlaciarne

Returns
0=OK

public virtual GetStatus

Returns
long stav
virtual long EM::Printer::EPrinter::GetStatus ( )
virtual

vracia status tlaciarne

Returns
0=OK
long EPrinter::GetTemplateVersion ( )
long EM::Printer::EPrinter::GetTemplateVersion ( )
virtual long EM::Printer::EPrinter::NewPage ( )
virtual

nova strana pre tlac

Returns
0=OK
long EPrinter::NewPage ( )
virtual

nova strana pre tlac

Returns
0=OK

public virtual NewPage Nova strana na tlac

void EM::Printer::EPrinter::SetActPrinter ( EPrinter actPrinter)
static

nastavi actualnu tlaciaren

EPrinterSetActPrinter Nastavenie tlaciarne ako aktualnu

Parameters
actPrinterEM::Printer::EPrinter * * [vstup]
Returns
void

Here is the caller graph for this function:

static void EM::Printer::EPrinter::SetActPrinter ( EPrinter actPrinter)
static

nastavi actualnu tlaciaren

void EM::Printer::EPrinter::SetRatioX ( float  x)
void EPrinter::SetRatioX ( float  x)
void EM::Printer::EPrinter::SetRatioY ( float  y)
void EPrinter::SetRatioY ( float  y)
void EM::Printer::EPrinter::SetTemplateVersion ( long  templateVersion)
void EPrinter::SetTemplateVersion ( long  templateVersion)

Here is the caller graph for this function:

long EPrinter::StartPrint ( )
virtual

Je nutne zavolat pred zaciatkom vykreslovania, a po nastaveni Height,Width

Returns
0=OK

public virtual StartPrint Inicializacia tlaciarne, vypocet mierky, nastavenie kodovania znakov

Reimplemented in EM::Printer::EPrinterGraf, and EM::Printer::EPrinterGraf.

virtual long EM::Printer::EPrinter::StartPrint ( )
virtual

Je nutne zavolat pred zaciatkom vykreslovania, a po nastaveni Height,Width

Returns
0=OK

Reimplemented in EM::Printer::EPrinterGraf, and EM::Printer::EPrinterGraf.

Member Data Documentation

static EPrinter * EM::Printer::EPrinter::mActPrinter = NULL
staticprotected

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