KD Reports API Documentation  2.2
Public Member Functions | List of all members
KDReports::AbstractReportLayout Class Referenceabstract

#include <KDReportsAbstractReportLayout_p.h>

Inheritance diagram for KDReports::AbstractReportLayout:
KDReports::SpreadsheetReportLayout KDReports::TextDocReportLayout

Public Member Functions

 AbstractReportLayout ()
 
 AbstractReportLayout (const AbstractReportLayout &other)=delete
 
virtual ~AbstractReportLayout ()
 
virtual QString anchorAt (int pageNumber, QPoint pos)=0
 
virtual QFont defaultFont () const =0
 
virtual void ensureLayouted ()=0
 
virtual void finishHtmlExport ()=0
 
virtual qreal idealWidth ()=0
 
virtual qreal layoutAsOnePage (qreal width)=0
 
virtual int maximumNumberOfPagesForHorizontalScaling () const =0
 
virtual int maximumNumberOfPagesForVerticalScaling () const =0
 
virtual int numberOfPages ()=0
 
AbstractReportLayoutoperator= (const AbstractReportLayout &other)=delete
 
virtual void paintPageContent (int pageNumber, QPainter &painter)=0
 
virtual bool scaleTo (int numPagesHorizontally, int numPagesVertically)=0
 
virtual void setDefaultFont (const QFont &font)=0
 
virtual void setFixedRowHeight (qreal height)=0
 
virtual void setLayoutDirty ()=0
 
virtual void setPageContentSize (QSizeF size)=0
 
virtual void setUserRequestedFontScalingFactor (qreal factor)=0
 
virtual QString toHtml () const =0
 
virtual void updateTextValue (const QString &id, const QString &newValue)=0
 
virtual qreal userRequestedFontScalingFactor () const =0
 

Detailed Description

Definition at line 26 of file KDReportsAbstractReportLayout_p.h.

Constructor & Destructor Documentation

◆ AbstractReportLayout() [1/2]

KDReports::AbstractReportLayout::AbstractReportLayout ( )

Definition at line 13 of file KDReportsAbstractReportLayout.cpp.

◆ ~AbstractReportLayout()

KDReports::AbstractReportLayout::~AbstractReportLayout ( )
virtual

Definition at line 17 of file KDReportsAbstractReportLayout.cpp.

◆ AbstractReportLayout() [2/2]

KDReports::AbstractReportLayout::AbstractReportLayout ( const AbstractReportLayout other)
delete

Member Function Documentation

◆ anchorAt()

virtual QString KDReports::AbstractReportLayout::anchorAt ( int  pageNumber,
QPoint  pos 
)
pure virtual

◆ defaultFont()

virtual QFont KDReports::AbstractReportLayout::defaultFont ( ) const
pure virtual

◆ ensureLayouted()

virtual void KDReports::AbstractReportLayout::ensureLayouted ( )
pure virtual

◆ finishHtmlExport()

virtual void KDReports::AbstractReportLayout::finishHtmlExport ( )
pure virtual

◆ idealWidth()

virtual qreal KDReports::AbstractReportLayout::idealWidth ( )
pure virtual

Returns the width that could be used when exporting to an image, for instance. Unrelated to any paper sizes, just from the contents. The returned width is in pixels.

Implemented in KDReports::TextDocReportLayout, and KDReports::SpreadsheetReportLayout.

◆ layoutAsOnePage()

virtual qreal KDReports::AbstractReportLayout::layoutAsOnePage ( qreal  width)
pure virtual

◆ maximumNumberOfPagesForHorizontalScaling()

virtual int KDReports::AbstractReportLayout::maximumNumberOfPagesForHorizontalScaling ( ) const
pure virtual

◆ maximumNumberOfPagesForVerticalScaling()

virtual int KDReports::AbstractReportLayout::maximumNumberOfPagesForVerticalScaling ( ) const
pure virtual

◆ numberOfPages()

virtual int KDReports::AbstractReportLayout::numberOfPages ( )
pure virtual

◆ operator=()

AbstractReportLayout& KDReports::AbstractReportLayout::operator= ( const AbstractReportLayout other)
delete

◆ paintPageContent()

virtual void KDReports::AbstractReportLayout::paintPageContent ( int  pageNumber,
QPainter &  painter 
)
pure virtual

◆ scaleTo()

virtual bool KDReports::AbstractReportLayout::scaleTo ( int  numPagesHorizontally,
int  numPagesVertically 
)
pure virtual

◆ setDefaultFont()

virtual void KDReports::AbstractReportLayout::setDefaultFont ( const QFont &  font)
pure virtual

◆ setFixedRowHeight()

virtual void KDReports::AbstractReportLayout::setFixedRowHeight ( qreal  height)
pure virtual

◆ setLayoutDirty()

virtual void KDReports::AbstractReportLayout::setLayoutDirty ( )
pure virtual

◆ setPageContentSize()

virtual void KDReports::AbstractReportLayout::setPageContentSize ( QSizeF  size)
pure virtual

Sets the size of the "page content": i.e. the body of the report, not including the page headers+footers. The size is in pixels.

Implemented in KDReports::TextDocReportLayout, and KDReports::SpreadsheetReportLayout.

◆ setUserRequestedFontScalingFactor()

virtual void KDReports::AbstractReportLayout::setUserRequestedFontScalingFactor ( qreal  factor)
pure virtual

◆ toHtml()

virtual QString KDReports::AbstractReportLayout::toHtml ( ) const
pure virtual

◆ updateTextValue()

virtual void KDReports::AbstractReportLayout::updateTextValue ( const QString &  id,
const QString &  newValue 
)
pure virtual

◆ userRequestedFontScalingFactor()

virtual qreal KDReports::AbstractReportLayout::userRequestedFontScalingFactor ( ) const
pure virtual

The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1