AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
EDrawObject.h
Go to the documentation of this file.
1 #ifndef EDRAWOBJECT_H
2 #define EDRAWOBJECT_H
3 
4 #include <string>
5 #include "appcore/printertemplate/EPrinterTemplate.h"
6 
7 class EXMLNode;
8 
9 namespace EM
10 {
11  namespace Printer
12  {
13  class EImageIface;
14  }
15 
16  namespace Common
17  {
18  class EDataMultiple;
19  class EDataAbs;
20  class EDataCol;
21  }
22 
23  namespace PrinterTemplate
24  {
29  class EMPRINTERTEMPLATE_API EDrawObject
30  {
31  public:
32  EDrawObject( const std::string &name );
33  virtual ~EDrawObject();
34 
35  virtual void Draw( float moveY ) = 0;
36  virtual EDrawObject* Clone() = 0;
37  virtual void ReadXML( EXMLNode* node );
38  virtual long Save( EXMLNode* node );
39  void SetName( const std::string &name );
40  std::string GetName();
41  float GetX();
42  float GetY();
43  float GetOriginalY();
44  void SetX( float x );
45  void SetY( float y );
46  virtual void Move( float x, float y );
47  virtual float GetMaxY();
48  virtual float GetHeight();
49  virtual void SetWidth( long width );
50  virtual void SetHeight( long height );
51  Printer::EImageIface* GetImageIface();
52  void SetImageIface( Printer::EImageIface* imageIface );
53  void SetData( Common::EDataAbs* data );
54  virtual float Prepare();
55  std::string GetDataName();
56  void SetDataName( const std::string &name );
57  Common::EDataAbs* GetData();
58 
59  virtual bool VerticalMove();
60 
61  void SetOwner( EDrawObject* owner );
62  EDrawObject* GetOwner();
63  void SetIdentificationName( const std::string &identificationName );
64  std::string GetIdentificationName();
65  void SetDrawObjectToAlign( const std::string &identificationName );
66  std::string GetDrawObjectToAlign();
67  std::string GetBackgroundImage();
68  void SetBackgroundImage( const std::string &fileName );
69 
70  void SetMasterDrawObject( const std::string &identificationName );
71  std::string GetMasterDrawObject();
72  bool IsVisible();
73  EDrawObject* GetDrawObject( const std::string &identificationName );
74 
75  virtual long GetContentWidth();
76 
77  private:
78  class DataClass;
79  DataClass *d;
80  };
81  }
82 }
83 
84 #endif
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
#define EMPRINTERTEMPLATE_API
Definition: EMPrinterTemplate.h:9
virtual CardEvent __EDATAPTR Clone()
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6