20 #ifndef MARGINWIDGET_H
21 #define MARGINWIDGET_H
24 #include <tqvaluevector.h>
26 #include <tdelibs_export.h>
28 class MarginValueWidget;
33 class TDEPRINT_EXPORT MarginWidget :
public TQWidget
37 MarginWidget(TQWidget *parent = 0,
const char *name = 0,
bool allowMetricUnit =
true);
40 void setSymetricMargins(
bool on);
41 void setPageSize(
float w,
float h);
42 void setOrientation(
int orient);
44 void setTop(
float val);
46 void setBottom(
float val);
48 void setLeft(
float val);
50 void setRight(
float val);
51 void setResolution(
int dpi);
52 void setDefaultMargins(
float t,
float b,
float l,
float r);
53 void setCustomEnabled(
bool on);
54 bool isCustomEnabled()
const;
57 void slotMarginValueChanged();
58 void slotMarginPreviewChanged(
int,
float);
59 void slotCustomMarginsToggled(
bool);
65 MarginValueWidget *m_top, *m_bottom, *m_left, *m_right;
66 MarginPreview *m_preview;
69 bool m_symetric, m_block;
70 TQValueVector<float> m_default;
71 TQValueVector<float> m_pagesize;