20#ifndef MARGINPREVIEW_H 
   21#define MARGINPREVIEW_H 
   25class MarginPreview : 
public TQWidget
 
   30    MarginPreview(TQWidget *parent = 0, 
const char *name = 0);
 
   33    void setPageSize(
float w, 
float h);
 
   34    void setMargins(
float t, 
float b, 
float l, 
float r);
 
   35    void setNoPreview(
bool on);
 
   36    void setSymetric(
bool on);
 
   37    enum    StateType { Fixed = -1, None = 0, TMoving, BMoving, LMoving, RMoving };
 
   40    void enableRubberBand(
bool on);
 
   43    void marginChanged(
int type, 
float value);
 
   46    void paintEvent(TQPaintEvent *);
 
   47    void resizeEvent(TQResizeEvent *);
 
   48    void mouseMoveEvent(TQMouseEvent *);
 
   49    void mousePressEvent(TQMouseEvent *);
 
   50    void mouseReleaseEvent(TQMouseEvent *);
 
   51    int locateMouse(
const TQPoint& p);
 
   52    void drawTempLine(TQPainter*);
 
   55    float   width_, height_;
 
   56    float   top_, bottom_, left_, right_;
 
   57    TQRect  box_, margbox_;