dcprint.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/dcprint.h
  3. // Purpose: wxPrinterDC base header
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created:
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows Licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_DCPRINT_H_BASE_
  11. #define _WX_DCPRINT_H_BASE_
  12. #include "wx/defs.h"
  13. #if wxUSE_PRINTING_ARCHITECTURE
  14. #include "wx/dc.h"
  15. //-----------------------------------------------------------------------------
  16. // wxPrinterDC
  17. //-----------------------------------------------------------------------------
  18. class WXDLLIMPEXP_CORE wxPrinterDC : public wxDC
  19. {
  20. public:
  21. wxPrinterDC();
  22. wxPrinterDC(const wxPrintData& data);
  23. wxRect GetPaperRect() const;
  24. int GetResolution() const;
  25. protected:
  26. wxPrinterDC(wxDCImpl *impl) : wxDC(impl) { }
  27. private:
  28. DECLARE_DYNAMIC_CLASS(wxPrinterDC)
  29. };
  30. #endif // wxUSE_PRINTING_ARCHITECTURE
  31. #endif // _WX_DCPRINT_H_BASE_