8 #ifndef NEWMARGINWIDGET_H
9 #define NEWMARGINWIDGET_H
11 #include "ui_newmarginwidgetbase.h"
12 #include "scribusapi.h"
13 #include "scribusstructs.h"
15 class SCRIBUS_API NewMarginWidget :
public QWidget, Ui::NewMarginWidget
20 NewMarginWidget(QWidget* parent=0);
26 ShowPrinterMargins = 2,
27 MarginWidgetFlags = 3,
31 void setup(
const MarginStruct& margs,
int layoutType,
int unitIndex,
int flags = MarginWidgetFlags);
33 void setFacingPages(
bool facing,
int pagetype = 0);
35 void setPageWidth(
double);
37 void setPageHeight(
double);
39 void setPageSize(
const QString&);
40 void setNewUnit(
int unitIndex);
43 void setMarginPreset(
int p);
44 const MarginStruct & margins()
const {
return marginData; };
47 void languageChange();
52 void slotLinkMargins();
56 void setMarginsToPrinterMargins();
59 void updateMarginSpinValues();
74 #endif // NEWMARGINWIDGET_H
Pagemargins and bleeds.
Definition: margins.h:25