Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Win32PrintTest.h
- // By Mike K.
- // Friday, February 6, 2015
- //
- // A function to print a test page using the same win32 functions that Qt uses but without
- // using the Qt print support.
- //
- #ifndef WIN32PRINTTEST_H
- #define WIN32PRINTTEST_H
- #include <QString>
- #include "Windows.h"
- // Run the print test <--- This is the function you should call
- void win32PrintTest();
- // HELPER FUNCTIONS
- // Converts a win32 printer status to a string (PRINTER_STATUS_*)
- QString win32PrinterStatusToString(DWORD status);
- // Converts a win32 paper orientation to a string
- QString win32OrientationToString(short orientation);
- // Converts a win32 paper size to string
- QString win32PaperSizeToString(short paperSize);
- // Converts a win32 print quality to string
- QString win32PrintQualityToString(short printQuality);
- // Converts a win32 duplex option to string
- QString win32DuplexSettingToString(short duplex);
- // Converts a win32 default paper source to string
- QString win32DefaultSourceToString(short source);
- #endif // WIN32PRINTTEST_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement