AppCore
Loading...
Searching...
No Matches
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.
 
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.
 
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() [1/2]

EPrinter::EPrinter ( )

public constructor EPrinter

Returns
void

◆ ~EPrinter() [1/2]

EPrinter::~EPrinter ( )
virtual

public virtual destructor ~EPrinter

Returns
void

◆ EPrinter() [2/2]

EM::Printer::EPrinter::EPrinter ( )

◆ ~EPrinter() [2/2]

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

Member Function Documentation

◆ EndPrint() [1/2]

long EPrinter::EndPrint ( )
virtual

Samotne vytlacenie

Returns
0=OK

public virtual EndPrint Ukoncenie tlace

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

Here is the caller graph for this function:

◆ EndPrint() [2/2]

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

Samotne vytlacenie

Returns
0=OK

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

◆ GetActPrinter() [1/2]

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
Here is the caller graph for this function:

◆ GetActPrinter() [2/2]

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

◆ GetDataForPrinter() [1/2]

virtual unsigned char * EM::Printer::EPrinter::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
pure virtual

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

Here is the caller graph for this function:

◆ GetDataForPrinter() [2/2]

virtual unsigned char * EM::Printer::EPrinter::GetDataForPrinter ( unsigned long &  length,
unsigned long &  width,
unsigned long &  height 
)
pure virtual

◆ GetExtendedProperties() [1/2]

virtual std::string EM::Printer::EPrinter::GetExtendedProperties ( std::string  str)
virtual

◆ GetExtendedProperties() [2/2]

virtual std::string EM::Printer::EPrinter::GetExtendedProperties ( std::string  str)
virtual

◆ GetRatioX() [1/2]

float EPrinter::GetRatioX ( )
Here is the caller graph for this function:

◆ GetRatioX() [2/2]

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

◆ GetRatioY() [1/2]

float EPrinter::GetRatioY ( )
Here is the caller graph for this function:

◆ GetRatioY() [2/2]

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

◆ GetStatus() [1/2]

long EPrinter::GetStatus ( )
virtual

vracia status tlaciarne

Returns
0=OK

public virtual GetStatus

Returns
long stav

◆ GetStatus() [2/2]

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

vracia status tlaciarne

Returns
0=OK

◆ GetTemplateVersion() [1/2]

long EPrinter::GetTemplateVersion ( )

◆ GetTemplateVersion() [2/2]

long EM::Printer::EPrinter::GetTemplateVersion ( )

◆ NewPage() [1/2]

long EPrinter::NewPage ( )
virtual

nova strana pre tlac

Returns
0=OK

public virtual NewPage Nova strana na tlac

Here is the caller graph for this function:

◆ NewPage() [2/2]

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

nova strana pre tlac

Returns
0=OK

◆ SetActPrinter() [1/2]

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:

◆ SetActPrinter() [2/2]

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

nastavi actualnu tlaciaren

◆ SetRatioX() [1/2]

void EPrinter::SetRatioX ( float  x)

◆ SetRatioX() [2/2]

void EM::Printer::EPrinter::SetRatioX ( float  x)

◆ SetRatioY() [1/2]

void EPrinter::SetRatioY ( float  y)

◆ SetRatioY() [2/2]

void EM::Printer::EPrinter::SetRatioY ( float  y)

◆ SetTemplateVersion() [1/2]

void EPrinter::SetTemplateVersion ( long  templateVersion)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetTemplateVersion() [2/2]

void EM::Printer::EPrinter::SetTemplateVersion ( long  templateVersion)

◆ StartPrint() [1/2]

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.

◆ StartPrint() [2/2]

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

◆ mActPrinter

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

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