KD Reports API Documentation
2.2
|
Classes | |
class | AbstractReportLayout |
class | AbstractTableElement |
class | AutoTableElement |
class | Cell |
class | ChartElement |
class | Element |
struct | ElementData |
class | ErrorDetails |
class | ErrorDetailsPrivate |
class | FontScaler |
class | Frame |
class | Header |
class | HeaderMap |
class | HeaderPrivate |
class | HeaderReportBuilder |
class | HLineElement |
class | HLineTextObject |
class | HtmlElement |
class | ImageElement |
class | MainTable |
class | PreviewDialog |
class | PreviewWidget |
class | Report |
class | ReportBuilder |
class | ReportPrivate |
class | SpreadsheetReportLayout |
class | TableBreakingLogic |
class | TableBreakingSettingsDialog |
class | TableElement |
class | TableLayout |
class | TextDocReportLayout |
class | TextDocument |
class | TextDocumentData |
class | TextElement |
class | XmlElementHandler |
class | XmlHelper |
class | XmlParser |
Typedefs | |
using | CellContentMap = QMap< QPair< int, int >, Cell > |
typedef Header | Footer |
using | XmlElementHandlerPrivateV2 = XmlElementHandlerPrivate |
Enumerations | |
enum | { HeaderColumnsProperty = QTextFormat::UserProperty + 248 } |
enum | HeaderLocation { FirstPage = 1 , EvenPages = 2 , OddPages = 4 , LastPage = 8 , AllPages = OddPages | EvenPages } |
enum | Unit { Millimeters , Percent } |
enum | VariableType { PageNumber , PageCount , TextDate , ISODate , LocaleDate , TextTime , ISOTime , LocaleTime , SystemLocaleShortDate , SystemLocaleLongDate , DefaultLocaleShortDate , DefaultLocaleLongDate , NVariableTypes } |
Functions | |
void | cleanupVariableProperties (QTextCharFormat &charFormat) |
KDREPORTS_EXPORT qreal | mmToPixels (qreal mm) |
QAbstractItemModel * | modelForKey (const QString &key) |
KDREPORTS_EXPORT qreal | pixelsToPointsMultiplier (double resolution) |
void | setVariableMarker (QTextDocument &textDoc, int pos, KDReports::VariableType variableType, int valueLength) |
QString | variableValue (int pageNumber, KDReports::Report *report, VariableType type) |
Variables | |
static const int | ResizableImageProperty = QTextFormat::UserProperty + 5984 |
This is the namespace that contains all KDReports classes and some enums that do not belong to a particular class.
using KDReports::CellContentMap = typedef QMap<QPair<int , int >, Cell> |
Definition at line 24 of file KDReportsTableElement.cpp.
typedef Header KDReports::Footer |
Definition at line 122 of file KDReportsHeader.h.
using KDReports::XmlElementHandlerPrivateV2 = typedef XmlElementHandlerPrivate |
Definition at line 259 of file KDReportsXmlElementHandler.h.
anonymous enum |
Enumerator | |
---|---|
HeaderColumnsProperty |
Definition at line 42 of file KDReportsTextDocument_p.h.
If no header was specified for the first and last pages, then the even/odd headers are used for those.
Definition at line 59 of file KDReportsReport.h.
enum KDReports::Unit |
Units used when setting a size.
Enumerator | |
---|---|
Millimeters | Millimeters (the default) |
Percent | Percentage of the text width, i.e. the page width minus margins. |
Definition at line 19 of file KDReportsUnit.h.
Type of variable
Definition at line 23 of file KDReportsVariableType.h.
void KDReports::cleanupVariableProperties | ( | QTextCharFormat & | charFormat | ) |
Definition at line 101 of file KDReportsHeader.cpp.
References ResizableImageProperty, VariableLengthProperty, and VariableTypeProperty.
Referenced by KDReports::TextElement::build().
QT_END_NAMESPACE qreal KDReports::mmToPixels | ( | qreal | mm | ) |
Definition at line 17 of file KDReportsLayoutHelper.cpp.
References qt_defaultDpi().
Referenced by KDReports::ReportBuilder::addVerticalSpacing(), KDReports::ImageElement::build(), KDReports::Frame::build(), KDReports::HLineElement::build(), KDReports::ReportPrivate::ensureLayouted(), KDReports::Report::exportToImage(), KDReports::AbstractTableElement::fillTableFormat(), KDReports::ReportPrivate::layoutAsOnePage(), KDReports::ReportPrivate::mainTextDocHeight(), KDReports::ReportPrivate::mainTextDocRect(), KDReports::Report::mmToPixels(), KDReports::ReportPrivate::paperSize(), KDReports::ReportPrivate::rawMainTextDocHeight(), KDReports::Report::setFixedRowHeight(), KDReports::Report::setPaperSize(), KDReports::ReportPrivate::setPaperSizeFromPrinter(), KDReports::ReportBuilder::setTabPositions(), KDReports::Report::setWidthForEndlessPrinter(), KDReports::ReportPrivate::textDocumentWidth(), and KDReports::TableLayout::updateColumnWidths().
QAbstractItemModel * KDReports::modelForKey | ( | const QString & | key | ) |
Definition at line 421 of file KDReportsReport.cpp.
Referenced by KDReports::AutoTableElement::AutoTableElement(), KDReports::ChartElement::ChartElement(), KDReports::AutoTableElement::setModelKey(), and KDReports::ChartElement::setModelKey().
qreal KDReports::pixelsToPointsMultiplier | ( | double | resolution | ) |
Definition at line 23 of file KDReportsLayoutHelper.cpp.
Referenced by KDReports::Report::print().
void KDReports::setVariableMarker | ( | QTextDocument & | textDoc, |
int | pos, | ||
KDReports::VariableType | variableType, | ||
int | valueLength | ||
) |
Definition at line 89 of file KDReportsHeader.cpp.
References ResizableImageProperty, VariableLengthProperty, and VariableTypeProperty.
Referenced by KDReports::ReportBuilder::addVariable().
QString KDReports::variableValue | ( | int | pageNumber, |
KDReports::Report * | report, | ||
VariableType | type | ||
) |
Definition at line 56 of file KDReportsHeader.cpp.
References DefaultLocaleLongDate, DefaultLocaleShortDate, ISODate, ISOTime, LocaleDate, LocaleTime, KDReports::Report::numberOfPages(), PageCount, PageNumber, SystemLocaleLongDate, SystemLocaleShortDate, TextDate, and TextTime.
Referenced by KDReports::ReportBuilder::addVariable().
|
static |
Definition at line 38 of file KDReportsLayoutHelper_p.h.
Referenced by KDReports::ImageElement::build(), cleanupVariableProperties(), setVariableMarker(), KDReports::TextDocumentData::updatePercentSize(), and KDReports::TextDocumentData::updatePercentSizes().