|
KD Reports API Documentation
2.0
|
Go to the documentation of this file.
17 #ifndef KDREPORTSSPREADSHEETREPORTLAYOUT_H
18 #define KDREPORTSSPREADSHEETREPORTLAYOUT_H
29 class SpreadsheetReportLayout :
public AbstractReportLayout
51 void updateTextValue(
const QString &
id,
const QString &newValue)
override;
55 bool scaleTo(
int numPagesHorizontally,
int numPagesVertically)
override;
67 QString
anchorAt(
int pageNumber, QPoint pos)
override;
69 QString
toHtml()
const override;
73 void setModel(QAbstractItemModel *model);
87 void drawBorder(
const QRectF &cellRect, QPainter &painter)
const;
88 void breakHorizontally();
90 qreal totalWidth()
const;
91 qreal cellWidth(
int col,
int horizSpan)
const;
92 qreal paintTableVerticalHeader(qreal x, qreal y, QPainter &painter,
int row);
93 void paintTableHorizontalHeader(
const QRectF &cellRect, QPainter &painter,
int col);
94 void paintIcon(QPainter &painter,
const QRectF &cellContentsRect,
const QVariant &cellDecoration)
const;
95 void paintTextAndIcon(QPainter &painter,
const QRectF &cellContentsRect,
const QString &cellText,
const QVariant &cellDecoration,
const QVariant &decorationAlignment, Qt::Alignment alignment);
99 int m_numHorizontalPages;
100 int m_numVerticalPages;
102 qreal m_userRequestedFontScalingFactor;
103 QSizeF m_pageContentSize;
110 , m_borderBrush(Qt::gray)
111 , m_headerBackground(Qt::gray)
115 QBrush m_borderBrush;
116 QBrush m_headerBackground;
118 TableSettings m_tableSettings;
130 #endif // KDREPORTSSPREADSHEETREPORTLAYOUT_H
qreal layoutAsOnePage(qreal width) override
Reimplemented for internal purposes. .
void paintPageContent(int pageNumber, QPainter &painter) override
Reimplemented for internal purposes. .
void setModel(QAbstractItemModel *model)
qreal userRequestedFontScalingFactor() const override
Reimplemented for internal purposes. .
void ensureLayouted() override
Reimplemented for internal purposes. .
void finishHtmlExport() override
Reimplemented for internal purposes. .
void setPageContentSize(QSizeF size) override
Reimplemented for internal purposes. .
SpreadsheetReportLayout(KDReports::Report *report)
QString toHtml() const override
Reimplemented for internal purposes. .
void setHorizontalHeaderFont(const QFont &font)
int maximumNumberOfPagesForVerticalScaling() const override
Reimplemented for internal purposes. .
void updateTextValue(const QString &id, const QString &newValue) override
Reimplemented for internal purposes. .
void setLayoutDirty() override
Reimplemented for internal purposes. .
void setUserRequestedFontScalingFactor(qreal factor) override
Reimplemented for internal purposes. .
void setVerticalHeaderFont(const QFont &font)
QString anchorAt(int pageNumber, QPoint pos) override
Reimplemented for internal purposes. .
void setHorizontalHeaderVisible(bool visible)
void setVerticalHeaderVisible(bool visible)
int numberOfPages() override
Reimplemented for internal purposes. .
void setTableBreakingPageOrder(KDReports::Report::TableBreakingPageOrder order)
bool scaleTo(int numPagesHorizontally, int numPagesVertically) override
Reimplemented for internal purposes. .
int maximumNumberOfPagesForHorizontalScaling() const override
Reimplemented for internal purposes. .
qreal idealWidth() override
Reimplemented for internal purposes. .
void setCellPadding(qreal padding)
void setCellBorder(qreal border, const QBrush &borderBrush)
void setDefaultFont(const QFont &font) override
Reimplemented for internal purposes. .
KDReports::Report::TableBreakingPageOrder tableBreakingPageOrder() const
void setHeaderBackground(const QBrush &headerBackground)
void setFixedRowHeight(qreal height) override
Reimplemented for internal purposes. .
void setIconSize(QSize iconSize)
QFont defaultFont() const override
Reimplemented for internal purposes. .