Back to index

scribus-ng  1.3.4.dfsg+svn20071115
printerutil.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef PRINTERUTIL_H
00008 #define PRINTERUTIL_H
00009 
00010 #include "scribusapi.h"
00011 
00012 #include <qstring.h>
00013 #include <qwidget.h>
00014 
00015 class QStringList;
00016 
00017 class SCRIBUS_API PrinterUtil
00018 {
00019        public:
00020               PrinterUtil() {};
00021               ~PrinterUtil() {};
00022               static QStringList getPrinterNames();
00023 
00024 #if defined(_WIN32)
00025 
00036               static bool getDefaultSettings( QString printerName, QByteArray& devModeA );
00048               static bool initDeviceSettings( QString printerName, QByteArray& devModeA );
00049 #endif
00050 
00061               static bool getPrinterMarginValues( const QString& printerName, const QString& pageSize, double& ptsTopMargin, double& m_ptsBottomMargin, double& m_ptsLeftMargin, double& m_ptsRightMargin);
00073               static bool isPostscriptPrinter( QString printerName );
00074 };
00075 
00076 #endif // DRUCK_H