home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1995 March / PCD_395.iso / starview / pm2blci / german / paintwin.hx_ / PAINTWIN.HXX
Encoding:
Text File  |  1994-01-18  |  1.7 KB  |  64 lines

  1. /*******************************************************************
  2. *  PAINTWIN.HXX
  3. *  (c) 1992-1994 STAR DIVISION
  4. *******************************************************************/
  5.  
  6. #ifndef _PAINTWIN_HXX
  7. #define _PAINTWIN_HXX
  8.  
  9. #ifndef _SV_HXX
  10. #include <sv.hxx>
  11. #endif
  12.  
  13. // --- class PaintDocWin -------------------------------------------
  14.  
  15. class PaintDocWin : public MDIWindow
  16. {
  17. private:
  18.     USHORT          nActDraw;
  19.     USHORT          nActView;
  20.     BOOL            bDrag;
  21.     BOOL            bPoly;
  22.     Point           aDragStart;
  23.     Point           aOldDrag;
  24.     Polygon         aPolygon;
  25.     Pen             aDragPen;
  26.     Brush           aDragBrush;
  27.     Pen             aActPen;
  28.     Brush           aActBrush;
  29.     Font            aActFont;
  30.     String          aActText;
  31.     String          aFileName;
  32.     GDIMetaFile     aMtf;
  33.     Printer         aPrinter;
  34.  
  35. public:
  36.                     PaintDocWin();
  37.                     PaintDocWin( const String& rName );
  38.                     ~PaintDocWin();
  39.  
  40.     virtual void    MouseButtonDown( const MouseEvent& rMEvt );
  41.     virtual void    MouseButtonUp( const MouseEvent& rMEvt );
  42.     virtual void    MouseMove( const MouseEvent& rMEvt );
  43.     virtual void    Paint( const Rectangle& );
  44.     virtual BOOL    Close();
  45.     virtual void    Activate();
  46.     virtual void    Deactivate();
  47.  
  48.     void            Init();
  49.  
  50.     void            Load();
  51.     void            Save();
  52.     void            SaveAs();
  53.     void            Print();
  54.     void            PrintSetup();
  55.  
  56.     void            View( USHORT nView );
  57.  
  58.     BOOL            Command( USHORT nItemId );
  59.  
  60.     USHORT          GetActDraw() const { return nActDraw; }
  61. };
  62.  
  63. #endif // _PAINTWIN_HXX
  64.