home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / PrintCardPreferences.h < prev    next >
C/C++ Source or Header  |  2000-06-10  |  2KB  |  64 lines

  1. //
  2. //  $Id: PrintCardPreferences.h,v 1.1 2000/06/10 00:19:47 sergey Exp $
  3. //
  4.  
  5. #ifndef _PrintCardPreferences_h_
  6. #define _PrintCardPreferences_h_
  7.  
  8. #include "Util/Serializable.h"
  9.  
  10.  
  11. //
  12. // Holds important application PrintCardPreferences.
  13. //
  14. class PrintCardPreferences: public Util::Serializable
  15. {
  16. public:
  17.     PrintCardPreferences();
  18.  
  19.     // PrintCardPreferences(const PrintCardPreferences&);
  20.     // PrintCardPreferences& operator =(const PrintCardPreferences&);
  21.  
  22. // operations
  23.  
  24.     void setDefaults();
  25.  
  26.     virtual void serialize(Util::DataOutputStream& stream) const;
  27.     virtual void restore(const Util::DataInputStream& stream);
  28.  
  29. // attributes
  30.  
  31.     int frameHeight() const     { return _frameHeight; }
  32.     int frameWidth() const      { return _frameWidth; }
  33.     int frameMargin() const     { return _frameMargin; }
  34.  
  35.     int scaleX() const          { return _scaleX; }
  36.     int scaleY() const          { return _scaleY; }
  37.  
  38.     bool oneCopy() const        { return _oneCopy; }
  39.  
  40.     void setFrameHeight(int h)  { _frameHeight = h; }
  41.     void setFrameWidth(int w)   { _frameWidth = w; }
  42.     void setFrameMargin(int m)  { _frameMargin= m; }
  43.  
  44.     void setScaleX(int x)       { _scaleX = x; }
  45.     void setScaleY(int y)       { _scaleY = y; }
  46.  
  47.     void setOneCopy(bool c)     { _oneCopy = c; }
  48.  
  49. // data membars
  50. private:
  51.     // one point is 1/72"
  52.     int _frameHeight;
  53.     int _frameWidth;
  54.     int _frameMargin;
  55.  
  56.     // from 0 to n, 1 is 1x
  57.     int _scaleX;
  58.     int _scaleY;
  59.  
  60.     bool _oneCopy;
  61. };
  62.  
  63. #endif  // _PrintCardPreferences_h_
  64.