Scribus
Open source desktop publishing at your fingertips
useprintermarginsdialog.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 /***************************************************************************
8  useprintermarginsdialog.cpp - description
9  -------------------
10  copyright : (C) 2006 by Craig Bradney
11  email : cbradney@zip.com.au
12  ***************************************************************************/
13 
14 #ifndef USEPRINTERMARGINSDIALOG_H
15 #define USEPRINTERMARGINSDIALOG_H
16 
17 #include "ui_useprintermarginsdialog.h"
18 
19 #include "scribusapi.h"
20 
21 class SCRIBUS_API UsePrinterMarginsDialog : public QDialog, Ui::UsePrinterMarginsDialog
22 {
23  Q_OBJECT
24 
25  public:
26  UsePrinterMarginsDialog(QWidget* parent, const QString& pageSize, double unitRatio, const QString& suffix);
35  void getNewPrinterMargins(double &topMargin,double &bottomMargin,double &leftMargin,double &rightMargin);
36  protected slots:
37  void getPrinterMarginValues(const QString& printerName);
38 
39  protected:
40  QString m_pageSize;
41  double m_unitRatio;
42  QString m_suffix;
43  double m_ptsTopMargin,m_ptsBottomMargin,m_ptsLeftMargin,m_ptsRightMargin;
44 };
45 
46 #endif
Definition: useprintermarginsdialog.h:21