23#include <kdialogbase.h>
31class KWTableTemplateSelector;
46class KWTablePreview : public TQWidget
52 KWTablePreview( TQWidget *_parent, int _rows, int _cols )
53 : TQWidget( _parent ), rows( _rows ), cols( _cols ) {}
55 void setRows( int _rows ) { rows = _rows; repaint( true ); }
56 void setCols( int _cols ) { cols = _cols; repaint( true ); }
59 void paintEvent( TQPaintEvent *e );
69class KWTableDia : public KDialogBase
76 enum UseMode{ NEW, EDIT };
77 KWTableDia( TQWidget *parent, const char *name, UseMode _useMode, KWCanvas *_canvas,
78 KWDocument *_doc, int rows, int cols, CellSize wid, CellSize hei, bool floating,
79 const TQString & _templateName, int format);
82 void setupTab1( int rows, int cols, CellSize wid, CellSize hei, bool floating );
83 void setupTab2( const TQString &_templateName, int format);
86 TQLabel *lRows, *lCols;
87#ifdef ALLOW_NON_INLINE_TABLES
89 TQComboBox *cHei, *cWid;
90 TQCheckBox *cbIsFloating;
92 TQSpinBox *nRows, *nCols;
93 KWTablePreview *preview;
94 TQCheckBox *cbReapplyTemplate1, *cbReapplyTemplate2;
97 KWTableTemplateSelector *tableTemplateSelector;
103 int oldRowCount, oldColCount;
104 TQString oldTemplateName;
106 void rowsChanged( int );
107 void colsChanged( int );
108 void slotSetReapply( bool );
109 virtual void slotOk();
110 void slotInlineTable( bool );
Class: KWCanvas This class is responsible for the rendering of the frames to the screen as well as th...
|