11 #ifndef KDREPORTSSPREADSHEETREPORTLAYOUT_H
12 #define KDREPORTSSPREADSHEETREPORTLAYOUT_H
45 void updateTextValue(
const QString &
id,
const QString &newValue)
override;
49 bool scaleTo(
int numPagesHorizontally,
int numPagesVertically)
override;
61 QString
anchorAt(
int pageNumber, QPoint pos)
override;
63 QString
toHtml()
const override;
67 void setModel(QAbstractItemModel *model);
77 return m_tableBreakingPageOrder;
84 void drawBorder(
const QRectF &cellRect, QPainter &painter)
const;
85 void breakHorizontally();
87 qreal totalWidth()
const;
88 qreal cellWidth(
int col,
int horizSpan)
const;
89 qreal paintTableVerticalHeader(qreal x, qreal y, QPainter &painter,
int row);
90 void paintTableHorizontalHeader(
const QRectF &cellRect, QPainter &painter,
int col);
91 void paintIcon(QPainter &painter,
const QRectF &cellContentsRect,
const QVariant &cellDecoration)
const;
92 void paintTextAndIcon(QPainter &painter,
const QRectF &cellContentsRect,
const QString &cellText,
const QVariant &cellDecoration,
const QVariant &decorationAlignment, Qt::Alignment alignment);
96 int m_numHorizontalPages;
97 int m_numVerticalPages;
99 qreal m_userRequestedFontScalingFactor;
100 QSizeF m_pageContentSize;
107 , m_borderBrush(Qt::gray)
108 , m_headerBackground(Qt::gray)
112 QBrush m_borderBrush;
113 QBrush m_headerBackground;
115 TableSettings m_tableSettings;
int maximumNumberOfPagesForVerticalScaling() const override
Reimplemented for internal purposes. .
void setTableBreakingPageOrder(KDReports::Report::TableBreakingPageOrder order)
int maximumNumberOfPagesForHorizontalScaling() const override
Reimplemented for internal purposes. .
QString toHtml() const override
Reimplemented for internal purposes. .
SpreadsheetReportLayout(KDReports::Report *report)
KDReports::Report::TableBreakingPageOrder tableBreakingPageOrder() const
int numberOfPages() override
Reimplemented for internal purposes. .
void setVerticalHeaderVisible(bool visible)
void setIconSize(QSize iconSize)
void setCellBorder(qreal border, const QBrush &borderBrush)
void setUserRequestedFontScalingFactor(qreal factor) override
Reimplemented for internal purposes. .
void ensureLayouted() override
Reimplemented for internal purposes. .
bool scaleTo(int numPagesHorizontally, int numPagesVertically) override
Reimplemented for internal purposes. .
void setPageContentSize(QSizeF size) override
Reimplemented for internal purposes. .
void updateTextValue(const QString &id, const QString &newValue) override
Reimplemented for internal purposes. .
void setHorizontalHeaderFont(const QFont &font)
QFont defaultFont() const override
Reimplemented for internal purposes. .
void setHeaderBackground(const QBrush &headerBackground)
qreal idealWidth() override
Reimplemented for internal purposes. .
void paintPageContent(int pageNumber, QPainter &painter) override
Reimplemented for internal purposes. .
QString anchorAt(int pageNumber, QPoint pos) override
Reimplemented for internal purposes. .
void setCellPadding(qreal padding)
void finishHtmlExport() override
Reimplemented for internal purposes. .
void setDefaultFont(const QFont &font) override
Reimplemented for internal purposes. .
qreal userRequestedFontScalingFactor() const override
Reimplemented for internal purposes. .
qreal layoutAsOnePage(qreal width) override
Reimplemented for internal purposes. .
void setVerticalHeaderFont(const QFont &font)
void setFixedRowHeight(qreal height) override
Reimplemented for internal purposes. .
void setHorizontalHeaderVisible(bool visible)
void setModel(QAbstractItemModel *model)
void setLayoutDirty() override
Reimplemented for internal purposes. .