ReportEntityLabel.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:

Graph program

Development Platform:

Visual C++

  1. #ifndef _REPORTENTITYLABEL_H_
  2. #define _REPORTENTITYLABEL_H_
  3. #include "DiagramEditor/DiagramEntity.h"
  4. #include "ReportLabelProperties.h"
  5. class CReportEntityLabel : public CDiagramEntity
  6. {
  7. public:
  8. CReportEntityLabel();
  9. ~CReportEntityLabel();
  10. virtual DIAGRAM_OBJECT_TYPE  GetEntityType() {return DIAGRAM_LABEL;};
  11. virtual CDiagramEntity* Clone();
  12. virtual void Copy( CDiagramEntity* obj );
  13. virtual BOOL FromString( const CString& str );
  14. virtual CString GetString() const;
  15. static CDiagramEntity* CreateFromString( const CString & str );
  16. virtual void    Serialize(CArchive& ar);
  17. virtual void Draw( CDC* dc, CRect rect );
  18. CString GetFontName() const;
  19. void SetFontName( CString value );
  20. void SetCharSet(BYTE nCS) {m_fontCharSet=nCS;};
  21. BYTE GetCharSet() const {return m_fontCharSet;};
  22. int GetFontSize() const;
  23. void SetFontSize( int value );
  24. BOOL GetFontBold() const;
  25. void SetFontBold( BOOL value );
  26. BOOL GetFontItalic() const;
  27. void SetFontItalic( BOOL value );
  28. BOOL GetFontUnderline() const;
  29. void SetFontUnderline( BOOL value );
  30. BOOL GetFontStrikeout() const;
  31. void SetFontStrikeout( BOOL value );
  32. COLORREF GetFontColor() const;
  33. void SetFontColor( COLORREF value );
  34. void SetJustification( unsigned int justification );
  35. unsigned int GetJustification() const;
  36. int GetAngle() {return m_angle;};
  37. void SetAngle(int nA) {m_angle=nA;};
  38. unsigned int GetBorderThickness() const;
  39. void SetBorderThickness( unsigned int value );
  40. unsigned int GetBorderStyle() const;
  41. void SetBorderStyle( unsigned int value );
  42. unsigned int GetBorderColor() const;
  43. void SetBorderColor( unsigned int value );
  44. private:
  45. CString m_fontName;
  46. int m_fontSize;
  47. BYTE        m_fontCharSet;
  48. BOOL m_fontBold;
  49. BOOL m_fontItalic;
  50. BOOL m_fontUnderline;
  51. BOOL m_fontStrikeout;
  52. COLORREF m_fontColor;
  53. unsigned int m_justification;
  54. unsigned int m_borderThickness;
  55. unsigned int m_borderStyle;
  56. unsigned int m_borderColor;
  57. int          m_angle;
  58. CReportLabelProperties m_dlg;
  59. };
  60. #endif //_REPORTENTITYLABEL_H_