daily pastebin goal
0%
SHARE
TWEET

Win32PrintTest.h with Qt

a guest Feb 6th, 2015 6 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Win32PrintTest.h
  2. // By Mike K.
  3. // Friday, February 6, 2015
  4. //
  5. // A function to print a test page using the same win32 functions that Qt uses but without
  6. // using the Qt print support.
  7. //
  8.  
  9.  
  10. #ifndef WIN32PRINTTEST_H
  11. #define WIN32PRINTTEST_H
  12.  
  13. #include <QString>
  14. #include "Windows.h"
  15.  
  16. // Run the print test   <--- This is the function you should call
  17. void win32PrintTest();
  18.  
  19.  
  20. // HELPER FUNCTIONS
  21. // Converts a win32 printer status to a string (PRINTER_STATUS_*)
  22. QString win32PrinterStatusToString(DWORD status);
  23.  
  24. // Converts a win32 paper orientation to a string
  25. QString win32OrientationToString(short orientation);
  26.  
  27. // Converts a win32 paper size to string
  28. QString win32PaperSizeToString(short paperSize);
  29.  
  30. // Converts a win32 print quality to string
  31. QString win32PrintQualityToString(short printQuality);
  32.  
  33. // Converts a win32 duplex option to string
  34. QString win32DuplexSettingToString(short duplex);
  35.  
  36. // Converts a win32 default paper source to string
  37. QString win32DefaultSourceToString(short source);
  38.  
  39. #endif // WIN32PRINTTEST_H
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top