00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDREPORTSAUTOTABLEELEMENT_H
00024 #define KDREPORTSAUTOTABLEELEMENT_H
00025
00026 #include "KDReportsAbstractTableElement.h"
00027 #include <QtCore/QSize>
00028 class QTextDocument;
00029 class QTextTableCell;
00030 class QAbstractItemModel;
00031
00032 namespace KDReports {
00033
00042 class KDREPORTS_EXPORT AutoTableElement : public AbstractTableElement
00043 {
00044 public:
00048 explicit AutoTableElement( QAbstractItemModel* tableModel );
00049
00054 explicit AutoTableElement( const QString& modelKey );
00055
00059 ~AutoTableElement();
00060
00065 AutoTableElement(const AutoTableElement &other);
00069 AutoTableElement &operator=(const AutoTableElement &other);
00070
00075 QAbstractItemModel* tableModel() const;
00076
00082 void setVerticalHeaderVisible( bool visible );
00083
00088 void setHorizontalHeaderVisible( bool visible );
00089
00094 bool isVerticalHeaderVisible() const;
00095
00100 bool isHorizontalHeaderVisible() const;
00101
00108 void setHeaderBackground( const QBrush& brush );
00109
00117 void setIconSize( const QSize& iconSize );
00118
00123 QSize iconSize() const;
00124
00129 void build( ReportBuilder& ) const;
00134 Element* clone() const;
00135
00136 enum {
00137 DecorationAlignmentRole = 0x2D535FB1
00138 };
00139
00140 private:
00141 class Private;
00142 Private* const d;
00143 };
00144
00145 }
00146
00147 #endif