Scribus
Open source desktop publishing at your fingertips
util_printer.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef PRINTERUTIL_H
8 #define PRINTERUTIL_H
9 
10 
11 #include <QString>
12 #include <QMap>
13 
14 #include "scribusapi.h"
15 #include "scribusstructs.h"
16 
17 class QStringList;
18 
19 class SCRIBUS_API PrinterUtil
20 {
21  public:
22  PrinterUtil() {};
23  ~PrinterUtil() {};
24  QStringList static getPrinterNames();
25 
26 #if defined(_WIN32)
27 
38  static bool getDefaultSettings( QString printerName, QByteArray& devModeA );
50  static bool initDeviceSettings( QString printerName, QByteArray& devModeA );
51 #endif
52 
63  static bool getPrinterMarginValues( const QString& printerName, const QString& pageSize, double& ptsTopMargin, double& m_ptsBottomMargin, double& m_ptsLeftMargin, double& m_ptsRightMargin);
69  static PrintEngine getDefaultPrintEngine(const QString& printerName, bool toFile);
75  static PrintEngineMap getPrintEngineSupport(const QString& printerName, bool toFile);
82  static bool checkPrintEngineSupport(const QString& printerName, PrintEngine engine, bool toFile);
94  static bool isPostscriptPrinter( QString printerName );
95 };
96 
97 #endif // DRUCK_H
Definition: util_printer.h:19