70
73
typedef int CellSize; // in fact KWTableFrameSet::CellSize, which is an enum
71
KWTableDia( QWidget *parent, const char *name, KWCanvas *_canvas, KWDocument *_doc,
72
int rows, int cols, CellSize wid, CellSize hei, bool floating );
74
enum UseMode{ NEW, EDIT };
75
KWTableDia( QWidget *parent, const char *name, UseMode _useMode, KWCanvas *_canvas, KWDocument *_doc,
76
int rows, int cols, CellSize wid, CellSize hei, bool floating , const QString & _templateName, int format);
75
void readTableStyles();
76
79
void setupTab1( int rows, int cols, CellSize wid, CellSize hei, bool floating );
80
void setupTab2( const QString &_templateName, int format);
80
83
QLabel *lRows, *lCols, *lWid, *lHei;
84
QComboBox *cHei, *cWid;
81
85
QSpinBox *nRows, *nCols;
82
86
KWTablePreview *preview;
83
87
QCheckBox *cbIsFloating;
87
QComboBox *cWid, *cHei;
90
QCheckBox *cbHeaderOnAllPages;
91
QButtonGroup *bgHeader, *bgFirstCol, *bgBody;
92
QCheckBox *cbHBorder, *cbHBack, *cbHFormat;
93
QCheckBox *cbFCBorder, *cbFCBack, *cbFCFormat;
94
QCheckBox *cbBodyBorder, *cbBodyBack, *cbBodyFormat;
97
bool hasHeader, hasFirstCol;
99
Border hTop, hBottom, hRight, hLeft;
101
Border frTop, frBottom, frRigfrt, frLeft;
103
Border bTop, bBottom, bRigbt, bLeft;
107
QList<TableStyle> tableStyles;
88
QCheckBox *cbReapplyTemplate1, *cbReapplyTemplate2;
91
KWTableTemplateSelector *tableTemplateSelector;
97
int oldRowCount, oldColCount;
98
QString oldTemplateName;
113
100
void rowsChanged( int );
114
101
void colsChanged( int );
102
void slotSetReapply( bool );
115
103
virtual void slotOk();
104
void slotInlineTable( bool );