Back to index

scribus-ng  1.3.4.dfsg+svn20071115
useprintermarginsdialog.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 /***************************************************************************
00008                           useprintermarginsdialog.cpp  -  description
00009                              -------------------
00010     copyright            : (C) 2006 by Craig Bradney
00011     email                : cbradney@zip.com.au
00012  ***************************************************************************/
00013 
00014 #ifndef USEPRINTERMARGINSDIALOG_H
00015 #define USEPRINTERMARGINSDIALOG_H
00016 
00017 #include "useprintermarginsdialogbase.h"
00018 
00019 #include "scribusapi.h"
00020 
00021 class SCRIBUS_API UsePrinterMarginsDialog : public UsePrinterMarginsDialogBase
00022 {
00023        Q_OBJECT
00024 
00025        public:
00026               UsePrinterMarginsDialog(QWidget* parent, const QString& pageSize, double unitRatio, const QString& suffix);
00027               ~UsePrinterMarginsDialog();
00035               void getNewPrinterMargins(double &topMargin,double &bottomMargin,double &leftMargin,double &rightMargin);
00036        protected slots:
00037               void getPrinterMarginValues(const QString& printerName);
00038               
00039        protected:
00040               QString m_pageSize;
00041               double m_unitRatio;
00042               QString m_suffix;
00043               double m_ptsTopMargin,m_ptsBottomMargin,m_ptsLeftMargin,m_ptsRightMargin;
00044 };
00045 
00046 #endif