KD Reports API Documentation  2.2
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
KDReports::TextDocumentData Class Reference

#include <KDReportsTextDocumentData_p.h>

Public Types

enum  ModificationMode { Append , Modify }
 

Public Member Functions

 TextDocumentData ()
 
 TextDocumentData (const TextDocumentData &)=delete
 
 ~TextDocumentData ()
 
void aboutToModifyContents (ModificationMode mode)
 
void addResourceName (const QString &resourceName)
 
QString asHtml () const
 
QList< KDReports::AutoTableElement * > autoTableElements ()
 
QTextDocument & document ()
 
const QTextDocument & document () const
 
void layoutWithTextWidth (qreal w)
 
TextDocumentDataoperator= (const TextDocumentData &)=delete
 
void regenerateAutoTableForModel (QAbstractItemModel *model)
 
void regenerateAutoTables ()
 
void registerAutoTable (QTextTable *table, const KDReports::AutoTableElement *element)
 
void registerTable (QTextTable *table)
 
void saveResourcesToFiles ()
 
void scaleFontsBy (qreal factor)
 
void setHasResizableImages ()
 
void setPageSize (QSizeF size)
 
void setTextValueMarker (int pos, const QString &id, int valueLength, bool html)
 
void setUsesTabPositions (bool usesTabs)
 
void updatePercentSizes (QSizeF size)
 
void updateTextValue (const QString &id, const QString &newValue)
 

Static Public Member Functions

static void updatePercentSize (QTextImageFormat &format, QSizeF size)
 

Detailed Description

Definition at line 37 of file KDReportsTextDocumentData_p.h.

Member Enumeration Documentation

◆ ModificationMode

Enumerator
Append 
Modify 

Definition at line 57 of file KDReportsTextDocumentData_p.h.

Constructor & Destructor Documentation

◆ TextDocumentData() [1/2]

KDReports::TextDocumentData::TextDocumentData ( )
explicit

◆ ~TextDocumentData()

KDReports::TextDocumentData::~TextDocumentData ( )

Definition at line 34 of file KDReportsTextDocumentData.cpp.

◆ TextDocumentData() [2/2]

KDReports::TextDocumentData::TextDocumentData ( const TextDocumentData )
delete

Member Function Documentation

◆ aboutToModifyContents()

void KDReports::TextDocumentData::aboutToModifyContents ( ModificationMode  mode)

Definition at line 53 of file KDReportsTextDocumentData.cpp.

◆ addResourceName()

void KDReports::TextDocumentData::addResourceName ( const QString &  resourceName)

Definition at line 400 of file KDReportsTextDocumentData.cpp.

Referenced by KDReports::ImageElement::build().

◆ asHtml()

QString KDReports::TextDocumentData::asHtml ( ) const

◆ autoTableElements()

QList<KDReports::AutoTableElement *> KDReports::TextDocumentData::autoTableElements ( )

◆ document() [1/2]

QTextDocument& KDReports::TextDocumentData::document ( )
inline

Definition at line 46 of file KDReportsTextDocumentData_p.h.

◆ document() [2/2]

const QTextDocument& KDReports::TextDocumentData::document ( ) const
inline

Definition at line 50 of file KDReportsTextDocumentData_p.h.

◆ layoutWithTextWidth()

void KDReports::TextDocumentData::layoutWithTextWidth ( qreal  w)

Definition at line 175 of file KDReportsTextDocumentData.cpp.

◆ operator=()

TextDocumentData& KDReports::TextDocumentData::operator= ( const TextDocumentData )
delete

◆ regenerateAutoTableForModel()

void KDReports::TextDocumentData::regenerateAutoTableForModel ( QAbstractItemModel *  model)

◆ regenerateAutoTables()

void KDReports::TextDocumentData::regenerateAutoTables ( )

◆ registerAutoTable()

void KDReports::TextDocumentData::registerAutoTable ( QTextTable *  table,
const KDReports::AutoTableElement element 
)

For autotables, let's also remember the AutoTableElement, to be able to regenerate them (when modifying options in the table breaking dialog)

Definition at line 311 of file KDReportsTextDocumentData.cpp.

Referenced by KDReports::AutoTableElement::build().

◆ registerTable()

void KDReports::TextDocumentData::registerTable ( QTextTable *  table)

Break all tables in the document

Returns
the number of horizontal pages used

Definition at line 234 of file KDReportsTextDocumentData.cpp.

Referenced by KDReports::TableElement::build().

◆ saveResourcesToFiles()

void KDReports::TextDocumentData::saveResourcesToFiles ( )

Definition at line 389 of file KDReportsTextDocumentData.cpp.

◆ scaleFontsBy()

void KDReports::TextDocumentData::scaleFontsBy ( qreal  factor)

Definition at line 239 of file KDReportsTextDocumentData.cpp.

◆ setHasResizableImages()

void KDReports::TextDocumentData::setHasResizableImages ( )

Definition at line 405 of file KDReportsTextDocumentData.cpp.

Referenced by KDReports::ImageElement::build().

◆ setPageSize()

void KDReports::TextDocumentData::setPageSize ( QSizeF  size)

Definition at line 184 of file KDReportsTextDocumentData.cpp.

◆ setTextValueMarker()

void KDReports::TextDocumentData::setTextValueMarker ( int  pos,
const QString &  id,
int  valueLength,
bool  html 
)

◆ setUsesTabPositions()

void KDReports::TextDocumentData::setUsesTabPositions ( bool  usesTabs)

Definition at line 410 of file KDReportsTextDocumentData.cpp.

◆ updatePercentSize()

void KDReports::TextDocumentData::updatePercentSize ( QTextImageFormat &  format,
QSizeF  size 
)
static

◆ updatePercentSizes()

void KDReports::TextDocumentData::updatePercentSizes ( QSizeF  size)

Definition at line 121 of file KDReportsTextDocumentData.cpp.

References KDReports::ResizableImageProperty.

◆ updateTextValue()

void KDReports::TextDocumentData::updateTextValue ( const QString &  id,
const QString &  newValue 
)

Definition at line 91 of file KDReportsTextDocumentData.cpp.


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