00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDREPORTSABSTRACTTABLEELEMENT_H
00024 #define KDREPORTSABSTRACTTABLEELEMENT_H
00025
00026 #include "KDReportsElement.h"
00027 #include "KDReportsUnit.h"
00028
00029 template <typename T> class QList;
00030 class QFont;
00031 class QTextTableFormat;
00032 class QTextCursor;
00033 namespace KDReports {
00034
00039 class KDREPORTS_EXPORT AbstractTableElement : public Element
00040 {
00041 public:
00042
00048 void setBorder( qreal border );
00049
00053 qreal border() const;
00054
00059 void setBorderBrush( const QBrush& brush );
00060
00065 QBrush borderBrush() const;
00066
00073 void setPadding( qreal padding );
00074
00078 qreal padding() const;
00079
00087 void setWidth( qreal width, Unit unit = Millimeters );
00088
00094 void setDefaultFont( const QFont& font );
00095
00100 AbstractTableElement(const AbstractTableElement &other);
00104 AbstractTableElement &operator=(const AbstractTableElement &other);
00105
00106 protected:
00110 AbstractTableElement();
00111
00115 ~AbstractTableElement();
00116
00120 void fillTableFormat( QTextTableFormat& tableFormat, QTextCursor& textDocCursor ) const;
00121
00122 private:
00123 class Private;
00124 Private* const d;
00125 };
00126
00127 }
00128
00129 #endif
00130