00001 #ifndef KDREPORTSAUTOTABLEELEMENT_H
00002 #define KDREPORTSAUTOTABLEELEMENT_H
00003
00004 #include "KDReportsAbstractTableElement.h"
00005 #include <QtCore/QSize>
00006 class QTextDocument;
00007 class QTextTableCell;
00008 class QAbstractItemModel;
00009
00010 namespace KDReports {
00011
00020 class KDREPORTS_EXPORT AutoTableElement : public AbstractTableElement
00021 {
00022 public:
00026 explicit AutoTableElement( QAbstractItemModel* tableModel );
00027
00032 explicit AutoTableElement( const QString& modelKey );
00033
00037 ~AutoTableElement();
00038
00043 AutoTableElement(const AutoTableElement &other);
00047 AutoTableElement &operator=(const AutoTableElement &other);
00048
00053 QAbstractItemModel* tableModel() const;
00054
00060 void setVerticalHeaderVisible( bool visible );
00061
00066 void setHorizontalHeaderVisible( bool visible );
00067
00072 bool isVerticalHeaderVisible() const;
00073
00078 bool isHorizontalHeaderVisible() const;
00079
00086 void setHeaderBackground( const QBrush& brush );
00087
00095 void setIconSize( const QSize& iconSize );
00096
00101 void build( ReportBuilder& ) const;
00106 Element* clone() const;
00107
00108 enum {
00109 DecorationAlignmentRole = 0x2D535FB1
00110 };
00111
00112 private:
00113 class Private;
00114 Private* const d;
00115 };
00116
00117 }
00118
00119 #endif