20 #ifndef ESPREADSHEET_H
21 #define ESPREADSHEET_H
30 #include <QModelIndex>
34 class QAbstractItemModel;
70 HeaderHorizontal = 0x2,
71 HeaderAll = HeaderVertical | HeaderHorizontal
73 Q_DECLARE_FLAGS(Headers, Header)
76 virtual
void setName(QString name);
95 bool setData(QAbstractItemModel* model,
ESpreadsheet::Headers header =
ESpreadsheet::HeaderNone, QModelIndex root = QModelIndex());
123 bool setForeground(
int row,
int column, QBrush foreground);
133 bool setBackground(
int row,
int column, QBrush background);
143 bool setFont(
int row,
int column, QFont font);
153 bool setAlignment(
int row,
int column, Qt::AlignmentFlag alignment);
161 bool data(QAbstractItemModel *model, QModelIndex root = QModelIndex()) const;
174 virtual
int rowCount() const = 0;
180 virtual
int columnCount() const = 0;
197 #endif // ESPREADSHEET_H