home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 October / Chip_1997-10_cd.bin / tema / sybase / powerj / hpp.z / WPRTDATA.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  3KB  |  105 lines

  1.  
  2. /*************************************************************************
  3.  *
  4.  * WPrinterData
  5.  *
  6.  *************************************************************************/
  7.  
  8. #ifndef _WPRTDATA_HPP_INCLUDED
  9. #define _WPRTDATA_HPP_INCLUDED
  10.  
  11. #ifndef _WNO_PRAGMA_PUSH
  12. #pragma pack(push,8);
  13. #pragma enum int;
  14. #endif
  15.  
  16. #ifndef _WOBJECT_HPP_INCLUDED
  17. #  include "wobject.hpp"
  18. #endif
  19.  
  20. class WGlobalMemory;
  21.  
  22. //
  23. // WPrinterData
  24. //
  25.  
  26. class WCMCLASS WPrinterData : public WObject {
  27.     WDeclareSubclass( WPrinterData, WObject );
  28.  
  29.     public:
  30.  
  31.         /**********************************************************
  32.          * Constructors and Destructors
  33.          *********************************************************/
  34.  
  35.         WPrinterData();
  36.         WPrinterData( WMemoryHandle devData, WMemoryHandle devName,
  37.                       WBool deleteHandles=TRUE );
  38.         WPrinterData( WGlobalMemory *devData, WGlobalMemory *devName );
  39.         WPrinterData( const WPrinterData & pd, WBool copyData=FALSE );
  40.  
  41.         ~WPrinterData();
  42.  
  43.         WPrinterData& operator=( const WPrinterData & pd );
  44.  
  45.         /**********************************************************
  46.          * Properties
  47.          *********************************************************/
  48.  
  49.         // DeviceName
  50.  
  51.         WString GetDeviceName() const;
  52.  
  53.         // DriverName
  54.  
  55.         WString GetDriverName() const;
  56.  
  57.         // OutputName
  58.  
  59.         WString GetOutputName() const;
  60.  
  61.         // RawDeviceData
  62.  
  63.         WGlobalMemory *GetRawDeviceData() const;
  64.  
  65.         // RawDeviceName
  66.  
  67.         WGlobalMemory *GetRawDeviceName() const;
  68.  
  69.         // Valid
  70.  
  71.         WBool GetValid() const;
  72.  
  73.         /**********************************************************
  74.          * Methods
  75.          *********************************************************/
  76.  
  77.         // Clear
  78.  
  79.         void Clear();
  80.  
  81.         // Create
  82.  
  83.         WBool Create( WMemoryHandle devData, WMemoryHandle devName,
  84.                       WBool deleteHandles=TRUE );
  85.         WBool Create( WGlobalMemory *devData, WGlobalMemory *devName );
  86.         WBool Create( const WPrinterData & pd, WBool copyData=FALSE );
  87.  
  88.         /**********************************************************
  89.          * Private
  90.          *********************************************************/
  91.  
  92.     protected:
  93.  
  94.         WGlobalMemory *_deviceData;
  95.         WGlobalMemory *_deviceName;
  96. };
  97.  
  98.  
  99. #ifndef _WNO_PRAGMA_PUSH
  100. #pragma enum pop;
  101. #pragma pack(pop);
  102. #endif
  103.  
  104. #endif // _WPRTDATA_HPP_INCLUDED
  105.