# NCReport API index

Every class exported by the NCReport 2.36.0 engine library, with its public and protected members as
declared in the headers. Generated by `tools/skill/api_index.py` in the NCReport source tree; do not edit by hand.

**If a class, method, signal or enum value is not in this file, it does not exist in this version.** Search the
file for a name (`grep -n "NCReport::runReportTo" api-index.md`) instead of reading it whole. Each line is a
declaration with its class prefixed, default arguments as written in the header (`Q_NULLPTR` = `nullptr`).
Protected members are listed for subclassing (custom data sources, outputs, renderers).

Markers at the end of a line:

- `[preview]` only when the engine is built with the preview module (`NCR_PREVIEW_MODULE`, the default)
- `[qprinter]` not in builds without QPrinter (`DISABLED_FEATURES += qprinter`, e.g. Android, iOS)
- `[item view]` not in builds without the table view item (`DISABLED_FEATURES += table_view`)
- `[desktop]` not in builds with `DISABLED_FEATURES += desktop`

## Classes

- `NCReport` : public QObject (`ncreport.h`)
- `NCReportAbstractItemRendering` : public NCReportGraphRenderer (`ncreportabstractitemrendering.h`)
- `NCReportBarcodeItem` : public NCReportItem (`barcode/ncreportbarcodeitem.h`)
- `NCReportCrossTabIndex` (`ncreportcrosstabitem.h`)
- `NCReportCrossTabItem` : public NCReportItem (`ncreportcrosstabitem.h`)
- `NCReportCrossTabItem::PrintedRange` (`ncreportcrosstabitem.h`)
- `NCReportCrossTabItemCell` (`ncreportcrosstabitemcell.h`)
- `NCReportCrossTabItemCell::CellBorder` (`ncreportcrosstabitemcell.h`)
- `NCReportCustomDSProvider` : public QObject (`ncreportcustomdsprovider.h`)
- `NCReportData` (`ncreportdata.h`)
- `NCReportDataFieldInfo` (`ncreportdatafieldinfo.h`)
- `NCReportDataSource` : public QObject (`ncreportdatasource.h`)
- `NCReportDataSourceFactory` (`ncreportdatasourcefactory.h`)
- `NCReportDef` : public QObject (`ncreportdef.h`)
- `NCReportDummyDataSourceFactory` : public NCReportDataSourceFactory (`ncreportdummydatasourcefactory.h`)
- `NCReportEllipseItem` : public NCReportShapeItem (`ncreportellipseitem.h`)
- `NCReportError` (`ncreportdef.h`)
- `NCReportEvaluator` (`ncreportevaluator.h`)
- `NCReportExcelHtmlOutput` : public NCReportHtmlOutput (`ncreportexcelhtmloutput.h`)
- `NCReportFactory` (`ncreportfactory.h`)
- `NCReportFieldItem` : public NCReportLabelItem (`ncreportfielditem.h`)
- `NCReportGraphicsViewItem` : public NCReportItem (`NCReportGraphicsViewItem.h`)
- `NCReportGraphItem` : public NCReportItem (`ncreportgraphitem.h`)
- `NCReportGraphRenderer` (`ncreportgraphrenderer.h`)
- `NCReportGroup` (`ncreportgroup.h`)
- `NCReportGroup::GroupMetaInfo` (`ncreportgroup.h`)
- `NCReportHtmlOutput` : public NCReportMarkupLanguageOutput (`ncreporthtmloutput.h`)
- `NCReportHttpClient` : public QObject (`ncreporthttpclient.h`)
- `NCReportImageItem` : public NCReportItem (`ncreportimageitem.h`)
- `NCReportImageOutput` : public NCReportOutput (`ncreportimageoutput.h`)
- `NCReportItem` : public QGraphicsItem (`ncreportitem.h`)
- `NCReportItemData` : public NCReportData (`ncreportitem.h`)
- `NCReportItemModelDataSource` : public NCReportDataSource (`ncreportitemmodeldatasource.h`)
- `NCReportLabelItem` : public NCReportItem (`ncreportlabelitem.h`)
- `NCReportLineItem` : public NCReportShapeItem (`ncreportlineitem.h`)
- `NCReportMarkupLanguageOutput` : public NCReportOutput (`ncreportmarkuplanguageoutput.h`)
- `NCReportOutput` : public QObject (`ncreportoutput.h`)
- `NCReportPageOption` (`ncreportpageoption.h`)
- `NCReportPageOption::PageData` (`ncreportpageoption.h`)
- `NCReportParameter` : public NCReportData (`ncreportparameter.h`)
- `NCReportPdfOutput` : public NCReportPrinterOutput (`ncreportpdfoutput.h`) `[qprinter]`
- `NCReportPdfWriterOutput` : public NCReportOutput (`ncreportpdfwriteroutput.h`)
- `NCReportPreviewDialog` : public QDialog (`preview/ncreportpreviewdialog.h`) `[preview]`
- `NCReportPreviewIcons` : public QObject (`preview/ncreportpreviewicons.h`) `[preview]`
- `NCReportPreviewOutput` : public NCReportOutput (`preview/ncreportpreviewoutput.h`)
- `NCReportPreviewPage` : public QWidget (`preview/ncreportpreviewpage.h`)
- `NCReportPreviewPageContainer` : public QWidget (`preview/ncreportpreviewpagecontainer.h`)
- `NCReportPreviewWindow` : public QMainWindow (`preview/ncreportpreviewwindow.h`) `[preview]`
- `NCReportPrinter` (`ncreportprinter.h`)
- `NCReportPrinterOutput` : public NCReportOutput (`ncreportprinteroutput.h`) `[qprinter]`
- `NCReportQtPreviewOutput` : public NCReportPrinterOutput (`preview/ncreportqtpreviewoutput.h`) `[qprinter]`
- `NCReportRectItem` : public NCReportShapeItem (`ncreportrectitem.h`)
- `NCReportScale` (`ncreportscale.h`)
- `NCReportScript` (`ncreportdef.h`)
- `NCReportSection` (`ncreportsection.h`)
- `NCReportShapeItem` : public NCReportItem (`ncreportshapeitem.h`)
- `NCReportSource` (`ncreportsource.h`)
- `NCReportSourceFactory` (`ncreportsourcefactory.h`)
- `NCReportSQLDataSource` : public NCReportDataSource (`ncreportsqldatasource.h`)
- `NCReportStringListDataSource` : public NCReportDataSource (`ncreportstringlistdatasource.h`)
- `NCReportSvgOutput` : public NCReportOutput (`ncreportsvgoutput.h`)
- `NCReportTableItem` : public NCReportItem (`ncreporttableitem.h`) `[item view]`
- `NCReportTextDataSource` : public NCReportDataSource (`ncreporttextdatasource.h`)
- `NCReportTextItem` : public NCReportItem (`ncreporttextitem.h`)
- `NCReportTextOutput` : public NCReportOutput (`ncreporttextoutput.h`)
- `NCReportUserFunction` (`ncreportuserfunction.h`)
- `NCReportUtils` (`ncreportutils.h`)
- `NCReportUtils::id2D` (`ncreportutils.h`)
- `NCReportVariable` : public NCReportData (`ncreportvariable.h`)
- `NCReportVariable::VarAmount` (`ncreportvariable.h`)
- `NCReportWidgetRenderer` : public NCReportGraphRenderer (`ncreportwidgetrenderer.h`)
- `NCReportXMLDataSource` : public NCReportDataSource (`ncreportxmldatasource.h`)
- `NCReportXMLDefReader` : public NCReportXMLReader (`ncreportxmldefreader.h`)
- `NCReportXMLDefWriter` : public NCReportXMLWriter (`ncreportxmldefwriter.h`)
- `NCReportXMLReader` : public QXmlStreamReader (`ncreportxmlreader.h`)
- `NCReportXMLWriter` : public QXmlStreamWriter (`ncreportxmlwriter.h`)

## NCReport

Inherits `QObject`. `#include "ncreport.h"`

```cpp
// public:
NCReport::NCReport( QObject *parent= Q_NULLPTR );
enum NCReport::ReportType { Report=0, TextDocumentPrint, Label };
enum NCReport::LabelDirection { Horizontal=0, Vertical };
enum NCReport::PdfVersion { Pdf1_4=0, PdfA1b, Pdf1_6 };
static const QString NCReport::version();
static const QString NCReport::info();
void NCReport::reset( bool all=false );
void NCReport::reset(bool clearRenderers, bool clearParameters, bool clearUserFunctions, bool clearStringLists, bool clearBatchReports, bool keepCustomDataSources = true );
void NCReport::setReportSourceType( NCReportSource::ReportSourceType type );
void NCReport::setReportSourceFactory( NCReportSourceFactory* factory );
NCReportSourceFactory* NCReport::reportSourceFactory() const;
void NCReport::setReportSource( NCReportSource *reportSource);
void NCReport::setOutput( NCReportOutput*, bool deleteLast=true );
void NCReport::setReportFile(const QString& , bool saveToApp = true);
QString NCReport::reportFile() const;
void NCReport::setReportDef( const QString& xml );
void NCReport::setReportDefXml( const QString& xml );
QString NCReport::reportDefXml() const;
void NCReport::setForceCopies( int );
void NCReport::setUseWaitCursor( bool );
void NCReport::setTextDocument( QTextDocument* );
void NCReport::setPageProgressText( const QString& );
QString NCReport::pageProgressText() const;
void NCReport::setReportBatch( const QStringList& );
void NCReport::addReportToBatch( const QString& reportXML );
void NCReport::addReportToBatch( const QString& reportXML, const QHash<QString,QVariant>& inAssociatedParameters );
void NCReport::addReportToBatch(NCReport *report );
void NCReport::clearBatch();
bool NCReport::isBatchMode() const;
void NCReport::setCurrentLanguage( const QString& langcode );
void NCReport::setCountry( QLocale::Country country );
void NCReport::addParameter( const QString& id, const QVariant& value );
void NCReport::addCustomDataSource( NCReportDataSource* );
void NCReport::addDataSource(NCReportDataSource *ds);
void NCReport::setCustomDataSourceFactory( NCReportDataSourceFactory* );
void NCReport::addItemRenderingClass(NCReportGraphRenderer* renderer);
void NCReport::addGraphItemRenderer(NCReportGraphRenderer* renderer);
void NCReport::addStringList( const QStringList& list, const QString& id );
void NCReport::addStringList( const QString& id, const QStringList& list );
void NCReport::addItemModel( QAbstractItemModel* model, const QString& id );
void NCReport::addItemModel( const QString& id, QAbstractItemModel* model );
void NCReport::setCustomData(const QString& data);
QString NCReport::customData() const;
void NCReport::addItemView( const QString& id, QAbstractItemView* itemView );  // [item view]
void NCReport::addUserFunction( const QString &id, NCReportUserFunction *function );
bool NCReport::hasError();
QString NCReport::lastErrorMsg();
NCReportOutput *NCReport::output();
NCReportSource* NCReport::reportSource() const;
NCReportDataSource *NCReport::dataSource( const QString& );
NCReportDef *NCReport::reportDef();
ReportType NCReport::reportType() const;
QTextDocument *NCReport::document();
int NCReport::runTimeElapsed() const;
NCReportPrinter::PrinterMode NCReport::printQuality() const;
int NCReport::printResolution() const;
void NCReport::setPrintQuality( NCReportPrinter::PrinterMode );
void NCReport::setPrintResolution(int);
NCReportPreviewWindow *NCReport::createPreviewWindow( QWidget* parent = Q_NULLPTR);  // [preview]
QWidget* NCReport::runReportToShowPreview(QWidget *parent = Q_NULLPTR, bool maximized = false);  // [preview]
bool NCReport::runReportToShowPreviewDonePrint();  // [preview]
QWidget* NCReport::execPreview(NCReportOutput* output, QWidget *parent=Q_NULLPTR, bool maximized = false);  // [preview]
QVariant NCReport::getParameter( const QString& id, const QVariant& value, QWidget* parent, const QString & title, const QString & label, bool* ok );  // [desktop]
int NCReport::pageCount() const;
bool NCReport::reportDone() const;
void NCReport::setShowWaitCursor( bool set );
bool NCReport::showWaitCursor() const;
void NCReport::setRootDir( const QString& rootDir );
void NCReport::setProcessEvents( bool enable );
bool NCReport::isProcessEvents() const;
void NCReport::setConnectionName( const QString& connectionName );
QString NCReport::connectionName() const;
void NCReport::setEvaluator( NCReportEvaluator* evaluator);
NCReportEvaluator *NCReport::evaluator();
QString NCReport::zintPath() const;
void NCReport::setZintPath( const QString& dir );
void NCReport::setRotationAngle( int angle );
int NCReport::rotationAngle() const;
void NCReport::setPageRanges( const QString& ranges );
QString NCReport::pageRanges() const;
void NCReport::setAlternateRowBackgroundColor( const QColor& color );
QColor NCReport::alternateRowBackgroundColor() const;
const QList<NCReport*> & NCReport::batchReports() const;
const QStringList & NCReport::batchReportFiles() const;
void NCReport::setBatchModePageBreakBetweenPages(bool set);
bool NCReport::isBatchModePageBreakBetweenPages() const;
// signals:
void NCReport::reportStarts();
void NCReport::reportEnds();
void NCReport::dataSourceOpen( const QString& dsID );
void NCReport::dataSourceOpened( const QString& dsID, int totalRows);
void NCReport::dataRowProgress( const QString& dsID, int row );
void NCReport::dataRowProgress( int row );
void NCReport::dataRowCount( int numRows );
void NCReport::sectionProgress( const QString& sectionID );
void NCReport::pageProgress( int page );
void NCReport::pageProgress( const QString& );
void NCReport::showQtPreviewDialog();
void NCReport::dataSourceUpdateRequestFKey(const QString& dataSourceID, const QString& foreignKeyValue);
void NCReport::dataSourceUpdateRequest(const QString& dataSourceID, const QString& data);
void NCReport::reportDefChange( NCReportDef* );
void NCReport::batchReportRunning(int reportNumber);
void NCReport::customizePrinter(QPrinter*);
// public slots:
bool NCReport::runReport();
void NCReport::runReportToPrinter( int copies=1, bool showdialog=true, QWidget* parent=Q_NULLPTR, const QString &printerName = QString(), const QString& docName = QString() );
void NCReport::runReportToPrinterNoDialog( int copies, const QString& printerName, const QString& docName = QString() );
void NCReport::runReportToPreview();  // [preview]
void NCReport::runReportToModernPreview(int dpi, const QString &outputFileName, QWidget* parent);  // [preview]
void NCReport::runReportToQtPreview(QWidget* parent);  // [preview]
void NCReport::runReportToPdf(const QString& filename, bool overwrite = true, PdfVersion version = Pdf1_4, const QString &creator = QString());
void NCReport::runReportToPdfWriter(const QString& filename, int dpi = 600, bool overwrite = true, PdfVersion version = Pdf1_4, const QString &creator = QString(), const QString& title = QString(), const QByteArray& xmpMetaData = QByteArray());
void NCReport::runReportToPdfWriter(QIODevice* device, int dpi = 600, PdfVersion version = Pdf1_4, const QString &creator = QString(), const QString& title = QString(), const QByteArray& xmpMetaData = QByteArray());
void NCReport::runReportToPostScript( const QString& filename );
void NCReport::runReportToSVG( const QString& filename );
void NCReport::runReportToImage( const QString& filename );
void NCReport::runReportToHTML(const QString& filename, int strategy=0, const QString& cssFile = QString() );
void NCReport::runReportToHtml(const QString& filename, int strategy=0, const QString& cssFile = QString() );
void NCReport::runReportToExcelHtml(const QString& filename );
void NCReport::runReportToText( const QString& filename, const QString &templateFileName );
void NCReport::cancel();
void NCReport::setLastPagePositionMM( const QPointF& position );
QPointF NCReport::lastPagePositionMM() const;
void NCReport::setParentWidget(QWidget* parent);
QWidget *NCReport::parentWidget() const;
bool NCReport::getParameters();
void NCReport::emitDataSourceOpen( const QString& dsID );
void NCReport::emitDataSourceOpened( const QString& dsID, int totalRows );
void NCReport::emitDataRowProgress( const QString& dsID, int row );
void NCReport::emitDataRowProgress( int row );
void NCReport::emitDataRowCount(int count );
void NCReport::emitPageProgress( int page );
void NCReport::onSectionProgress( const QString& sectionID );
// protected:
virtual void NCReport::customizeReportDef( NCReportDef* );
```

## NCReportAbstractItemRendering

Inherits `NCReportGraphRenderer`. `#include "ncreportabstractitemrendering.h"`

```cpp
// public:
NCReportAbstractItemRendering::NCReportAbstractItemRendering();
virtual void NCReportAbstractItemRendering::paintItem( QPainter* painter, NCReportOutput* output, const QRectF& rect, const QString& itemdata ) =0;
```

## NCReportBarcodeItem

Inherits `NCReportItem`. `#include "ncreportbarcodeitem.h"`

```cpp
// public:
NCReportBarcodeItem::NCReportBarcodeItem( NCReportDef* rdef, QGraphicsItem* parent =0);
enum NCReportBarcodeItem::Renderer { NativeSvgRenderer, FastRenderer };
enum NCReportBarcodeItem::GenStrategy { Memory, TempFile };
bool NCReportBarcodeItem::read( NCReportXMLReader* );
bool NCReportBarcodeItem::write( NCReportXMLWriter* );
void NCReportBarcodeItem::setDefaultForEditor();
void NCReportBarcodeItem::paint( NCReportOutput* o, const QPointF& mPos );
void NCReportBarcodeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPixmap NCReportBarcodeItem::toPixmap(const QSize & size);
QImage NCReportBarcodeItem::toImage(const QSize & size);
QString NCReportBarcodeItem::barcodeName( uint type ) const;
void NCReportBarcodeItem::getAllTypes(std::list<int> &types);
uint NCReportBarcodeItem::barcodeType() const;
void NCReportBarcodeItem::setBarcodeType(uint type);
bool NCReportBarcodeItem::isShowCode() const;
void NCReportBarcodeItem::setShowCode(bool set);
bool NCReportBarcodeItem::isComposite() const;
int NCReportBarcodeItem::borderWidth() const;
void NCReportBarcodeItem::setBorderWidth(int w);
int NCReportBarcodeItem::borderType() const;
void NCReportBarcodeItem::setBorderType(int t);
int NCReportBarcodeItem::whiteSpace() const;
void NCReportBarcodeItem::setWhiteSpace(int ws);
qreal NCReportBarcodeItem::scale() const;
void NCReportBarcodeItem::setScale(qreal scale);
int NCReportBarcodeItem::heightRatio() const;
void NCReportBarcodeItem::setHeightRatio(int h);
QColor NCReportBarcodeItem::foreColor() const;
void NCReportBarcodeItem::setForeColor( const QColor& color );
QColor NCReportBarcodeItem::backColor() const;
void NCReportBarcodeItem::setBackColor( const QColor& color );
QString NCReportBarcodeItem::primaryText() const;
void NCReportBarcodeItem::setPrimaryText( const QString& ctxt );
int NCReportBarcodeItem::rotation() const;
void NCReportBarcodeItem::setRotation( int val );
void NCReportBarcodeItem::setColumns(int val);
int NCReportBarcodeItem::columns() const;
void NCReportBarcodeItem::setVersion(int val);
int NCReportBarcodeItem::version() const;
void NCReportBarcodeItem::setSecure(int val);
int NCReportBarcodeItem::secure() const;
void NCReportBarcodeItem::setOption1(int val);
int NCReportBarcodeItem::option1() const;
void NCReportBarcodeItem::setOption2(int val);
int NCReportBarcodeItem::option2() const;
void NCReportBarcodeItem::setOption3(int val);
int NCReportBarcodeItem::option3() const;
void NCReportBarcodeItem::setMode(int val);
int NCReportBarcodeItem::mode() const;
void NCReportBarcodeItem::setAlignment(Qt::Alignment alignment);
Qt::Alignment NCReportBarcodeItem::alignment() const;
void NCReportBarcodeItem::setRenderer(Renderer val);
Renderer NCReportBarcodeItem::renderer() const;
bool NCReportBarcodeItem::updateBarcode();
bool NCReportBarcodeItem::isEmpty() const;
void NCReportBarcodeItem::updateValue(NCReportOutput *output, NCReportEvaluator *evaluator);
QList<int> NCReportBarcodeItem::availableSourceTypes() const;
```

## NCReportCrossTabIndex

`#include "ncreportcrosstabitem.h"`

```cpp
// public:
NCReportCrossTabIndex::NCReportCrossTabIndex();
NCReportCrossTabIndex::NCReportCrossTabIndex(int row, int column);
void NCReportCrossTabIndex::setRow( int row );
void NCReportCrossTabIndex::setColumn( int column );
int NCReportCrossTabIndex::row() const;
int NCReportCrossTabIndex::column() const;
int& NCReportCrossTabIndex::rowRef();
int& NCReportCrossTabIndex::columnRef();
void NCReportCrossTabIndex::reset();
```

## NCReportCrossTabItem

Inherits `NCReportItem`. `#include "ncreportcrosstabitem.h"`

```cpp
// public:
NCReportCrossTabItem::NCReportCrossTabItem( NCReportDef* rdef, QGraphicsItem * parent=0 );
enum NCReportCrossTabItem::TableRegion { HeaderColumn=0, DataColumn, TotalColumn, HeaderRow, DataRow, TotalRow };
enum NCReportCrossTabItem::CellChangeDirection { None=0, Down, Right, NewColumn, NewRow };
bool NCReportCrossTabItem::read( NCReportXMLReader* );
bool NCReportCrossTabItem::write( NCReportXMLWriter* );
void NCReportCrossTabItem::setDefaultForEditor();
void NCReportCrossTabItem::paint(NCReportOutput* output, const QPointF& );
void NCReportCrossTabItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void NCReportCrossTabItem::dummyPaint( NCReportOutput* output, const QPointF& point);
void NCReportCrossTabItem::setDataSource( NCReportDataSource* );
void NCReportCrossTabItem::setDataSourceByID( const QString& id );
NCReportDataSource* NCReportCrossTabItem::dataSource() const;
NCReportDataSource* NCReportCrossTabItem::metaDataSource() const;
QRectF NCReportCrossTabItem::boundingRect() const;
NCReportCrossTabItemCell& NCReportCrossTabItem::cell( int cellType );
void NCReportCrossTabItem::setCell( const NCReportCrossTabItemCell& cell, int cellType );
QString NCReportCrossTabItem::hiddenDataSourceColumns() const;
void NCReportCrossTabItem::setHiddenDataSourceColumns( const QString& columnlist );
qreal NCReportCrossTabItem::tableSpacingMM() const;
void NCReportCrossTabItem::setTableSpacingMM( qreal value );
qreal NCReportCrossTabItem::cellPaddingMM() const;
void NCReportCrossTabItem::setCellPaddingMM( qreal value );
qreal NCReportCrossTabItem::cellSpacingMM() const;
void NCReportCrossTabItem::setCellSpacingMM( qreal value );
qreal NCReportCrossTabItem::leftMarginMM() const;
void NCReportCrossTabItem::setLeftMarginMM( qreal value );
qreal NCReportCrossTabItem::rightMarginMM() const;
void NCReportCrossTabItem::setRightMarginMM( qreal value );
qreal NCReportCrossTabItem::topMarginMM() const;
void NCReportCrossTabItem::setTopMarginMM( qreal value );
qreal NCReportCrossTabItem::bottomMarginMM() const;
void NCReportCrossTabItem::setBottomMarginMM( qreal value );
qreal NCReportCrossTabItem::columnWidthMM() const;
void NCReportCrossTabItem::setColumnWidthMM( qreal value );
qreal NCReportCrossTabItem::rowHeightMM() const;
void NCReportCrossTabItem::setRowHeightMM( qreal value );
bool NCReportCrossTabItem::showColumnHeader() const;
void NCReportCrossTabItem::setShowColumnHeader( bool value );
bool NCReportCrossTabItem::showRowHeader() const;
void NCReportCrossTabItem::setShowRowHeader( bool value );
bool NCReportCrossTabItem::showBottomSummary() const;
void NCReportCrossTabItem::setShowBottomSummary( bool value );
bool NCReportCrossTabItem::showSideSummary() const;
void NCReportCrossTabItem::setShowSideSummary( bool value );
bool NCReportCrossTabItem::breakTable() const;
void NCReportCrossTabItem::setBreakTable( bool value );
QString NCReportCrossTabItem::columnTitleSource() const;
void NCReportCrossTabItem::setColumnTitleSource( const QString& value );
bool NCReportCrossTabItem::isPivotTable() const;
void NCReportCrossTabItem::setPivotTable(bool set);
bool NCReportCrossTabItem::isPivotAutoSort() const;
void NCReportCrossTabItem::setPivotAutoSort(bool set);
short NCReportCrossTabItem::pivotTableAggregation() const;
void NCReportCrossTabItem::setPivotTableAggregation(short value);
QString NCReportCrossTabItem::pivotTableRowSource() const;
void NCReportCrossTabItem::setPivotTableRowSource( const QString& value );
QString NCReportCrossTabItem::pivotTableColumnSource() const;
void NCReportCrossTabItem::setPivotTableColumnSource( const QString& value );
QString NCReportCrossTabItem::pivotTableValueSource() const;
void NCReportCrossTabItem::setPivotTableValueSource( const QString& value );
qreal NCReportCrossTabItem::regionSize( int region ) const;
void NCReportCrossTabItem::setRegionSize( qreal size, int region );
bool NCReportCrossTabItem::isHiddenDataColumn( int column ) const;
// protected:
void NCReportCrossTabItem::setFlagLastRecord( bool value );
void NCReportCrossTabItem::setFlagNoSpaceRight( bool value );
void NCReportCrossTabItem::setFlagNoSpaceBottom( bool value );
void NCReportCrossTabItem::setFlagRowFinished( bool value );
bool NCReportCrossTabItem::isFlagLastRecord() const;
bool NCReportCrossTabItem::isFlagNoSpaceRight() const;
bool NCReportCrossTabItem::isFlagNoSpaceBottom() const;
bool NCReportCrossTabItem::isFlagRowFinished() const;
void NCReportCrossTabItem::prepareDataSource( int& recordPosition, const NCReportCrossTabIndex& index );
```

## NCReportCrossTabItem::PrintedRange

`#include "ncreportcrosstabitem.h"`

```cpp
// public:
int NCReportCrossTabItem::PrintedRange::from;
int NCReportCrossTabItem::PrintedRange::to;
```

## NCReportCrossTabItemCell

`#include "ncreportcrosstabitemcell.h"`

```cpp
// public:
enum NCReportCrossTabItemCell::CellType { CornerHeader=0, ColumnHeader=1, SideSummaryHeader=2, RowHeader=3, Data=4, SideSummaryData=5, BottomSummaryHeader=6, BottomSummaryData=7, CrossSummaryData=8 };
enum NCReportCrossTabItemCell::BorderPos { TopBorder=0, RightBorder, BottomBorder, LeftBorder };
NCReportCrossTabItemCell::NCReportCrossTabItemCell();
void NCReportCrossTabItemCell::paint( NCReportOutput* o, const QRectF& rect, const qreal padding=0 );
void NCReportCrossTabItemCell::paintBorder( BorderPos pos, NCReportOutput* o, const QRectF& rect );
bool NCReportCrossTabItemCell::read(NCReportXMLReader*);
bool NCReportCrossTabItemCell::write(NCReportXMLWriter*);
bool NCReportCrossTabItemCell::readBorder(NCReportXMLReader*);
bool NCReportCrossTabItemCell::writeBorder( BorderPos, NCReportXMLWriter*);
void NCReportCrossTabItemCell::setSizeMM( const QSizeF& size);
QSizeF NCReportCrossTabItemCell::sizeMM() const;
void NCReportCrossTabItemCell::setSizePixel( const QSizeF& size);
QSizeF NCReportCrossTabItemCell::sizePixel() const;
void NCReportCrossTabItemCell::setAlignment( Qt::Alignment flag );
Qt::Alignment NCReportCrossTabItemCell::alignment () const;
void NCReportCrossTabItemCell::setFont( const QFont& font);
QFont& NCReportCrossTabItemCell::font();
void NCReportCrossTabItemCell::setForeColor( const QColor& color);
QColor NCReportCrossTabItemCell::foreColor() const;
void NCReportCrossTabItemCell::setBrush( const QBrush& brush);
QBrush& NCReportCrossTabItemCell::brush();
void NCReportCrossTabItemCell::setBorderPen( const QPen& pen, BorderPos position );
QPen NCReportCrossTabItemCell::borderPen( BorderPos position ) const;
void NCReportCrossTabItemCell::setBorderEnabled( bool enable, BorderPos position );
bool NCReportCrossTabItemCell::isBorderEnabled( BorderPos position ) const;
void NCReportCrossTabItemCell::setType( CellType type );
CellType NCReportCrossTabItemCell::type() const;
QPen& NCReportCrossTabItemCell::pen(const BorderPos i);
qreal NCReportCrossTabItemCell::lineWidth(const BorderPos i) const;
void NCReportCrossTabItemCell::setLineWidth(qreal width, const BorderPos i);
bool NCReportCrossTabItemCell::enabled(const BorderPos i) const;
void NCReportCrossTabItemCell::setEnabled(bool enabled, const BorderPos i);
void NCReportCrossTabItemCell::setFormatString( const QString& format);
QString NCReportCrossTabItemCell::formatString() const;
void NCReportCrossTabItemCell::setNumFormat( int fieldWidth = 0, char format = 'g', int precision = -1, const QChar & fillChar = QLatin1Char( ' ' ) );
void NCReportCrossTabItemCell::setBGMode( Qt::BGMode mode );
Qt::BGMode NCReportCrossTabItemCell::BGMode() const;
void NCReportCrossTabItemCell::setFieldWidth( int fieldWidth );
int NCReportCrossTabItemCell::fieldWidth() const;
void NCReportCrossTabItemCell::setFormatCode( char code );
char NCReportCrossTabItemCell::formatCode() const;
void NCReportCrossTabItemCell::setPrecision( int prec );
int NCReportCrossTabItemCell::precision() const;
void NCReportCrossTabItemCell::setFillChar( const QChar& ch );
QChar NCReportCrossTabItemCell::fillChar() const;
void NCReportCrossTabItemCell::setBlankIfZero( bool set );
bool NCReportCrossTabItemCell::blankIfZero() const;
void NCReportCrossTabItemCell::setLocalized( bool set );
bool NCReportCrossTabItemCell::localized() const;
void NCReportCrossTabItemCell::setFormatted( bool set );
bool NCReportCrossTabItemCell::formatted() const;
void NCReportCrossTabItemCell::setDataType( NCReportData::DataType dt );
NCReportData::DataType NCReportCrossTabItemCell::dataType() const;
void NCReportCrossTabItemCell::setText( const QString& text );
QString NCReportCrossTabItemCell::text() const;
void NCReportCrossTabItemCell::setRotation( qreal value);
qreal NCReportCrossTabItemCell::rotation() const;
void NCReportCrossTabItemCell::setValue( const QVariant& value );
QVariant NCReportCrossTabItemCell::value() const;
QSizeF NCReportCrossTabItemCell::sizeHint(const QRectF& constrainedRect, QPaintDevice* device) const;
CellBorder& NCReportCrossTabItemCell::border( const BorderPos );
```

## NCReportCrossTabItemCell::CellBorder

`#include "ncreportcrosstabitemcell.h"`

```cpp
// public:
NCReportCrossTabItemCell::CellBorder::CellBorder();
QPen NCReportCrossTabItemCell::CellBorder::pen;
bool NCReportCrossTabItemCell::CellBorder::enabled;
qreal NCReportCrossTabItemCell::CellBorder::lineWidth;
```

## NCReportCustomDSProvider

Inherits `QObject`. `#include "ncreportcustomdsprovider.h"`

```cpp
// public:
NCReportCustomDSProvider::NCReportCustomDSProvider( QObject *parent=0);
virtual NCReportDataSource *NCReportCustomDSProvider::createCustomDataSource( const QString& dsID, NCReportDataSource::DataSourceType dstype, QObject* parent ) = 0;
```

## NCReportData

`#include "ncreportdata.h"`

```cpp
// public:
enum NCReportData::DataType { Text=0, Numeric, Date, DateTime, Time, Boolean, Image, Custom };
NCReportData::NCReportData();
NCReportData::NCReportData( DataType );
void NCReportData::setDataType( DataType );
void NCReportData::setDataType( const QString& tname );
void NCReportData::setID( const QString& );
QString NCReportData::id() const;
void NCReportData::setValue( const QVariant&, DataType );
void NCReportData::setValue( const QVariant& );
QVariant NCReportData::value() const;
DataType NCReportData::dataType() const;
QString NCReportData::typeName() const;
QVariant& NCReportData::valueRef();
```

## NCReportDataFieldInfo

`#include "ncreportdatafieldinfo.h"`

```cpp
// public:
NCReportDataFieldInfo::NCReportDataFieldInfo();
NCReportDataFieldInfo::NCReportDataFieldInfo( const QString& name, const QString& briefDescription="", const QString& longDescription="");
NCReportDataFieldInfo::NCReportDataFieldInfo( const NCReportDataFieldInfo& fieldInfo);
NCReportDataFieldInfo& NCReportDataFieldInfo::operator = ( const NCReportDataFieldInfo& fieldInfo);
QString NCReportDataFieldInfo::name() const;
QString NCReportDataFieldInfo::briefDescription() const;
QString NCReportDataFieldInfo::longDescription() const;
```

## NCReportDataSource

Inherits `QObject`. `#include "ncreportdatasource.h"`

```cpp
// public:
NCReportDataSource::NCReportDataSource( QObject *parent=0 );
enum NCReportDataSource::DataSourceType { Sql = 0, Text, Xml, StringList, ItemModel, Custom };
enum NCReportDataSource::LocationType { Static = 0, File, Http, Ftp, Parameter };
enum NCReportDataSource::ConnectionType { Global = 0, Private };
enum NCReportDataSource::OpenRoles { BeginReport = 0, ChildDataSource, GroupChange, SubReport };
void NCReportDataSource::setID( const QString& dsId);
void NCReportDataSource::setId(const QString& dsId);
QString NCReportDataSource::id() const;
void NCReportDataSource::setReportDef( NCReportDef* def );
NCReportDef* NCReportDataSource::reportDef();
void NCReportDataSource::setBriefDescription( const QString& description);
QString NCReportDataSource::briefDescription() const;
void NCReportDataSource::setLongDescription( const QString& description);
QString NCReportDataSource::longDescription() const;
void NCReportDataSource::setDataSourceType( DataSourceType dsType );
void NCReportDataSource::setConnectionType( ConnectionType cType );
void NCReportDataSource::setConnectionName( const QString& name );
void NCReportDataSource::setLocationType( LocationType ltype );
void NCReportDataSource::setFileName( const QString& fileName );
void NCReportDataSource::setEncoding( const QString& encoding );
QString NCReportDataSource::encoding() const;
void NCReportDataSource::setRecordFilter( const QString& filter );
void NCReportDataSource::setSpecText( const QString& txt );
void NCReportDataSource::setSpecification( const QString& txt );
void NCReportDataSource::setErrorHandler( NCReportError* );
void NCReportDataSource::setParentId( const QString& parentId );
QString NCReportDataSource::parentId() const;
void NCReportDataSource::setParentDataSource( NCReportDataSource* ds );
NCReportDataSource* NCReportDataSource::parentDataSource() const;
DataSourceType NCReportDataSource::dataSourceType() const;
ConnectionType NCReportDataSource::connectionType() const;
QString NCReportDataSource::connectionName() const;
LocationType NCReportDataSource::locationType() const;
QString NCReportDataSource::specText() const;
QString NCReportDataSource::specification() const;
QString NCReportDataSource::fileName() const;
QString NCReportDataSource::rawFileName() const;
QString NCReportDataSource::recordFilter() const;
virtual int NCReportDataSource::rowCount() const;
virtual int NCReportDataSource::columnCount() const;
bool NCReportDataSource::allowEmpty();
void NCReportDataSource::setAllowEmpty( bool );
void NCReportDataSource::setParameterId( const QString& id );
QString NCReportDataSource::parameterId() const;
virtual bool NCReportDataSource::read( NCReportXMLReader* reader );
virtual bool NCReportDataSource::write( NCReportXMLWriter* writer );
virtual bool NCReportDataSource::open() =0;
virtual bool NCReportDataSource::close() =0;
virtual bool NCReportDataSource::first() =0;
virtual bool NCReportDataSource::last() =0;
virtual bool NCReportDataSource::next() =0;
virtual bool NCReportDataSource::previous() =0;
virtual bool NCReportDataSource::hasNext() =0;
virtual bool NCReportDataSource::seek( int index )=0;
virtual int NCReportDataSource::size() const =0;
virtual bool NCReportDataSource::update();
virtual QVariant NCReportDataSource::value( const QString& columnname, bool* ok=0, int nQTDataRole = -1 ) const =0;
virtual QVariant NCReportDataSource::value( int column, bool* ok=0, int nQTDataRole = -1 ) const =0;
virtual bool NCReportDataSource::isValid() const =0;
virtual void NCReportDataSource::evaluate( NCReportEvaluator* evaluator);
virtual QStringList NCReportDataSource::keywordList();
virtual QStringList NCReportDataSource::columnNames();
virtual QVector<NCReportDataFieldInfo> NCReportDataSource::fieldInfo() const;
virtual QString NCReportDataSource::columnName(int column) const;
virtual QString NCReportDataSource::columnTitle(int column) const;
virtual QString NCReportDataSource::rowTitle(int row) const;
virtual bool NCReportDataSource::hasColumn(int column) const;
virtual bool NCReportDataSource::hasColumn(const QString& columnname) const;
virtual int NCReportDataSource::columnIndexByName(const QString& columnname) const;
virtual bool NCReportDataSource::hasParameters() const;
virtual QHash<QString,QVariant>& NCReportDataSource::parameters();
virtual QVariant NCReportDataSource::getUserFunctionValue(const QVariant &value, const QString& arguments ) const;
virtual QString NCReportDataSource::columnToolTip(int column) const;
void NCReportDataSource::setDone( bool );
bool NCReportDataSource::isDone() const;
bool NCReportDataSource::isOpened() const;
void NCReportDataSource::setOpenRole( OpenRoles );
OpenRoles NCReportDataSource::openRole() const;
void NCReportDataSource::setAvailable( bool set );
bool NCReportDataSource::isAvailable() const;
void NCReportDataSource::setEnabled( bool value );
bool NCReportDataSource::isEnabled() const;
int NCReportDataSource::currentRow() const;
int NCReportDataSource::recno() const;
const QList<int>& NCReportDataSource::appearanceRoles() const;
void NCReportDataSource::addAppearanceRole( int role );
void NCReportDataSource::setUseAppearanceRoles( bool set );
bool NCReportDataSource::useAppearanceRoles() const;
void NCReportDataSource::setPrimaryKeyColumn( int column );
int NCReportDataSource::primaryKeyColumn() const;
virtual QString NCReportDataSource::primaryKeyValue() const;
void NCReportDataSource::setForeignKeyValue( const QString& key);
QString NCReportDataSource::foreignKeyValue() const;
void NCReportDataSource::setForceUpdateOnStepBackwordInRelation( bool set );
bool NCReportDataSource::forceUpdateOnStepBackwordInRelation() const;
bool NCReportDataSource::isUseApiOnly(void) const;
void NCReportDataSource::setUseApiOnly(bool value);
bool NCReportDataSource::hasDataSourceTreeFieldItemResourceTypeSet() const;
int NCReportDataSource::getDataSourceTreeFieldItemResourceType() const;
bool NCReportDataSource::hasDataSourceTreeFieldItemTypeIdSet() const;
int NCReportDataSource::getDataSourceTreeFieldItemTypeId() const;
void NCReportDataSource::setPreDefinedHeaders( const QStringList& headers );
const QStringList & NCReportDataSource::preDefinedHeaders() const;
// signals:
void NCReportDataSource::updateRequestFKey( const QString& dsID, const QString& foreignKeyValue );
void NCReportDataSource::updateRequest( const QString& dsID, const QString& data );
// protected:
void NCReportDataSource::setOpened( bool set );
NCReportError *NCReportDataSource::error();
int& NCReportDataSource::recno();
bool& NCReportDataSource::flagEnd();
bool& NCReportDataSource::flagBegin();
QString& NCReportDataSource::specificationRef();
void NCReportDataSource::setDataSourceTreeFieldItemResourceType(int dataSourceTreeFieldItemResourceType);
void NCReportDataSource::setDataSourceTreeFieldItemTypeId(int dataSourceTreeFieldItemTypeId);
```

## NCReportDataSourceFactory

`#include "ncreportdatasourcefactory.h"`

```cpp
// public:
NCReportDataSourceFactory::NCReportDataSourceFactory();
virtual NCReportDataSource * NCReportDataSourceFactory::createCustomDataSource( const QString& dsID ) = 0;
```

## NCReportDef

Inherits `QObject`. `#include "ncreportdef.h"`

```cpp
// public:
NCReportDef::NCReportDef( QObject * parent );
void NCReportDef::setReport( NCReport* report );
NCReport* NCReportDef::report();
void NCReportDef::reset( bool all );
void NCReportDef::reset(bool clearRenderers, bool clearParameters, bool clearUserFunctions, bool clearStringLists, bool keepCustomDataSources = true );
NCReportSection* NCReportDef::addPageHeader();
void NCReportDef::removePageHeader();
NCReportSection *NCReportDef::pageHeader();
NCReportSection* NCReportDef::addPageFooter();
void NCReportDef::removePageFooter();
NCReportSection *NCReportDef::pageFooter();
NCReportSection* NCReportDef::addReportHeader();
void NCReportDef::removeReportHeader();
NCReportSection *NCReportDef::reportHeader();
NCReportSection* NCReportDef::addReportFooter();
void NCReportDef::removeReportFooter();
NCReportSection *NCReportDef::reportFooter();
NCReportGroup* NCReportDef::addGroup( NCReportSection* detail );
void NCReportDef::removeGroup( NCReportSection* detail, NCReportGroup* group);
void NCReportDef::removeAllGroups( NCReportSection* detail);
NCReportSection* NCReportDef::addGroupHeader( NCReportGroup* group);
void NCReportDef::removeGroupHeader( NCReportGroup* group );
NCReportSection* NCReportDef::addGroupFooter( NCReportGroup* group );
void NCReportDef::removeGroupFooter( NCReportGroup* group );
const QList<NCReportSection*>& NCReportDef::groupSections() const;
NCReportSection* NCReportDef::addDetail();
void NCReportDef::removeDetail( NCReportSection* detail );
const QList<NCReportSection*>& NCReportDef::details() const;
void NCReportDef::clearDetails();
void NCReportDef::appendDetails(NCReportSection* detail);
void NCReportDef::adjustDataSources();
void NCReportDef::addParameter( const QString &id, const QVariant &value );
void NCReportDef::addParameters(const QHash<QString,QVariant>& parameters , bool clear = false);
void NCReportDef::addParameters(const QMap<QString,QVariant>& parameters , bool clear = false);
void NCReportDef::setParameters(const QHash<QString,QVariant>& parameters );
void NCReportDef::removeParameter( const QString& id );
QVariant NCReportDef::parameter( const QString& id ) const;
const QHash<QString,QVariant>& NCReportDef::parameters() const;
QHash<QString,QVariant>& NCReportDef::parametersRef();
void NCReportDef::addVariable( NCReportVariable* variable );
void NCReportDef::removeVariable( NCReportVariable* variable );
const NCReportVariable* NCReportDef::variable( const QString& varId ) const;
const QHash<QString,NCReportVariable*>& NCReportDef::variables() const;
void NCReportDef::addDataSource( NCReportDataSource* dataSource );
void NCReportDef::addDataSources( const QList<NCReportDataSource*>& dataSources );
void NCReportDef::addDataSources(const QMap<QString, QPointer<NCReportDataSource> > &dataSources );
void NCReportDef::setDataSources(const QMap<QString, QPointer<NCReportDataSource> > &dataSources );
NCReportDataSource *NCReportDef::dataSource( const QString& id ) const;
NCReportDataSource *NCReportDef::dataSourceRef( const QString& id );
const QMap<QString, QPointer<NCReportDataSource> > &NCReportDef::dataSources() const;
void NCReportDef::addStringList( const QString &id, const QStringList &list );
void NCReportDef::addStringLists( const QHash<QString,QStringList>& stringLists );
void NCReportDef::setStringLists( const QHash<QString,QStringList>& stringLists );
const QHash<QString,QStringList>& NCReportDef::stringLists() const;
void NCReportDef::addGraphItemRenderer( NCReportGraphRenderer *renderer );
void NCReportDef::addGraphItemRenderers( const QList<NCReportGraphRenderer*> & m_renderers );
void NCReportDef::addGraphItemRenderers(const QHash<QString,NCReportGraphRenderer*> & renderers );
const QHash<QString,NCReportGraphRenderer*>& NCReportDef::itemRenderers() const;
void NCReportDef::addItemModel( const QString &id, QAbstractItemModel *model );
void NCReportDef::setItemModels( const QHash<QString, QAbstractItemModel *>& models );
const QHash<QString,QAbstractItemModel*>& NCReportDef::itemModels();
void NCReportDef::addGraphicsView( const QString id, QGraphicsView* view );
QGraphicsView* NCReportDef::graphicsView( const QString id );
void NCReportDef::addItemView(const QString &id, QAbstractItemView *itemView );  // [item view]
const QHash<QString,QAbstractItemView*>& NCReportDef::itemViews();  // [item view]
void NCReportDef::addUserFunction( const QString &id, NCReportUserFunction *function );
void NCReportDef::addUserFunctions( const QHash<QString,NCReportUserFunction*>& functions );
NCReportUserFunction *NCReportDef::userFunction( const QString &id );
const QHash<QString,NCReportUserFunction*>& NCReportDef::userFunctions() const;
void NCReportDef::addScript( const NCReportScript &script );
NCReportScript NCReportDef::script( const QString &id ) const;
const QHash<QString,NCReportScript>& NCReportDef::scripts() const;
void NCReportDef::removeScript( const QString& id );
void NCReportDef::removeDataSource( NCReportDataSource* ds );
void NCReportDef::removeDataSources( bool keepCustomDataSources );
void NCReportDef::removeDataSourcesNoDelete();
void NCReportDef::setDataSourceFactory(NCReportDataSourceFactory *dsf );
void NCReportDef::addFieldItem(NCReportFieldItem* item);
const QList<NCReportFieldItem*>& NCReportDef::fieldItems() const;
void NCReportDef::addDynamicItem(NCReportItem* item);
const QList<NCReportItem*>& NCReportDef::dynamicItems() const;
NCReportError* NCReportDef::error();
NCReportPageOption & NCReportDef::option();
NCReportDataSourceFactory & NCReportDef::dataSourceFactory();
void NCReportDef::setDefaultDataSourceName(const QString& dsname );
QString NCReportDef::defaultDataSourceName() const;
void NCReportDef::reindexDetails();
void NCReportDef::sortGroups( NCReportSection *detail );
QStringList NCReportDef::dataSourceIdList();
QStringList NCReportDef::dataSourceIdList( NCReportDataSource::OpenRoles openRole );
QStringList NCReportDef::parameterIdList() const;
QStringList NCReportDef::variableIdList() const;
void NCReportDef::setCustomDSProvider( NCReportCustomDSProvider *customDSProvider);
NCReportCustomDSProvider *NCReportDef::customDSProvider();
void NCReportDef::setTemplateDir(const QString& dir);
QString NCReportDef::templateDir() const;
void NCReportDef::setConnectionName( const QString& connectionName );
QString NCReportDef::connectionName() const;
QString NCReportDef::zintPath() const;
void NCReportDef::setZintPath( const QString& dir );
QString NCReportDef::zintTempFilePath() const;
void NCReportDef::setZintTempFilePath( const QString& dir );
void NCReportDef::emitZintNotFound();
static QString NCReportDef::zintInstallPath();
void NCReportDef::setDeleteDataSources(bool value);
bool NCReportDef::isDeleteDataSources() const;
void NCReportDef::detectChildSections();
void NCReportDef::registerDataSourceRole( const QString& symbol, int role);
int NCReportDef::dataSourceRole( const QString& symbol ) const;
bool NCReportDef::hasDataSourceRole() const;
void NCReportDef::setDefaultDataSourceRole(int role);
int NCReportDef::defaultDataSourceRole() const;
void NCReportDef::setItemModelLinkRole( int role );
int NCReportDef::itemModelLinkRole() const;
void NCReportDef::setLocale(const QLocale & locale);
const QLocale & NCReportDef::locale() const;
void NCReportDef::setCustomScreenFontFactor(qreal f);
qreal NCReportDef::customScreenFontFactor() const;
void NCReportDef::setFormatCallback(std::function<bool (NCReportData::DataType, const QVariant &, QString &)> cb);
std::function<bool (NCReportData::DataType, const QVariant &, QString &)> NCReportDef::formatCallback();
// signals:
void NCReportDef::zintNotFound();
// protected:
virtual NCReportSection* NCReportDef::createReportSection();
NCReportSection* NCReportDef::addSection( NCReportSection* );
NCReportSection* NCReportDef::addSection();
int NCReportDef::groupHeaderIndex( NCReportGroup *group, int gidx ) const;
int NCReportDef::groupFooterIndex( NCReportGroup *group, int gidx ) const;
```

## NCReportDummyDataSourceFactory

Inherits `NCReportDataSourceFactory`. `#include "ncreportdummydatasourcefactory.h"`

```cpp
// public:
NCReportDummyDataSourceFactory::NCReportDummyDataSourceFactory();
virtual NCReportDataSource * NCReportDummyDataSourceFactory::createCustomDataSource( const QString& dsID );
```

## NCReportEllipseItem

Inherits `NCReportShapeItem`. `#include "ncreportellipseitem.h"`

```cpp
// public:
NCReportEllipseItem::NCReportEllipseItem( NCReportDef* rdef, QGraphicsItem* parent =0);
QRectF NCReportEllipseItem::boundingRect() const override;
void NCReportEllipseItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void NCReportEllipseItem::setRect(const QRectF &rect);
bool NCReportEllipseItem::read( NCReportXMLReader* ) override;
bool NCReportEllipseItem::write( NCReportXMLWriter* ) override;
void NCReportEllipseItem::setDefaultForEditor() override;
void NCReportEllipseItem::paint( NCReportOutput*, const QPointF& ) override;
```

## NCReportError

`#include "ncreportdef.h"`

```cpp
// public:
NCReportError::NCReportError();
void NCReportError::setError( const QString& msg, int errcode=-1 );
QString NCReportError::errorMsg() const;
bool NCReportError::error() const;
bool NCReportError::isOK() const;
int NCReportError::number() const;
```

## NCReportEvaluator

`#include "ncreportevaluator.h"`

```cpp
// public:
NCReportEvaluator::NCReportEvaluator();
enum NCReportEvaluator::FunctionType { NoFunc=0, DataSourceFunction, ValueFunction };
enum NCReportEvaluator::HackFunctionResult { HF_ExecudedSuccessTrue=0, HF_ExecudedSuccessFalse, HF_ExecutedFail, HF_InvalidFunction };
void NCReportEvaluator::setReportDef(NCReportDef* reportDef);
NCReportDef* NCReportEvaluator::reportDef();
void NCReportEvaluator::setDirector(NCReportDirector* director);
NCReportDirector* NCReportEvaluator::director();
void NCReportEvaluator::setSection(NCReportSection *section);
NCReportSection* NCReportEvaluator::section() const;
virtual bool NCReportEvaluator::evaluate( QString& exp, bool doEvaluateScript = true);
virtual bool NCReportEvaluator::evaluate( QString& exp, NCReportItem::SourceType stype );
virtual bool NCReportEvaluator::evaluateEmbeddedScripts( QString& exp );
virtual bool NCReportEvaluator::evaluateScan( QString& exp );
virtual bool NCReportEvaluator::evaluateScript( const QString & exp, QString& result, bool isPrintWhen);
virtual bool NCReportEvaluator::evaluateScript( const QString & exp, bool& result, bool isPrintWhen);
virtual bool NCReportEvaluator::evaluateScript( const QString & exp, double& result, bool isPrintWhen);
virtual bool NCReportEvaluator::evaluateScript( const QString & exp, QVariant& result, bool isPrintWhen );
virtual bool NCReportEvaluator::evaluateField( NCReportFieldItem* field );
virtual bool NCReportEvaluator::evaluateVariable( NCReportVariable* var );
virtual bool NCReportEvaluator::evaluateGroup( NCReportGroup* g );
virtual bool NCReportEvaluator::evaluatePrintWhen(const QString& expr, bool allowHackFunctions);
virtual bool NCReportEvaluator::evaluatePrintWhen(NCReportItem* item , bool allowHackFunctions);
HackFunctionResult NCReportEvaluator::evaluateHackFunction(const QString &funct) const;
static bool NCReportEvaluator::isHackFunction(const QString &funct);
virtual bool NCReportEvaluator::evaluateDynamicText( NCReportItem* item, QString* target=0 );
virtual bool NCReportEvaluator::evaluateDynamicImage( NCReportItem* item );
virtual bool NCReportEvaluator::evaluateDynamicGraph( NCReportItem* item );
virtual bool NCReportEvaluator::evaluateDynamicBarcode( NCReportItem* item );
virtual bool NCReportEvaluator::updateFieldFromDataSource( const QString& columnExpr, QVariant& val, NCReportFieldItem* field );
static const QStringList NCReportEvaluator::availableSystemVariables();
const QStringList NCReportEvaluator::availableVariables();
static const char** NCReportEvaluator::availableDataSourceFunctions();
static const char** NCReportEvaluator::availableValueFunctions();
static const int* NCReportEvaluator::availableValueFunctionArguments();
static void NCReportEvaluator::tokenizeKeyWordList( QStringList& keywordList, NCReportItem::SourceType type );
static void NCReportEvaluator::tokenizeKeyWord( QString& keyword, NCReportItem::SourceType type );
static QStringList NCReportEvaluator::arrayToStringList( const char* array[] );
// protected:
virtual bool NCReportEvaluator::getDataSourceValue(const QString& columnExpr, QVariant& val );
bool NCReportEvaluator::getParameterValue( const QString& name, QVariant& val );
bool NCReportEvaluator::getVariableValue( const QString& name, QVariant& val );
bool NCReportEvaluator::getSysVarValue( const QString& name, QVariant& val );
QString NCReportEvaluator::getFieldDisplayValue( const QString& id );
void NCReportEvaluator::quoteMarkSafety( QString& exp );
void NCReportEvaluator::quoteMarkReplace(QString &exp, bool encode );
bool NCReportEvaluator::evaluateScriptPrivate( const QString & exp, QVariant& result, bool isPrintWhen);
bool NCReportEvaluator::evaluateScriptPrivate_QtScript(const QString &script, QVariant &result);
bool NCReportEvaluator::evaluateScriptPrivate_QJS(NCReportScript *script, QVariant &result, bool isPrintWhen);
QString NCReportEvaluator::parseTokenExpression( const QString& expression, const QString& tokenBegin, const QString &tokenEnd, int &tokenBeginPos, int &tokenLength ) const;
void NCReportEvaluator::evaluateFunctionValue(const QString& functionName, int fType, QVariant &value, NCReportDataSource *ds);
FunctionType NCReportEvaluator::functionType( const QString& functionName ) const;
bool NCReportEvaluator::isFunction(const QString &name) const;
bool NCReportEvaluator::parseDataSourceExpression(const QString& expr, QString& dataSourceID , QString& columnName, QString& functionName, int &fType) const;
int NCReportEvaluator::getItemRoleInfo(QString& name);
NCReportDataSource *NCReportEvaluator::currentDataSource();
int NCReportEvaluator::currentDataColumnIndex();
bool NCReportEvaluator::updateFieldAppearance( NCReportFieldItem* field );
bool NCReportEvaluator::updateTextAppearance(NCReportTextItem* textItem);
bool NCReportEvaluator::containsExpression( const QString & value ) const;
NCReportDataSource *NCReportEvaluator::m_currentDataSource;
int NCReportEvaluator::m_currentDataColumnIndex;
int NCReportEvaluator::m_currentDataRole;
```

## NCReportExcelHtmlOutput

Inherits `NCReportHtmlOutput`. `#include "ncreportexcelhtmloutput.h"`

```cpp
// public:
NCReportExcelHtmlOutput::NCReportExcelHtmlOutput( QObject* parent=0 );
// protected:
void NCReportExcelHtmlOutput::writeLabel(NCReportLabelItem *item , QTextStream &cellStyle);
void NCReportExcelHtmlOutput::writeText(NCReportTextItem * item );
void NCReportExcelHtmlOutput::writeHeader();
void NCReportExcelHtmlOutput::writeFooter();
void NCReportExcelHtmlOutput::writeSpace(NCReportSection *section, int row, int width );
void NCReportExcelHtmlOutput::writeSectionStart( NCReportSection *section );
void NCReportExcelHtmlOutput::writeSectionEnd( NCReportSection *section );
void NCReportExcelHtmlOutput::writeRowStart( NCReportSection *section );
void NCReportExcelHtmlOutput::writeRowEnd(NCReportSection *section);
void NCReportExcelHtmlOutput::cellStarts(NCReportItem *item, QTextStream& cellStyle);
void NCReportExcelHtmlOutput::cellEnds(NCReportItem *item);
QString NCReportExcelHtmlOutput::styleSheetReference(const QString &css ) const;
```

## NCReportFactory

`#include "ncreportfactory.h"`

```cpp
// public:
NCReportFactory::NCReportFactory();
virtual NCReport* NCReportFactory::createReport(QObject *parent);
```

## NCReportFieldItem

Inherits `NCReportLabelItem`. `#include "ncreportfielditem.h"`

```cpp
// public:
NCReportFieldItem::NCReportFieldItem( NCReportDef* rdef, QGraphicsItem* parent =0 );
enum NCReportFieldItem::SwapMode { OriginalValue=0, LastValue };
int NCReportFieldItem::precision() const;
void NCReportFieldItem::setPrecision( int prec );
int NCReportFieldItem::fieldWidth() const;
void NCReportFieldItem::setFieldWidth( int fw );
char NCReportFieldItem::format() const;
void NCReportFieldItem::setFormat( char f );
bool NCReportFieldItem::isLocalized() const;
void NCReportFieldItem::setLocalized( bool set );
bool NCReportFieldItem::isNumBlankIfZero() const;
void NCReportFieldItem::setNumBlankIfZero( bool set );
bool NCReportFieldItem::isNumFormat() const;
void NCReportFieldItem::setNumFormat( bool set );
int NCReportFieldItem::numCharacters() const;
void NCReportFieldItem::setNumberOfCharacters( int num );
QString NCReportFieldItem::arg() const;
void NCReportFieldItem::setArg( const QString& arg );
QString NCReportFieldItem::dateFormat() const;
void NCReportFieldItem::setDateFormat( const QString& df );
void NCReportFieldItem::setNumSubstitutionStringIfZero( bool set );
void NCReportFieldItem::setNumSubstitutionString( const QString & string );
QString NCReportFieldItem::numSubstitutionString() const;
bool NCReportFieldItem::isUsingNumSubstitutionString() const;
NCReportDataSource* NCReportFieldItem::dataSource() const;
void NCReportFieldItem::setDataSource( NCReportDataSource* ds );
int NCReportFieldItem::dataColumn() const;
void NCReportFieldItem::setDataColumn( int column );
int NCReportFieldItem::dataRole() const;
void NCReportFieldItem::setDataRole( int role );
bool NCReportFieldItem::read( NCReportXMLReader* reader ) override;
bool NCReportFieldItem::write( NCReportXMLWriter* writer) override;
void NCReportFieldItem::setDefaultForEditor() override;
void NCReportFieldItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void NCReportFieldItem::paint( NCReportOutput* o, const QPointF& mPos ) override;
void NCReportFieldItem::adjustSize() override;
void NCReportFieldItem::adjustSize(NCReportOutput*output) override;
bool NCReportFieldItem::isEmpty() const override;
void NCReportFieldItem::updateValue(NCReportOutput*, NCReportEvaluator *evaluator) override;
QList<int> NCReportFieldItem::availableSourceTypes() const override;
void NCReportFieldItem::setUseDatasourceAppearanceRoles( bool set );
bool NCReportFieldItem::useDataSourceAppearanceRoles() const;
// protected:
void NCReportFieldItem::readProps( NCReportXMLReader* r) override;
void NCReportFieldItem::writeProps( NCReportXMLWriter* w) override;
```

## NCReportGraphicsViewItem

Inherits `NCReportItem`. `#include "NCReportGraphicsViewItem.h"`

```cpp
// public:
NCReportGraphicsViewItem::NCReportGraphicsViewItem( NCReportDef* rdef, QGraphicsItem* parent =0 );
bool NCReportGraphicsViewItem::read( NCReportXMLReader* reader );
bool NCReportGraphicsViewItem::write( NCReportXMLWriter* writer );
void NCReportGraphicsViewItem::setDefaultForEditor();
void NCReportGraphicsViewItem::paint( NCReportOutput* output, const QPointF& targetMMPos );
void NCReportGraphicsViewItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void NCReportGraphicsViewItem::paintEditor(QPainter *painter, const QRectF &rect);
QString NCReportGraphicsViewItem::classID() const;
void NCReportGraphicsViewItem::setClassID( const QString& id );
void NCReportGraphicsViewItem::updateValue(NCReportOutput *output, NCReportEvaluator *evaluator);
bool NCReportGraphicsViewItem::isDynamic() const;
bool NCReportGraphicsViewItem::isValidLocation(int sectionType) const;
QGraphicsView *NCReportGraphicsViewItem::graphicsView() const;
```

## NCReportGraphItem

Inherits `NCReportItem`. `#include "ncreportgraphitem.h"`

```cpp
// public:
NCReportGraphItem::NCReportGraphItem( NCReportDef* rdef, QGraphicsItem* parent =0);
void NCReportGraphItem::adjustSize();
void NCReportGraphItem::adjustSize( NCReportOutput* output);
bool NCReportGraphItem::read( NCReportXMLReader* reader );
bool NCReportGraphItem::write( NCReportXMLWriter* writer );
void NCReportGraphItem::setDefaultForEditor();
void NCReportGraphItem::paint( NCReportOutput*, const QPointF& );
void NCReportGraphItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void NCReportGraphItem::paintEditor(QPainter *painter, const QRectF &rect);
inline QString NCReportGraphItem::graphDefinition() const;
inline void NCReportGraphItem::setGraphDefinition( const QString& gd );
inline QString NCReportGraphItem::classID() const;
inline void NCReportGraphItem::setClassID( const QString& id );
void NCReportGraphItem::updateValue(NCReportOutput *output, NCReportEvaluator *evaluator);
bool NCReportGraphItem::isDynamic() const;
bool NCReportGraphItem::isParameterMode() const;
NCReportGraphRenderer *NCReportGraphItem::renderer() const;
bool NCReportGraphItem::isValidLocation(int sectionType) const;
```

## NCReportGraphRenderer

`#include "ncreportgraphrenderer.h"`

```cpp
// public:
NCReportGraphRenderer::NCReportGraphRenderer();
void NCReportGraphRenderer::setID( const QString& id );
void NCReportGraphRenderer::setId( const QString& id );
void NCReportGraphRenderer::setId( int id );
const QString& NCReportGraphRenderer::id() const;
int NCReportGraphRenderer::intId() const;
void NCReportGraphRenderer::setIndex( const QModelIndex & index);
const QModelIndex & NCReportGraphRenderer::index() const;
virtual void NCReportGraphRenderer::paintItem( QPainter* painter, NCReportOutput* output, const QRectF& rect, const QString& itemdata ) =0;
virtual void NCReportGraphRenderer::paintEditorItem(QPainter* painter, const QRectF& rect , const QString &text);
virtual qreal NCReportGraphRenderer::calculateHeightMM( NCReportOutput* output ) const;
virtual QSizeF NCReportGraphRenderer::calculateSizeMM( NCReportOutput* output, const QSizeF& requested ) const;
virtual QSizeF NCReportGraphRenderer::calculateSizeMM( NCReportOutput* output, const QSizeF& requested, const QString& itemdata ) const;
virtual QString NCReportGraphRenderer::dataSourceID() const;
virtual bool NCReportGraphRenderer::isValidLocation(int sectionType) const;
void NCReportGraphRenderer::setDataSource( NCReportDataSource* ds );
void NCReportGraphRenderer::setItem( NCReportGraphItem* item );
// protected:
NCReportDataSource* NCReportGraphRenderer::dataSource() const;
NCReportGraphItem *NCReportGraphRenderer::item() const;
```

## NCReportGroup

`#include "ncreportgroup.h"`

```cpp
// public:
NCReportGroup::NCReportGroup();
NCReportGroup::NCReportGroup(const NCReportGroup&) = delete;
NCReportGroup& NCReportGroup::operator=(const NCReportGroup&) = delete;
enum NCReportGroup::GroupState { Closed=0, OnProcess };
enum NCReportGroup::HeaderState { On=0, Repeated, Off };
void NCReportGroup::setId( const QString& id );
void NCReportGroup::setValue( const QString& value);
void NCReportGroup::setGroupExp( const QString& exp);
void NCReportGroup::setResetVarList( const QString& varList);
void NCReportGroup::setReprintHeaderOnNextPage( bool set );
void NCReportGroup::setStartsOnNewPage( bool set);
void NCReportGroup::setPageBreakExp( const QString& expression );
void NCReportGroup::setInitialPrintDone( bool set );
void NCReportGroup::setGroupChanged( bool set);
bool NCReportGroup::isGroupChanged();
void NCReportGroup::setNestedLevel( short level );
short NCReportGroup::nestedLevel() const;
NCReportSection *NCReportGroup::header();
NCReportSection *NCReportGroup::footer();
NCReportSection *NCReportGroup::detail();
const QString& NCReportGroup::resetVarList() const;
const QString& NCReportGroup::expression() const;
const QString& NCReportGroup::pageBreakExp() const;
bool NCReportGroup::repeatHeaderOnNextPage() const;
const QString& NCReportGroup::groupId() const;
bool NCReportGroup::startsOnNewPage() const;
bool NCReportGroup::initialPrintDone() const;
const QString& NCReportGroup::value() const;
void NCReportGroup::reset();
HeaderState NCReportGroup::headerState() const;
void NCReportGroup::setHeaderState( HeaderState state );
const QString& NCReportGroup::currentValue() const;
const GroupMetaInfo& NCReportGroup::currentMetaInfo() const;
const GroupMetaInfo& NCReportGroup::lastMetaInfo() const;
int NCReportGroup::counter() const;
bool NCReportGroup::isResetPageNo() const;
void NCReportGroup::setResetPageNo( bool reset );
void NCReportGroup::setPrintLockIsAllowed( bool set);
bool NCReportGroup::isPrintLockAllowed() const;
```

## NCReportGroup::GroupMetaInfo

`#include "ncreportgroup.h"`

```cpp
// public:
NCReportGroup::GroupMetaInfo::GroupMetaInfo();
int NCReportGroup::GroupMetaInfo::firstRow;
int NCReportGroup::GroupMetaInfo::lastRow;
int NCReportGroup::GroupMetaInfo::counter;
QString NCReportGroup::GroupMetaInfo::firstValue;
QString NCReportGroup::GroupMetaInfo::lastValue;
```

## NCReportHtmlOutput

Inherits `NCReportMarkupLanguageOutput`. `#include "ncreporthtmloutput.h"`

```cpp
// public:
NCReportHtmlOutput::NCReportHtmlOutput( QObject* parent=0 );
enum NCReportHtmlOutput::ImageMode { Base64, File };
void NCReportHtmlOutput::setImageMode( ImageMode mode );
ImageMode NCReportHtmlOutput::imageMode() const;
QByteArray NCReportHtmlOutput::imageToHtml(const QPixmap& image, const QSize &size, ImageMode mode );
// protected:
virtual void NCReportHtmlOutput::writeLabel(NCReportLabelItem *item , QTextStream &cellStyle);
virtual void NCReportHtmlOutput::writeLine( NCReportLineItem *item );
virtual void NCReportHtmlOutput::writeRectangle( NCReportRectItem * item );
virtual void NCReportHtmlOutput::writeImage( NCReportImageItem * item );
virtual void NCReportHtmlOutput::writeText(NCReportTextItem * item );
virtual void NCReportHtmlOutput::writeBarcode( NCReportBarcodeItem* item);
virtual void NCReportHtmlOutput::writeChart( NCReportChartItem* item );
virtual void NCReportHtmlOutput::writeTable(NCReportTableItem *item);
virtual void NCReportHtmlOutput::writeHeader();
virtual void NCReportHtmlOutput::writeFooter();
virtual void NCReportHtmlOutput::writeSpace(NCReportSection *section, int row, int width );
virtual void NCReportHtmlOutput::writeSectionStart( NCReportSection *section );
virtual void NCReportHtmlOutput::writeSectionEnd( NCReportSection *section );
virtual void NCReportHtmlOutput::writeRowStart( NCReportSection *section );
virtual void NCReportHtmlOutput::writeRowEnd(NCReportSection *section);
virtual QString NCReportHtmlOutput::styleSheetReference(const QString &css ) const;
virtual void NCReportHtmlOutput::cellStarts(NCReportItem *item, QTextStream& cellStyle);
virtual void NCReportHtmlOutput::cellEnds(NCReportItem *item);
virtual void NCReportHtmlOutput::cleanHtml( QString& html );
```

## NCReportHttpClient

Inherits `QObject`. `#include "ncreporthttpclient.h"`

```cpp
// public:
explicit NCReportHttpClient::NCReportHttpClient(QObject *parent = 0);
void NCReportHttpClient::downloadContent( const QString& urlText );
void NCReportHttpClient::waitForDownloadContent( const QString& urlText );
QString NCReportHttpClient::errorMessage() const;
int NCReportHttpClient::error() const;
const QByteArray& NCReportHttpClient::content() const;
void NCReportHttpClient::clear();
// signals:
void NCReportHttpClient::readBytes(qint64 bytesRead, qint64 totalBytes);
void NCReportHttpClient::finished();
```

## NCReportImageItem

Inherits `NCReportItem`. `#include "ncreportimageitem.h"`

```cpp
// public:
NCReportImageItem::NCReportImageItem( NCReportDef* rdef, QGraphicsItem* parent =0);
enum NCReportImageItem::ImageFormat { Binary=0, Base64Encoded, Svg };
inline Qt::AspectRatioMode NCReportImageItem::aspectRatioMode() const;
void NCReportImageItem::setAspectRatioMode( Qt::AspectRatioMode am );
inline bool NCReportImageItem::isScaling() const;
inline void NCReportImageItem::setScaling( bool set ) const;
inline Qt::TransformationMode NCReportImageItem::transformMode() const;
inline void NCReportImageItem::setTransformMode( Qt::TransformationMode tm );
inline ImageFormat NCReportImageItem::imageFormat() const;
inline void NCReportImageItem::setImageFormat( ImageFormat f );
inline QPixmap NCReportImageItem::image() const #endif;
inline QPixmap& NCReportImageItem::imageRef() const #endif;
inline void NCReportImageItem::setImage( const QPixmap& image ) #endif;
inline QByteArray NCReportImageItem::svg() const;
inline void NCReportImageItem::setSvg( const QByteArray& svg );
inline QByteArray NCReportImageItem::htmlWidth() const;
inline void NCReportImageItem::setHtmlWidth( const QByteArray& width );
inline QByteArray NCReportImageItem::htmlHeight() const;
inline void NCReportImageItem::setHtmlHeight( const QByteArray& height );
inline Qt::Alignment NCReportImageItem::alignment() const;
inline void NCReportImageItem::setAlignment( Qt::Alignment al );
void NCReportImageItem::adjustSize();
void NCReportImageItem::adjustSize(NCReportOutput*output);
bool NCReportImageItem::read( NCReportXMLReader* );
bool NCReportImageItem::write( NCReportXMLWriter* );
void NCReportImageItem::setDefaultForEditor();
void NCReportImageItem::paint( NCReportOutput* output, const QPointF& mPos);
void NCReportImageItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void NCReportImageItem::updateValue(NCReportOutput *output, NCReportEvaluator *evaluator);
void NCReportImageItem::updateContent();
virtual QList<int> NCReportImageItem::availableSourceTypes() const;
bool NCReportImageItem::load( NCReportEvaluator* evaluator );
QByteArray NCReportImageItem::toBase64() const;
QByteArray NCReportImageItem::toHtml() const;
```

## NCReportImageOutput

Inherits `NCReportOutput`. `#include "ncreportimageoutput.h"`

```cpp
// public:
explicit NCReportImageOutput::NCReportImageOutput( QObject* parent=0 );
void NCReportImageOutput::setImageFormat( const char* format );
const QImage& NCReportImageOutput::page( int ) const;
void NCReportImageOutput::setMaximumHeight(int height);
int NCReportImageOutput::maximumHeight() const;
void NCReportImageOutput::setFormat( QImage::Format format );
QImage::Format NCReportImageOutput::format() const;
const QImage& NCReportImageOutput::successiveResult() const;
bool NCReportImageOutput::initialize();
void NCReportImageOutput::cleanup();
void NCReportImageOutput::begin();
void NCReportImageOutput::end();
void NCReportImageOutput::newPage();
```

## NCReportItem

Inherits `QGraphicsItem`. `#include "ncreportitem.h"`

```cpp
// public:
NCReportItem::NCReportItem( QGraphicsItem* parent = Q_NULLPTR );
enum NCReportItem::ObjectType { NoObject = 0x020000, Label = 0x020001, Field = 0x020002, Text = 0x020003, Line = 0x020004, Rectangle = 0x020005, Ellipse = 0x020006, Image = 0x020007, Barcode = 0x020008, Graph = 0x020009, CrossTab = 0x02000a, Table = 0x02000b, Chart = 0x02000c, GraphicsView = 0x02000d };
enum NCReportItem::SourceType { Static=0x0, DataSource, File, FileNameFromDataSource, Parameter, Url, UrlFromDataSource, InternalDocument, Variable, SystemVariable, ScriptExpression, Template, FieldDisplay };
enum NCReportItem::FitRole { NoFit=0, FitHeightToSection = 1, FitHeightToZone = 2, FitHeightToPageFooter = 3 };
enum NCReportItem::SelectionDirection { TopLeft=0x0, Top, TopRight, Right, BottomRight, Bottom, BottomLeft, Left, LinePoint1, LinePoint2, None };
inline NCReportData::DataType NCReportItem::dataType() const;
inline void NCReportItem::setDataType( NCReportData::DataType dt );
inline QVariant NCReportItem::value() const;
inline QVariant & NCReportItem::valueRef();
inline QString NCReportItem::id() const;
inline void NCReportItem::setId( const QString& id );
inline void NCReportItem::setValue( const QVariant& value );
inline ObjectType NCReportItem::objectType() const;
void NCReportItem::setObjectType( ObjectType t );
inline SourceType NCReportItem::sourceType() const;
void NCReportItem::setSourceType( SourceType ist);
void NCReportItem::setEditorMode( bool emode );
inline bool NCReportItem::editorMode() const;
inline int NCReportItem::typeId() const;
void NCReportItem::setTypeId( int typeId );
inline QString NCReportItem::tagname() const;
virtual QString NCReportItem::text() const;
virtual void NCReportItem::setText( const QString& text, const QString& = QString() );
inline QString NCReportItem::printWhen() const;
inline void NCReportItem::setPrintWhen( const QString& condition );
inline bool NCReportItem::printWhenResult() const;
inline QString NCReportItem::description() const;
void NCReportItem::setDescription(const QString& descr);
inline QString NCReportItem::htmlOptions() const;
void NCReportItem::setHtmlOptions(const QString& options);
void NCReportItem::setDynamicPosXSource( const QString& source );
inline QString NCReportItem::dynPosXSource() const;
void NCReportItem::setDynamicPosYSource( const QString& source );
inline QString NCReportItem::dynPosYSource() const;
void NCReportItem::setDynamicWidthSource( const QString& source );
inline QString NCReportItem::dynWidthSource() const;
void NCReportItem::setDynamicHeightSource( const QString& source );
inline QString NCReportItem::dynHeightSource() const;
void NCReportItem::setDynamicOffsetMode( bool offset );
inline bool NCReportItem::dynamicOffsetMode() const;
inline bool NCReportItem::isAutoHeight() const;
inline void NCReportItem::setAutoHeight( bool set );
inline FitRole NCReportItem::fitRole() const;
void NCReportItem::setFitRole( FitRole role );
inline QPointF NCReportItem::metricPos() const;
inline void NCReportItem::setMetricPos( const QPointF& point );
inline void NCReportItem::setMetricX( qreal x );
inline void NCReportItem::setMetricY( qreal y );
inline QPointF NCReportItem::metricOffset() const;
void NCReportItem::setMetricOffset( const QPointF& point );
inline QSizeF NCReportItem::metricSize() const;
void NCReportItem::setMetricSize( const QSizeF& size );
inline void NCReportItem::setMetricWidth( qreal w );
inline void NCReportItem::setMetricHeight( qreal h );
void NCReportItem::setRealMetricSize( const QSizeF& size );
virtual QSizeF NCReportItem::sectionMetricSize() const;
void NCReportItem::setSectionMetricSize( const QSizeF& size );
virtual QSizeF NCReportItem::zoneMetricSize() const;
void NCReportItem::setZoneMetricSize( const QSizeF& size );
inline bool NCReportItem::isTemplateMode() const;
void NCReportItem::setTemplateMode( bool set );
inline int NCReportItem::zoneID() const;
void NCReportItem::setZoneID( int id );
inline bool NCReportItem::isAdjusted() const;
void NCReportItem::setAdjusted( bool set );
inline bool NCReportItem::isUpToDate() const;
void NCReportItem::setUpToDate( bool set );
inline bool NCReportItem::isLocked() const;
void NCReportItem::setLocked( bool set );
inline NCReportDef *NCReportItem::reportDef() const;
virtual void NCReportItem::setReportDef( NCReportDef* rdef );
inline NCReportDirector *NCReportItem::director() const;
void NCReportItem::setDirector( NCReportDirector* director );
inline QRectF NCReportItem::boundingRectOfLastPart() const;
void NCReportItem::setBoundingRectOfLastPart( const QRectF& rect );
virtual QRectF NCReportItem::boundingRect() const;
inline NCReportSection *NCReportItem::section() const;
void NCReportItem::setSection( NCReportSection* section );
inline QString NCReportItem::functionId() const;
void NCReportItem::setFunctionId(const QString& id);
inline bool NCReportItem::isClickable() const;
void NCReportItem::setClickable(bool set);
inline bool NCReportItem::hasPageBreakAfter() const;
void NCReportItem::setPageBreakAfter(bool set);
inline bool NCReportItem::isModified() const;
void NCReportItem::setModified(bool set);
virtual QRectF NCReportItem::itemRect( NCReportOutput *output, const QPointF & painterPosMM );
virtual void NCReportItem::setSnapPos( const QPointF& );
virtual void NCReportItem::resize( const QSizeF& );
virtual void NCReportItem::resizeInMM( const QSizeF& );
virtual QSizeF NCReportItem::currentSize() const;
SelectionDirection NCReportItem::selectionHoverState() const;
virtual QSizeF NCReportItem::sizeHint() const;
virtual void NCReportItem::adjustSize();
virtual void NCReportItem::adjustSize( NCReportOutput* );
virtual QSizeF NCReportItem::realMetricSize() const;
virtual void NCReportItem::offsetPastePos();
virtual void NCReportItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) =0;
virtual bool NCReportItem::read( NCReportXMLReader* );
virtual bool NCReportItem::write( NCReportXMLWriter* );
virtual void NCReportItem::setDefaultForEditor()=0;
virtual void NCReportItem::updateForEditor();
virtual void NCReportItem::updateForSave();
virtual void NCReportItem::updateSize();
virtual void NCReportItem::updatePosition();
virtual void NCReportItem::updateValue( NCReportOutput* output, NCReportEvaluator* evaluator);
virtual void NCReportItem::updateContent();
virtual void NCReportItem::paint( NCReportOutput* output, const QPointF& painterPosMM )=0;
virtual void NCReportItem::dummyPaint( NCReportOutput*, const QPointF& );
QPointF NCReportItem::selectPos() const;
QSizeF NCReportItem::selectSize() const;
virtual void NCReportItem::saveSelectState();
virtual bool NCReportItem::isDynamic() const;
virtual bool NCReportItem::isEmpty() const;
virtual void NCReportItem::enableOffsetPosition();
virtual void NCReportItem::disableOffsetPosition();
virtual QPainterPath NCReportItem::shape() const;
virtual bool NCReportItem::isAbleToBreak() const;
virtual void NCReportItem::setAbleToBreak( bool set );
virtual qreal NCReportItem::breakTo( qreal heightMM, NCReportOutput* output );
virtual bool NCReportItem::isBroken() const;
virtual bool NCReportItem::hasSizeAndPosition() const;
virtual bool NCReportItem::pinToRight() const;
virtual void NCReportItem::setPinToRight( bool set );
virtual bool NCReportItem::pinToLeft() const;
virtual void NCReportItem::setPinToLeft( bool set );
void NCReportItem::setPaintRect( const QRectF& rect );
QRectF NCReportItem::paintRect() const;
virtual QList<int> NCReportItem::availableSourceTypes() const;
virtual void NCReportItem::printWhenTrueAction(NCReportEvaluator *evaluator);
virtual bool NCReportItem::evaluateProperty(NCReportEvaluator *evaluator , const QString &property, QString& result);
const QHash<QString,QVariant>& NCReportItem::parameters() const;
QHash<QString,QVariant>& NCReportItem::parametersRef();
QVariant NCReportItem::parameter( const QString& id ) const;
bool NCReportItem::hasParameter() const;
virtual bool NCReportItem::isValidLocation( int sectionType ) const;
bool NCReportItem::isValid() const;
// protected:
NCReportItem::NCReportItem( NCReportItemData* data, QGraphicsItem* parent = Q_NULLPTR );
NCReportItemData *NCReportItem::d;
SelectionDirection NCReportItem::m_selectionHoverState;
QPointF NCReportItem::m_selectPos;
QSizeF NCReportItem::m_selectSize;
virtual void NCReportItem::preparePaintSelection(QPainter *painter);
virtual void NCReportItem::paintSelection(QPainter *painter);
virtual QRectF NCReportItem::selectionRect( const SelectionDirection, const QSizeF& itemsize ) const;
virtual void NCReportItem::updateCursor(const SelectionDirection dir);
virtual QVariant NCReportItem::itemChange( GraphicsItemChange change, const QVariant & value );
virtual void NCReportItem::itemPositionChange( const QPointF& );
virtual void NCReportItem::hoverMoveEvent( QGraphicsSceneHoverEvent * event );
virtual void NCReportItem::mouseMoveEvent( QGraphicsSceneMouseEvent * event );
virtual void NCReportItem::mouseDoubleClickEvent( QGraphicsSceneMouseEvent * event );
virtual void NCReportItem::mouseReleaseEvent( QGraphicsSceneMouseEvent * event );
```

## NCReportItemData

Inherits `NCReportData`. `#include "ncreportitem.h"`

```cpp
// public:
NCReportItemData::NCReportItemData();
uint NCReportItemData::objectType;
uint NCReportItemData::typeId;
uint NCReportItemData::sourceType;
uint NCReportItemData::fitRole;
bool NCReportItemData::editorMode;
QPointF NCReportItemData::posMM;
QPointF NCReportItemData::offsetMM;
QSizeF NCReportItemData::sizeMM;
QSizeF NCReportItemData::realSizeMM;
QSizeF NCReportItemData::sectionSizeMM;
QSizeF NCReportItemData::zoneSizeMM;
QSizeF NCReportItemData::editSize;
QPointF NCReportItemData::dynPosMM;
QSizeF NCReportItemData::dynSizeMM;
bool NCReportItemData::dynPosEnabled;
bool NCReportItemData::dynSizeEnabled;
bool NCReportItemData::autoHeight;
bool NCReportItemData::templateMode;
int NCReportItemData::zoneID;
bool NCReportItemData::adjusted;
bool NCReportItemData::printWhenResult;
bool NCReportItemData::upToDate;
bool NCReportItemData::locked;
bool NCReportItemData::breakToPage;
bool NCReportItemData::pinToRight;
bool NCReportItemData::pinToLeft;
bool NCReportItemData::dynOffset;
bool NCReportItemData::isClickable;
bool NCReportItemData::pageBreakAfter;
bool NCReportItemData::modified;
NCReportDef *NCReportItemData::reportDef;
NCReportDirector* NCReportItemData::director;
NCReportSection *NCReportItemData::section;
QString NCReportItemData::tagname;
QString NCReportItemData::text;
QString NCReportItemData::printWhen;
QString NCReportItemData::description;
QString NCReportItemData::htmlOptions;
QString NCReportItemData::functionId;
QString NCReportItemData::dynPosXSource;
QString NCReportItemData::dynPosYSource;
QString NCReportItemData::dynWidthSource;
QString NCReportItemData::dynHeightSource;
QRectF NCReportItemData::boundingRectOfLastPart;
QRectF NCReportItemData::paintRect;
QHash<QString, QVariant> NCReportItemData::parameters;
```

## NCReportItemModelDataSource

Inherits `NCReportDataSource`. `#include "ncreportitemmodeldatasource.h"`

```cpp
// public:
NCReportItemModelDataSource::NCReportItemModelDataSource( QObject *parent=0 );
bool NCReportItemModelDataSource::open();
bool NCReportItemModelDataSource::close();
bool NCReportItemModelDataSource::first();
bool NCReportItemModelDataSource::last();
bool NCReportItemModelDataSource::next();
bool NCReportItemModelDataSource::previous();
int NCReportItemModelDataSource::size() const;
int NCReportItemModelDataSource::rowCount() const;
bool NCReportItemModelDataSource::seek( int index );
bool NCReportItemModelDataSource::update();
QVariant NCReportItemModelDataSource::value( const QString&, bool* ok=0, int nQTDataRole = -1) const;
QVariant NCReportItemModelDataSource::value( int, bool* ok=0, int nQTDataRole = -1) const;
bool NCReportItemModelDataSource::read( NCReportXMLReader* r);
bool NCReportItemModelDataSource::write( NCReportXMLWriter* w);
void NCReportItemModelDataSource::evaluate( NCReportEvaluator* ev);
void NCReportItemModelDataSource::setItemModel( QAbstractItemModel* );
QAbstractItemModel* NCReportItemModelDataSource::itemModel() const;
void NCReportItemModelDataSource::setModelID( const QString& );
QString NCReportItemModelDataSource::modelID() const;
bool NCReportItemModelDataSource::hasNext();
bool NCReportItemModelDataSource::isValid() const;
QString NCReportItemModelDataSource::columnName(int column) const;
QString NCReportItemModelDataSource::columnTitle(int column) const;
QString NCReportItemModelDataSource::columnToolTip(int column) const;
QString NCReportItemModelDataSource::rowTitle(int column) const;
int NCReportItemModelDataSource::columnCount() const;
int NCReportItemModelDataSource::columnIndexByName(const QString& columnname) const;
// protected:
virtual bool NCReportItemModelDataSource::checkModel();
```

## NCReportLabelItem

Inherits `NCReportItem`. `#include "ncreportlabelitem.h"`

```cpp
// public:
NCReportLabelItem::NCReportLabelItem( int type, NCReportDef* rdef, QGraphicsItem* parent = Q_NULLPTR);
enum NCReportLabelItem::BGMode { Transparent=0, FilledBackground };
inline Qt::Alignment NCReportLabelItem::alignment() const;
inline void NCReportLabelItem::setAlignment( Qt::Alignment al );
inline bool NCReportLabelItem::isWordBreak() const;
inline void NCReportLabelItem::setWordBreak( bool set );
inline bool NCReportLabelItem::isWrapAnywhere() const;
inline void NCReportLabelItem::setWrapAnywhere( bool set );
inline QColor NCReportLabelItem::foreColor() const;
inline void NCReportLabelItem::setForeColor( const QColor& color );
inline QColor NCReportLabelItem::backColor() const;
inline void NCReportLabelItem::setBackColor( const QColor& color );
inline QFont NCReportLabelItem::font() const;
inline void NCReportLabelItem::setFont( const QFont& font );
inline int NCReportLabelItem::rotationAngle() const;
inline void NCReportLabelItem::setRotationAngle( int val );
inline BGMode NCReportLabelItem::backgroundMode() const;
inline void NCReportLabelItem::setBackgroundMode( BGMode mode ) const;
inline bool NCReportLabelItem::isBackgroundToDesign() const;
inline void NCReportLabelItem::setBackgroundToDesign( bool set ) const;
inline bool NCReportLabelItem::hideIfRepeated() const;
inline void NCReportLabelItem::setHideIfRepeated( bool set );
void NCReportLabelItem::resetHideRepeated();
inline bool NCReportLabelItem::hasTranslation() const;
inline void NCReportLabelItem::setHasTranslation( bool set );
inline QMap<QString,QString>& NCReportLabelItem::translations();
inline QString NCReportLabelItem::displayValue() const;
void NCReportLabelItem::setDisplayValue( const QString& );
inline QString NCReportLabelItem::conditionalFormatCode() const;
void NCReportLabelItem::setConditionalFormatCode( const QString& code );
inline bool NCReportLabelItem::hasConditionalFormat() const;
inline void NCReportLabelItem::setHasConditionalFormat( bool set );
inline QChar NCReportLabelItem::fillChar() const;
inline void NCReportLabelItem::setFillChar( const QChar& c );
inline void NCReportLabelItem::setElideMode(Qt::TextElideMode mode);
inline Qt::TextElideMode NCReportLabelItem::elideMode() const;
QString NCReportLabelItem::printableText() const;
QString NCReportLabelItem::elidedText(const QString &s, const QFont &font, qreal width, NCReportOutput* output) const;
bool NCReportLabelItem::textMayOverflow(const QString &s, const QRectF &rect, int flags, NCReportOutput* output) const;
QFont& NCReportLabelItem::fontRef();
bool NCReportLabelItem::read(NCReportXMLReader* reader) override;
bool NCReportLabelItem::write(NCReportXMLWriter* writer) override;
void NCReportLabelItem::setDefaultForEditor() override;
void NCReportLabelItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void NCReportLabelItem::paint(NCReportOutput* output, const QPointF& painterPosMM) override;
void NCReportLabelItem::adjustSize() override;
void NCReportLabelItem::adjustSize(NCReportOutput*output) override;
bool NCReportLabelItem::isEmpty() const override;
virtual void NCReportLabelItem::readSubElements(NCReportXMLReader *reader);
virtual void NCReportLabelItem::writeSubElements(NCReportXMLWriter*);
virtual void NCReportLabelItem::readValue(NCReportXMLReader *reader);
virtual void NCReportLabelItem::writeValue(NCReportXMLWriter*writer);
QString NCReportLabelItem::text() const override;
void NCReportLabelItem::setText( const QString& text, const QString& langcode = QString() ) override;
void NCReportLabelItem::updateValue(NCReportOutput *output, NCReportEvaluator *evaluator) override;
virtual void NCReportLabelItem::saveTextStyle();
virtual void NCReportLabelItem::restoreTextStyle();
void NCReportLabelItem::printWhenTrueAction(NCReportEvaluator *evaluator) override;
// protected:
virtual void NCReportLabelItem::readProps( NCReportXMLReader* );
virtual void NCReportLabelItem::writeProps( NCReportXMLWriter* );
void NCReportLabelItem::drawVerticalOrRotatedText(QPainter* painter, const QRectF &rect, const QString& text, double degree, bool doClip, int flags);
virtual QRectF NCReportLabelItem::screenRect() const;
virtual QRectF NCReportLabelItem::outputRect(NCReportOutput* output) const;
NCReportLabelItem::NCReportLabelItem( NCReportLabelData* data, NCReportDef* rdef, QGraphicsItem* parent = Q_NULLPTR );
```

## NCReportLineItem

Inherits `NCReportShapeItem`. `#include "ncreportlineitem.h"`

```cpp
// public:
NCReportLineItem::NCReportLineItem( NCReportDef* rdef, QGraphicsItem* parent =0);
void NCReportLineItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
bool NCReportLineItem::read( NCReportXMLReader* ) override;
bool NCReportLineItem::write( NCReportXMLWriter* ) override;
void NCReportLineItem::setDefaultForEditor() override;
void NCReportLineItem::paint( NCReportOutput*, const QPointF& ) override;
QRectF NCReportLineItem::boundingRect() const override;
QPainterPath NCReportLineItem::shape() const override;
QLineF NCReportLineItem::line() const;
void NCReportLineItem::setLine(const QLineF &line );
void NCReportLineItem::setPen( const QPen & pen ) override;
void NCReportLineItem::setBrush( const QBrush & brush ) override;
void NCReportLineItem::updateForEditor() override;
void NCReportLineItem::updateForSave() override;
void NCReportLineItem::updateSize() override;
void NCReportLineItem::updatePosition() override;
void NCReportLineItem::saveSelectState() override;
void NCReportLineItem::resize(const QSizeF& size) override;
void NCReportLineItem::enableOffsetPosition() override;
void NCReportLineItem::disableOffsetPosition() override;
bool NCReportLineItem::isLine() const override;
bool NCReportLineItem::hasSizeAndPosition() const override;
QLineF NCReportLineItem::selectLine() const;
void NCReportLineItem::setMetricX2( qreal x );
void NCReportLineItem::setMetricY2( qreal y );
QPointF NCReportLineItem::metricPos2() const;
// protected:
void NCReportLineItem::paintSelection(QPainter *painter) override;
void NCReportLineItem::itemPositionChange( const QPointF& ) override;
void NCReportLineItem::mouseMoveEvent(QGraphicsSceneMouseEvent * event) override;
```

## NCReportMarkupLanguageOutput

Inherits `NCReportOutput`. `#include "ncreportmarkuplanguageoutput.h"`

```cpp
// public:
NCReportMarkupLanguageOutput::NCReportMarkupLanguageOutput( QObject* parent=0 );
enum NCReportMarkupLanguageOutput::SpreadStrategy { SectionOneTable=0, SectionMultiTables };
virtual bool NCReportMarkupLanguageOutput::initialize();
virtual void NCReportMarkupLanguageOutput::cleanup();
virtual void NCReportMarkupLanguageOutput::newPage();
void NCReportMarkupLanguageOutput::renderItem( NCReportItem* item, const QRectF& rect );
void NCReportMarkupLanguageOutput::setStrategy( SpreadStrategy strategy );
SpreadStrategy NCReportMarkupLanguageOutput::strategy() const;
void NCReportMarkupLanguageOutput::setStyleSheetFile( const QString& cssFile );
QString NCReportMarkupLanguageOutput::styleSheetFile() const;
const QString NCReportMarkupLanguageOutput::crlf() const;
const QString NCReportMarkupLanguageOutput::styleSheetMarker() const;
int NCReportMarkupLanguageOutput::rowCounter() const;
// protected:
virtual void NCReportMarkupLanguageOutput::writeLabel(NCReportLabelItem *item , QTextStream &cellStyle);
virtual void NCReportMarkupLanguageOutput::writeLine( NCReportLineItem *item );
virtual void NCReportMarkupLanguageOutput::writeRectangle( NCReportRectItem * item );
virtual void NCReportMarkupLanguageOutput::writeImage( NCReportImageItem * item );
virtual void NCReportMarkupLanguageOutput::writeText(NCReportTextItem * item );
virtual void NCReportMarkupLanguageOutput::writeBarcode( NCReportBarcodeItem* item);
virtual void NCReportMarkupLanguageOutput::writeChart( NCReportChartItem* item );
virtual void NCReportMarkupLanguageOutput::writeTable(NCReportTableItem *item);
virtual QString NCReportMarkupLanguageOutput::parseTextContent(const QString &content) const;
virtual void NCReportMarkupLanguageOutput::writeHeader() =0;
virtual void NCReportMarkupLanguageOutput::writeFooter() =0;
virtual void NCReportMarkupLanguageOutput::writeSectionStart( NCReportSection *section ) =0;
virtual void NCReportMarkupLanguageOutput::writeSectionEnd( NCReportSection *section ) =0;
virtual void NCReportMarkupLanguageOutput::writeRowStart( NCReportSection *section ) =0;
virtual void NCReportMarkupLanguageOutput::writeRowEnd( NCReportSection *section ) =0;
virtual void NCReportMarkupLanguageOutput::cellStarts(NCReportItem* item, QTextStream &cellStyle) =0;
virtual void NCReportMarkupLanguageOutput::cellEnds(NCReportItem* item) =0;
virtual void NCReportMarkupLanguageOutput::writeSpace(NCReportSection *section, int row, int width );
virtual void NCReportMarkupLanguageOutput::writeDocumentFormats();
virtual QString NCReportMarkupLanguageOutput::fixedID( const QString& id ) const;
virtual QString NCReportMarkupLanguageOutput::penStyleName( int style ) const;
virtual QString NCReportMarkupLanguageOutput::itemClassId( NCReportItem *item ) const;
virtual QString NCReportMarkupLanguageOutput::styleSheetReference(const QString &css ) const;
void NCReportMarkupLanguageOutput::begin();
void NCReportMarkupLanguageOutput::end();
void NCReportMarkupLanguageOutput::sectionStarts(NCReportSection *section, NCReportEvaluator *evaluator);
void NCReportMarkupLanguageOutput::sectionEnds(NCReportSection *section, NCReportEvaluator *evaluator);
QTextStream& NCReportMarkupLanguageOutput::contentStream();
QTextStream& NCReportMarkupLanguageOutput::styleStream();
void NCReportMarkupLanguageOutput::writeItem(NCReportItem* item);
void NCReportMarkupLanguageOutput::initStyleStream( QTextStream& styleStream, const QString& classID );
void NCReportMarkupLanguageOutput::addCSSItem( const QString& classID, const QString& value );
int& NCReportMarkupLanguageOutput::fileCounter();
```

## NCReportOutput

Inherits `QObject`. `#include "ncreportoutput.h"`

```cpp
// public:
enum NCReportOutput::OutputType { Preview=0, QtPreview, Printer, Pdf, PostScript, Svg, Image, Text, Xml, Html, Odf, ExcelHtml, ExcelXml, PlainText, Null, Custom, PdfWriter };
enum NCReportOutput::GeneratingMode { DirectPainter=0, DocumentFile };
NCReportOutput::NCReportOutput( QObject* parent= Q_NULLPTR );
void NCReportOutput::setPageOption( const NCReportPageOption& );
NCReportPageOption& NCReportOutput::option();
void NCReportOutput::setAutoDelete( bool );
bool NCReportOutput::isAutoDelete() const;
QString NCReportOutput::fileName() const;
OutputType NCReportOutput::outputType() const;
void NCReportOutput::setShowPrintDialog( bool );
bool NCReportOutput::showPrintDialog();
int NCReportOutput::copies() const;
QPainter* NCReportOutput::painter();
NCReportScale& NCReportOutput::scale();
void NCReportOutput::setParentWidget( QWidget* );
QWidget *NCReportOutput::parentWidget();
void NCReportOutput::setPageRange( int from, int to );
void NCReportOutput::setPageFromTo( int from, int to );
void NCReportOutput::setPageFrom(int from);
void NCReportOutput::setPageTo(int to);
void NCReportOutput::setPageRanges( const QString& pageRanges );
void NCReportOutput::setPageRangeList( const QList<int>& pageList );
void NCReportOutput::addToPageRangeList( int page );
QList<int> NCReportOutput::pageRangeList() const;
int NCReportOutput::pageRangeFrom() const;
int NCReportOutput::pageRangeTo() const;
bool NCReportOutput::isPageInRange(int page) const;
void NCReportOutput::setBatchMode( bool );
bool NCReportOutput::batchMode();
void NCReportOutput::setFlagFirst( bool );
void NCReportOutput::setFlagLast( bool );
void NCReportOutput::setFlagPrintStarted( bool );
bool NCReportOutput::flagFirst() const;
bool NCReportOutput::flagLast() const;
bool NCReportOutput::flagPrintStarted() const;
void NCReportOutput::setReportNum( int );
int NCReportOutput::reportNum() const;
virtual void NCReportOutput::setCopies( int num );
virtual void NCReportOutput::setFileName( const QString& );
virtual bool NCReportOutput::initialize() = 0;
virtual void NCReportOutput::cleanup() =0;
virtual void NCReportOutput::begin() =0;
virtual void NCReportOutput::end() =0;
virtual void NCReportOutput::newPage() =0;
virtual void NCReportOutput::renderItem( NCReportItem* item, const QRectF& rect );
virtual int NCReportOutput::resolution() const;
virtual void NCReportOutput::setResolution( int dpi );
virtual QPaintDevice* NCReportOutput::device() const;
bool NCReportOutput::isDocumentTemplateBased() const;
virtual bool NCReportOutput::renderSection(NCReportSection*, NCReportEvaluator*);
virtual void NCReportOutput::sectionStarts(NCReportSection* section, NCReportEvaluator* evaluator);
virtual void NCReportOutput::sectionEnds(NCReportSection* section, NCReportEvaluator* evaluator);
void NCReportOutput::setEndless(bool set);
bool NCReportOutput::isEndless() const;
void NCReportOutput::setFinalPosMM( const QPointF& point );
QPointF NCReportOutput::finalPosMM() const;
GeneratingMode NCReportOutput::generatingMode() const;
virtual void NCReportOutput::adjustEndlessHeight( double heightMM );
void NCReportOutput::setRotationAngle( int angle );
int NCReportOutput::rotationAngle() const;
void NCReportOutput::adjustScreenPreviewFont(QFont & font , NCReportDef *rdef);
static void NCReportOutput::adjustFont(QFont & font, qreal fontSizeFactor );
bool NCReportOutput::hasError() const;
QString NCReportOutput::lastError() const;
void NCReportOutput::setBatchModePageBreakBetweenPages(bool set);
bool NCReportOutput::isBatchModePageBreakBetweenPages() const;
bool NCReportOutput::isBatchModeAndNoPageBreakBetweenPages() const;
// protected:
virtual void NCReportOutput::setOutput( OutputType );
virtual void NCReportOutput::setPainter( QPainter* );
virtual void NCReportOutput::deletePainter();
virtual void NCReportOutput::rotatePainter( QPainter* painter );
virtual void NCReportOutput::customizePainter( QPainter* painter );
virtual bool NCReportOutput::hasValidRotationAngle();
void NCReportOutput::setDocumentTemplateBased(bool set);
void NCReportOutput::setGeneratingMode(GeneratingMode mode);
bool NCReportOutput::beginPainter(QPaintDevice *dev);
bool NCReportOutput::endPainter();
void NCReportOutput::setError( const QString& errorMsg);
```

## NCReportPageOption

`#include "ncreportpageoption.h"`

```cpp
// public:
NCReportPageOption::NCReportPageOption();
enum NCReportPageOption::MultiLanguageRole { UseDefaultLanguage = 0, LeaveEmpty };
void NCReportPageOption::setPaperSize( const NCReportPrinter::PaperSize );
void NCReportPageOption::setPaperSize( const NCReportPrinter::PaperSize size, const NCReportPrinter::Orientation orientation );
void NCReportPageOption::setPaperSize( const QString& paperSizeName, const QSizeF& customSize = QSizeF() );
void NCReportPageOption::setOrientation( const NCReportPrinter::Orientation orientation );
static void NCReportPageOption::setPaperSizeByName( const QString psname, const NCReportPrinter::Orientation orient, NCReportPrinter::PaperSize& psid, QSizeF& size );
static QString NCReportPageOption::paperSizeToName( const NCReportPrinter::PaperSize );
static void NCReportPageOption::loadPageDataVector( QVector<NCReportPageOption::PageData>& );
QString NCReportPageOption::reportTypeName() const;
void NCReportPageOption::setReportType( const QString& name );
void NCReportPageOption::setReportType( NCReport::ReportType );
void NCReportPageOption::adjustPageSize();
void NCReportPageOption::swapOrientation();
bool NCReportPageOption::read( NCReportXMLReader* r);
bool NCReportPageOption::write( NCReportXMLWriter* r);
QSizeF NCReportPageOption::purePageSize() const;
NCReportPrinter::PaperSize NCReportPageOption::paperSize() const;
NCReportPrinter::Orientation NCReportPageOption::pageOrientation() const;
NCReport::ReportType NCReportPageOption::reportType() const;
QString NCReportPageOption::reportName() const;
QSizeF NCReportPageOption::pageSizeMM() const;
qreal NCReportPageOption::pageWidthMM() const;
qreal NCReportPageOption::pageHeightMM() const;
qreal NCReportPageOption::topMarginMM() const;
qreal NCReportPageOption::bottomMarginMM() const;
qreal NCReportPageOption::leftMarginMM() const;
qreal NCReportPageOption::rightMarginMM() const;
int NCReportPageOption::columnCount() const;
qreal NCReportPageOption::columnWidth() const;
qreal NCReportPageOption::columnSpacing() const;
QFont NCReportPageOption::defaultFont() const;
QString NCReportPageOption::encoding() const;
QColor NCReportPageOption::backColor() const;
qreal NCReportPageOption::zoneSpacing() const;
qreal NCReportPageOption::sectionSpacing() const;
bool NCReportPageOption::isDoublePassMode() const;
QString NCReportPageOption::languages() const;
QString NCReportPageOption::currentLanguage() const;
QString NCReportPageOption::defaultLanguage() const;
MultiLanguageRole NCReportPageOption::languageRole() const;
bool NCReportPageOption::isMultiLanguage() const;
bool NCReportPageOption::zonesAreBreakable() const;
bool NCReportPageOption::subReportOnNewPage() const;
QString NCReportPageOption::htmlBodyStyle() const;
QString NCReportPageOption::htmlHead() const;
QString NCReportPageOption::defaultFontStyle() const;
void NCReportPageOption::setReportName(const QString&);
void NCReportPageOption::setPageWidthMM(qreal width);
void NCReportPageOption::setPageHeightMM(qreal height);
void NCReportPageOption::setPageSizeMM( const QSizeF& size);
void NCReportPageOption::setTopMarginMM(qreal margin);
void NCReportPageOption::setBottomMarginMM(qreal margin);
void NCReportPageOption::setLeftMarginMM(qreal margin);
void NCReportPageOption::setRightMarginMM(qreal margin);
void NCReportPageOption::setColumnCount(int);
void NCReportPageOption::setColumnWidth(qreal width);
void NCReportPageOption::setColumnSpacing(qreal spacing);
void NCReportPageOption::setDefaultFont(const QFont& );
void NCReportPageOption::setDefaultFontFamily(const QString& );
void NCReportPageOption::setDefaultFontSize(int pointsize);
void NCReportPageOption::setDefaultFontStyle( const QString& styleExpr );
void NCReportPageOption::setEncoding(const QString& enc);
void NCReportPageOption::setBackColor(const QColor& color);
void NCReportPageOption::setZoneSpacing(qreal spacing);
void NCReportPageOption::setSectionSpacing(qreal spacing);
void NCReportPageOption::setDoublePassMode(bool);
void NCReportPageOption::setLanguages(const QString&);
void NCReportPageOption::setCurrentLanguage(const QString& langCode, bool changeSystemLocale = false);
void NCReportPageOption::setLanguageRole( MultiLanguageRole );
void NCReportPageOption::setZonesAreBreakable(bool);
void NCReportPageOption::setSubReportOnNewPage(bool set);
void NCReportPageOption::setHtmlBodyStyle(const QString& options);
void NCReportPageOption::setHtmlHead(const QString& options);
void NCReportPageOption::setCustomData(const QString& data);
QString NCReportPageOption::customData() const;
bool NCReportPageOption::isDataTrimming() const;
void NCReportPageOption::setDataTrimming( bool trimming );
bool NCReportPageOption::updateOnlyCurrentDataSourceVariables() const;
void NCReportPageOption::setupdateOnlyCurrentDataSourceVariables( bool update );
bool NCReportPageOption::variableErrorAlert() const;
void NCReportPageOption::setVariableErrorAlert( bool alert );
bool NCReportPageOption::isTableOfContentsGeneration() const;
void NCReportPageOption::setTableOfContentsGeneration( bool generate );
QString NCReportPageOption::tableOfContentsFileName() const;
void NCReportPageOption::setTableOfContentsFileName(const QString& fileName);
bool NCReportPageOption::isTableOfContentsReset() const;
void NCReportPageOption::setTableOfContentsReset( bool reset );
QList<int> NCReportPageOption::tableOfContentsSectionTypes() const;
void NCReportPageOption::setTableOfContentsSectionTypes(const QList<int>& types);
void NCReportPageOption::setLabelDirection( NCReport::LabelDirection direction );
NCReport::LabelDirection NCReportPageOption::labelDirection() const;
void NCReportPageOption::setLabelRowCount( int count );
void NCReportPageOption::setLabelColumnCount( int count );
void NCReportPageOption::setLabelHorizontalGap( double hgap );
void NCReportPageOption::setLabelVerticalGap( double vgap );
void NCReportPageOption::setLabelSize( const QSizeF size);
int NCReportPageOption::labelRowCount() const;
int NCReportPageOption::labelColumnCount() const;
double NCReportPageOption::labelHorizontalGap() const;
double NCReportPageOption::labelVerticalGap() const;
QSizeF NCReportPageOption::labelSize() const;
bool NCReportPageOption::isEndless() const;
void NCReportPageOption::setEndless( bool endless );
int NCReportPageOption::printResolution() const;
void NCReportPageOption::setPrintResolution(int dpi);
bool NCReportPageOption::isSubReportResetPageNo() const;
void NCReportPageOption::setSubReportResetPageNo( bool set );
QString NCReportPageOption::emptyValue() const;
void NCReportPageOption::setEmptyValue( const QString & value );
void NCReportPageOption::setFullPageMode(bool set);
bool NCReportPageOption::isFullPageMode() const;
void NCReportPageOption::evaluateDynamicProperties(NCReportEvaluator* ev);
void NCReportPageOption::setOutputFileBaseName(const QString &fname);
QString NCReportPageOption::outputFileBaseName() const;
```

## NCReportPageOption::PageData

`#include "ncreportpageoption.h"`

```cpp
// public:
NCReportPageOption::PageData::PageData();
NCReportPageOption::PageData::PageData( const QString& nm, const NCReportPrinter::PaperSize ps, const qreal w, const qreal h );
QString NCReportPageOption::PageData::name;
NCReportPrinter::PaperSize NCReportPageOption::PageData::paperSize;
qreal NCReportPageOption::PageData::width;
qreal NCReportPageOption::PageData::height;
```

## NCReportParameter

Inherits `NCReportData`. `#include "ncreportparameter.h"`

```cpp
// public:
NCReportParameter::NCReportParameter();
NCReportParameter::NCReportParameter( const QString& id, const QVariant& value, NCReportData::DataType = NCReportData::Text );
```

## NCReportPdfOutput

Inherits `NCReportPrinterOutput`. `#include "ncreportpdfoutput.h"` `[qprinter]`

```cpp
// public:
NCReportPdfOutput::NCReportPdfOutput( NCReportPrinter::PrinterMode quality = NCReportPrinter::HighResolution, int dpi=-1, NCReportPrinter::OutputFormat outputFormat = NCReportPrinter::PdfFormat, QObject* parent=Q_NULLPTR);
virtual void NCReportPdfOutput::cleanup();
virtual void NCReportPdfOutput::begin();
virtual void NCReportPdfOutput::end();
virtual void NCReportPdfOutput::setFileName( const QString& );
void NCReportPdfOutput::setPdfVersion( NCReport::PdfVersion version );
void NCReportPdfOutput::initPrinter();
```

## NCReportPdfWriterOutput

Inherits `NCReportOutput`. `#include "ncreportpdfwriteroutput.h"`

```cpp
// public:
NCReportPdfWriterOutput::NCReportPdfWriterOutput(const QString &fileName, QObject* parent=Q_NULLPTR );
NCReportPdfWriterOutput::NCReportPdfWriterOutput(QIODevice* device, QObject* parent=Q_NULLPTR );
void NCReportPdfWriterOutput::setDpi(int dpi);
int NCReportPdfWriterOutput::dpi() const;
bool NCReportPdfWriterOutput::initialize() override;
void NCReportPdfWriterOutput::cleanup() override;
void NCReportPdfWriterOutput::begin() override;
void NCReportPdfWriterOutput::end() override;
void NCReportPdfWriterOutput::newPage() override;
int NCReportPdfWriterOutput::resolution() const override;
void NCReportPdfWriterOutput::setResolution( int dpi ) override;
QPaintDevice* NCReportPdfWriterOutput::device() const override;
void NCReportPdfWriterOutput::setPdfVersion( NCReport::PdfVersion version );
void NCReportPdfWriterOutput::setCreator( const QString & creator);
void NCReportPdfWriterOutput::setTitle( const QString & title);
void NCReportPdfWriterOutput::setXmpMetaData( const QByteArray & md);
```

## NCReportPreviewDialog

Inherits `QDialog`. `#include "ncreportpreviewdialog.h"` `[preview]`

```cpp
// public:
explicit NCReportPreviewDialog::NCReportPreviewDialog(NCReport *report, QPrinter *printer, const QString &outFile, QWidget *parent = nullptr);
void NCReportPreviewDialog::setPaintRequestHandler(const QObject *receiver, const char *slot);
void NCReportPreviewDialog::initialUpdate();
QToolBar* NCReportPreviewDialog::toolbar();
QToolButton *NCReportPreviewDialog::btnPrint();
QToolButton *NCReportPreviewDialog::btnPrintPdf();
QToolButton *NCReportPreviewDialog::btnZoomIn();
QToolButton *NCReportPreviewDialog::btnZoomOut();
QToolButton *NCReportPreviewDialog::btnFitToWidth();
QToolButton *NCReportPreviewDialog::btnFitInView();
QToolButton *NCReportPreviewDialog::btnNext();
QToolButton *NCReportPreviewDialog::btnPrev();
QToolButton *NCReportPreviewDialog::btnFirst();
QToolButton *NCReportPreviewDialog::btnLast();
QToolButton *NCReportPreviewDialog::btnClose();
QToolButton *NCReportPreviewDialog::btnPageViewMode();
// signals:
void NCReportPreviewDialog::paintRequested(QPrinter *printer);
void NCReportPreviewDialog::customizePrinter(QPrinter *printer);
void NCReportPreviewDialog::printingDone();
// public slots:
void NCReportPreviewDialog::print();
void NCReportPreviewDialog::printToPdf();
void NCReportPreviewDialog::zoomIn();
void NCReportPreviewDialog::zoomOut();
void NCReportPreviewDialog::fitInView();
void NCReportPreviewDialog::fitToWidth();
void NCReportPreviewDialog::nextPage();
void NCReportPreviewDialog::prevPage();
void NCReportPreviewDialog::lastPage();
void NCReportPreviewDialog::firstPage();
void NCReportPreviewDialog::predefinedZoomChange(int index);
void NCReportPreviewDialog::setAllPagesViewMode();
void NCReportPreviewDialog::setFacingPagesViewMode();
void NCReportPreviewDialog::setSinglePageViewMode();
// protected:
void NCReportPreviewDialog::showEvent(QShowEvent *event) override;
```

## NCReportPreviewIcons

Inherits `QObject`. `#include "ncreportpreviewicons.h"` `[preview]`

```cpp
// public:
enum NCReportPreviewIcons::Icon { Open, Print, Pdf, Svg, Excel, ZoomIn, ZoomOut, ZoomReset, FitToWidth, FitInWindow, FirstPage, PreviousPage, NextPage, LastPage, GoToPage, PreviousReport, NextReport, SinglePageView, FacingPagesView, ContinuousView, AllPagesView, Close, IconCount };
static NCReportPreviewIcons* NCReportPreviewIcons::instance();
static QIcon NCReportPreviewIcons::icon(Icon id);
static QString NCReportPreviewIcons::iconName(Icon id);
static void NCReportPreviewIcons::setIcon(Icon id, const QIcon& icon);
static void NCReportPreviewIcons::setIconDirectory(const QString& dir);
static QString NCReportPreviewIcons::iconDirectory();
static void NCReportPreviewIcons::setUseSystemTheme(bool use);
static bool NCReportPreviewIcons::useSystemTheme();
static void NCReportPreviewIcons::setIconSize(const QSize& size);
static QSize NCReportPreviewIcons::iconSize();
static void NCReportPreviewIcons::reset();
// signals:
void NCReportPreviewIcons::changed();
```

## NCReportPreviewOutput

Inherits `NCReportOutput`. `#include "ncreportpreviewoutput.h"`

```cpp
// public:
NCReportPreviewOutput::NCReportPreviewOutput( QObject* parent = Q_NULLPTR );
QByteArray NCReportPreviewOutput::page( int pageNo ) const;
QSizeF NCReportPreviewOutput::pageSizeMM( int pageNo ) const;
const QList<QByteArray>& NCReportPreviewOutput::pages();
const QList<int>& NCReportPreviewOutput::startPagesOfReports();
bool NCReportPreviewOutput::initialize();
void NCReportPreviewOutput::cleanup();
void NCReportPreviewOutput::begin();
void NCReportPreviewOutput::end();
void NCReportPreviewOutput::newPage();
void NCReportPreviewOutput::deletePages();
void NCReportPreviewOutput::adjustEndlessHeight(double heightMM);
void NCReportPreviewOutput::renderItem(NCReportItem* item, const QRectF& rect);
QList<QPair<QString, QRectF> > NCReportPreviewOutput::clickableAreas(int page) const;
QHash<QString, QRect> NCReportPreviewOutput::clickables(int page) const;
```

## NCReportPreviewPage

Inherits `QWidget`. `#include "ncreportpreviewpage.h"`

```cpp
// public:
NCReportPreviewPage::NCReportPreviewPage( QWidget * parent = Q_NULLPTR );
void NCReportPreviewPage::setContent( const QByteArray& content );
QByteArray NCReportPreviewPage::content() const;
void NCReportPreviewPage::setPageSizeMM( const QSizeF& sizeMM );
QSizeF NCReportPreviewPage::pageSizeMM() const;
void NCReportPreviewPage::setScaleRate(qreal rate);
qreal NCReportPreviewPage::scaleRate() const;
void NCReportPreviewPage::setDropShadow( bool set );
bool NCReportPreviewPage::dropShadow() const;
static void NCReportPreviewPage::loadPicture(QPicture& picture, QByteArray &ba);
static void NCReportPreviewPage::savePicture(QPicture& picture, QByteArray &ba );
void NCReportPreviewPage::setClickables( const QHash<QString, QRect>& hash);
void NCReportPreviewPage::setClickableAreas( const QList<QPair<QString, QRectF> >& areas );
void NCReportPreviewPage::addClickArea( const QString& id, const QRect& rect);
// signals:
void NCReportPreviewPage::pageDoubleClicked( const QPoint& pos );
void NCReportPreviewPage::elementClicked( const QString& id );
// protected:
void NCReportPreviewPage::paintEvent( QPaintEvent* );
void NCReportPreviewPage::keyPressEvent(QKeyEvent *event);
void NCReportPreviewPage::drawBackground(QPainter *painter );
void NCReportPreviewPage::mouseDoubleClickEvent(QMouseEvent *event);
void NCReportPreviewPage::mousePressEvent(QMouseEvent *event);
void NCReportPreviewPage::mouseReleaseEvent(QMouseEvent *event);
void NCReportPreviewPage::mouseMoveEvent(QMouseEvent *event);
```

## NCReportPreviewPageContainer

Inherits `QWidget`. `#include "ncreportpreviewpagecontainer.h"`

```cpp
// public:
NCReportPreviewPageContainer::NCReportPreviewPageContainer( QWidget * parent, NCReportPreviewWindow *pw );
enum NCReportPreviewPageContainer::ShowType { Single=0, Double, Continous };
void NCReportPreviewPageContainer::setOutput(NCReportPreviewOutput*);
void NCReportPreviewPageContainer::setShowType( const ShowType );
void NCReportPreviewPageContainer::setMargins( int left, int right, int top, int bottom );
void NCReportPreviewPageContainer::setAllPageSize( const QSizeF& mmsize );
void NCReportPreviewPageContainer::loadPage( int pageno );
void NCReportPreviewPageContainer::scale(qreal factor);
qreal NCReportPreviewPageContainer::currentScaleFactor() const;
ShowType NCReportPreviewPageContainer::showType() const;
NCReportPreviewPage* NCReportPreviewPageContainer::page(int) const;
int NCReportPreviewPageContainer::pagePosition( int pageno ) const;
int NCReportPreviewPageContainer::numPagesOnScreen() const;
int NCReportPreviewPageContainer::leftMargin() const;
int NCReportPreviewPageContainer::rightMargin() const;
int NCReportPreviewPageContainer::topMargin() const;
int NCReportPreviewPageContainer::bottomMargin() const;
```

## NCReportPreviewWindow

Inherits `QMainWindow`. `#include "ncreportpreviewwindow.h"` `[preview]`

```cpp
// public:
NCReportPreviewWindow::NCReportPreviewWindow( QWidget *parent = Q_NULLPTR, bool handleSettings = true );
NCReportPreviewWindow::NCReportPreviewWindow( const QString &orgName, const QString &appName, QWidget *parent = Q_NULLPTR, bool handleSettings = true );
NCReportPreviewWindow::NCReportPreviewWindow( bool createMenuBar, bool createStatusBar, QWidget *parent = Q_NULLPTR, bool handleSettings = true );
enum NCReportPreviewWindow::PagePosition { Top, Bottom, Off };
void NCReportPreviewWindow::setOutput( NCReportPreviewOutput* );
void NCReportPreviewWindow::setReport( NCReport* );
NCReport* NCReportPreviewWindow::report() const;
void NCReportPreviewWindow::setDefaultOutputDir( const QString& dir );
QString NCReportPreviewWindow::defaultOutputDir() const;
void NCReportPreviewWindow::setPrinterName( const QString& printer );
QString NCReportPreviewWindow::printerName() const;
void NCReportPreviewWindow::setUsePrintDialog( bool set );
bool NCReportPreviewWindow::usePrintDialog() const;
int NCReportPreviewWindow::pageCount() const;
int NCReportPreviewWindow::reportCount() const;
NCReportPreviewPageContainer::ShowType NCReportPreviewWindow::showType() const;
void NCReportPreviewWindow::setCurrentPage( int pageno, NCReportPreviewPageContainer::ShowType type = NCReportPreviewPageContainer::Single );
QAction* NCReportPreviewWindow::actionPrint() const;
QAction* NCReportPreviewWindow::actionPdf() const;
QAction* NCReportPreviewWindow::actionSvg() const;
QAction* NCReportPreviewWindow::actionXls() const;
QAction* NCReportPreviewWindow::actionClose() const;
QAction* NCReportPreviewWindow::actionFirstPage() const;
QAction* NCReportPreviewWindow::actionNextPage() const;
QAction* NCReportPreviewWindow::actionPreviousPage() const;
QAction* NCReportPreviewWindow::actionLastPage() const;
QAction* NCReportPreviewWindow::actionGoToPage() const;
QAction* NCReportPreviewWindow::actionZoomIn() const;
QAction* NCReportPreviewWindow::actionZoomOut() const;
QAction* NCReportPreviewWindow::actionZoomOff() const;
QAction* NCReportPreviewWindow::actionNextReport() const;
QAction* NCReportPreviewWindow::actionPreviousReport() const;
QAction* NCReportPreviewWindow::actionViewSingleMode() const;
QAction* NCReportPreviewWindow::actionViewDoubleMode() const;
QAction* NCReportPreviewWindow::actionViewContinousMode() const;
bool NCReportPreviewWindow::donePrint() const;
bool NCReportPreviewWindow::donePDF() const;
bool NCReportPreviewWindow::doneSVG() const;
bool NCReportPreviewWindow::doneXLS() const;
QToolBar *NCReportPreviewWindow::toolBarFile();
QToolBar *NCReportPreviewWindow::toolBarView();
QToolBar *NCReportPreviewWindow::toolBarNavigation();
void NCReportPreviewWindow::exec( bool autoAdjustSize = false );
void NCReportPreviewWindow::setDefaultOutputFileName( const QString& fileName );
QString NCReportPreviewWindow::defaultOutputFileName() const;
void NCReportPreviewWindow::setSettingsData( const QString& orgName, const QString& appName );
void NCReportPreviewWindow::setDefaultPdfDpi( int dpi );
int NCReportPreviewWindow::defaultPdfDpi() const;
bool NCReportPreviewWindow::isInternalPrinting();
void NCReportPreviewWindow::setInternalPrinting( bool set );
qreal NCReportPreviewWindow::currentScale() const;
void NCReportPreviewWindow::setScale( qreal zoomFactor );
void NCReportPreviewWindow::setPdfVersion( NCReport::PdfVersion version );
void NCReportPreviewWindow::setPdfCreator( const QString creator);
// signals:
void NCReportPreviewWindow::runPrinterDone();
void NCReportPreviewWindow::runPdfDone();
void NCReportPreviewWindow::runSvgDone();
void NCReportPreviewWindow::runXlsDone();
void NCReportPreviewWindow::elementClicked(const QString& id);
void NCReportPreviewWindow::customizePrinter(QPrinter* printer);
// public slots:
virtual void NCReportPreviewWindow::nextPage( const PagePosition = Top );
virtual void NCReportPreviewWindow::prevPage( const PagePosition = Top );
virtual void NCReportPreviewWindow::firstPage( const PagePosition = Top );
virtual void NCReportPreviewWindow::lastPage( const PagePosition = Top );
virtual void NCReportPreviewWindow::open();
virtual bool NCReportPreviewWindow::save();
virtual bool NCReportPreviewWindow::saveAs();
virtual void NCReportPreviewWindow::about();
virtual void NCReportPreviewWindow::documentWasModified();
virtual void NCReportPreviewWindow::activatePrint();
virtual void NCReportPreviewWindow::activatePdf();
virtual void NCReportPreviewWindow::activateSvg();
virtual void NCReportPreviewWindow::activateXls();
virtual void NCReportPreviewWindow::zoomChangedStr( const QString & s);
virtual void NCReportPreviewWindow::zoomChanged();
virtual void NCReportPreviewWindow::zoomChangedInt( int scaleFactor );
virtual void NCReportPreviewWindow::zoomPlus();
virtual void NCReportPreviewWindow::zoomMinus();
virtual void NCReportPreviewWindow::zoom1();
virtual void NCReportPreviewWindow::gotoPage();
virtual void NCReportPreviewWindow::gotoPage( int pageno );
virtual void NCReportPreviewWindow::nextReport();
virtual void NCReportPreviewWindow::prevReport();
virtual void NCReportPreviewWindow::sliderMoved(int value);
virtual void NCReportPreviewWindow::reRun();
virtual void NCReportPreviewWindow::adjustSizeToOptimalWidth();
virtual void NCReportPreviewWindow::setViewSingle();
virtual void NCReportPreviewWindow::setViewDouble();
virtual void NCReportPreviewWindow::setViewContinous();
// protected slots:
virtual void NCReportPreviewWindow::loadPage( int pageno );
virtual void NCReportPreviewWindow::viewChange(QAction*);
virtual void NCReportPreviewWindow::testPrint1();
virtual void NCReportPreviewWindow::testPrint2();
virtual void NCReportPreviewWindow::addTestItems();
virtual void NCReportPreviewWindow::clearPage();
// protected:
virtual void NCReportPreviewWindow::showEvent( QShowEvent* event);
virtual void NCReportPreviewWindow::closeEvent(QCloseEvent *event);
virtual void NCReportPreviewWindow::loadPagePrivate( int pageno, const PagePosition );
virtual void NCReportPreviewWindow::readSettings( QSettings* settings );
virtual void NCReportPreviewWindow::writeSettings( QSettings* settings );
```

## NCReportPrinter

`#include "ncreportprinter.h"`

```cpp
// public:
enum NCReportPrinter::PrinterMode { ScreenResolution, PrinterResolution, HighResolution };
enum NCReportPrinter::Orientation { Portrait, Landscape };
enum NCReportPrinter::PreviewMode { ModernPreview, QtPreview, TraditionalPreview };
enum NCReportPrinter::PageSize { A4, B5, Letter, Legal, Executive, A0, A1, A2, A3, A5, A6, A7, A8, A9, B0, B1, B10, B2, B3, B4, B6, B7, B8, B9, C5E, Comm10E, DLE, Folio, Ledger, Tabloid, Custom, A10, A3Extra, A4Extra, A4Plus, A4Small, A5Extra, B5Extra, JisB0, JisB1, JisB2, JisB3, JisB4, JisB5, JisB6, JisB7, JisB8, JisB9, JisB10, AnsiC, AnsiD, AnsiE, LegalExtra, LetterExtra, LetterPlus, LetterSmall, TabloidExtra, ArchA, ArchB, ArchC, ArchD, ArchE, Imperial7x9, Imperial8x10, Imperial9x11, Imperial9x12, Imperial10x11, Imperial10x13, Imperial10x14, Imperial12x11, Imperial15x11, ExecutiveStandard, Note, Quarto, Statement, SuperA, SuperB, Postcard, DoublePostcard, Prc16K, Prc32K, Prc32KBig, FanFoldUS, FanFoldGerman, FanFoldGermanLegal, EnvelopeB4, EnvelopeB5, EnvelopeB6, EnvelopeC0, EnvelopeC1, EnvelopeC2, EnvelopeC3, EnvelopeC4, EnvelopeC6, EnvelopeC65, EnvelopeC7, Envelope9, Envelope11, Envelope12, Envelope14, EnvelopeMonarch, EnvelopePersonal, EnvelopeChou3, EnvelopeChou4, EnvelopeInvite, EnvelopeItalian, EnvelopeKaku2, EnvelopeKaku3, EnvelopePrc1, EnvelopePrc2, EnvelopePrc3, EnvelopePrc4, EnvelopePrc5, EnvelopePrc6, EnvelopePrc7, EnvelopePrc8, EnvelopePrc9, EnvelopePrc10, EnvelopeYou4, LastPageSize = EnvelopeYou4, NPageSize = LastPageSize, NPaperSize = LastPageSize, AnsiA = Letter, AnsiB = Ledger, EnvelopeC5 = C5E, EnvelopeDL = DLE, Envelope10 = Comm10E };
typedef PageSize NCReportPrinter::PaperSize;
enum NCReportPrinter::OutputFormat { NativeFormat, PdfFormat };
enum NCReportPrinter::PageOrder { FirstPageFirst, LastPageFirst };
enum NCReportPrinter::ColorMode { GrayScale, Color };
enum NCReportPrinter::PrintRange { AllPages, Selection, PageRange, CurrentPage };
enum NCReportPrinter::Unit { Millimeter, Point, Inch, Pica, Didot, Cicero, DevicePixel };
enum NCReportPrinter::DuplexMode { DuplexNone = 0, DuplexAuto, DuplexLongSide, DuplexShortSide };
explicit NCReportPrinter::NCReportPrinter();
static QPrinter::PrinterMode NCReportPrinter::toQtPrinterMode(PrinterMode value);  // [qprinter]
static QPageLayout::Orientation NCReportPrinter::toQtOrientation(Orientation value);  // [qprinter]
static QPageSize::PageSizeId NCReportPrinter::toQtPaperSize(PaperSize value);  // [qprinter]
static NCReportPrinter::Orientation NCReportPrinter::toNcrOrientation(QPageLayout::Orientation value);  // [qprinter]
static NCReportPrinter::PaperSize NCReportPrinter::toNcrPaperSize(QPageSize::PageSizeId value);  // [qprinter]
static QPrinter::OutputFormat NCReportPrinter::toQtOutputFormat(OutputFormat value);  // [qprinter]
static QPrinter::ColorMode NCReportPrinter::toQtColorMode(ColorMode value);  // [qprinter]
static QPrinter::PrintRange NCReportPrinter::toQtPrintRange(PrintRange value);  // [qprinter]
static QPrinter::Unit NCReportPrinter::toQtUnit(Unit value);  // [qprinter]
static QPrinter::DuplexMode NCReportPrinter::toQtDuplexMode(DuplexMode value);  // [qprinter]
static QPageSize NCReportPrinter::pageSize(PaperSize value);
```

## NCReportPrinterOutput

Inherits `NCReportOutput`. `#include "ncreportprinteroutput.h"` `[qprinter]`

```cpp
// public:
NCReportPrinterOutput::NCReportPrinterOutput( QObject* parent=0 );
NCReportPrinterOutput::NCReportPrinterOutput( NCReportPrinter::PrinterMode quality, int dpi=-1, QObject* parent=0 );
NCReportPrinterOutput::NCReportPrinterOutput( const QPrinterInfo & printerInfo, NCReportPrinter::PrinterMode quality, int dpi=-1, QObject* parent=0 );
virtual bool NCReportPrinterOutput::initialize();
virtual void NCReportPrinterOutput::cleanup();
virtual void NCReportPrinterOutput::begin();
virtual void NCReportPrinterOutput::end();
virtual void NCReportPrinterOutput::newPage();
QPrinter* NCReportPrinterOutput::printer() const;
virtual void NCReportPrinterOutput::setCopies( int num );
virtual int NCReportPrinterOutput::resolution() const;
virtual void NCReportPrinterOutput::setResolution( int dpi );
virtual QPaintDevice* NCReportPrinterOutput::device() const;
virtual void NCReportPrinterOutput::adjustEndlessHeight( double heightMM );
// signals:
void NCReportPrinterOutput::customizePrinter(QPrinter* printer);
// protected:
virtual QPrinter* NCReportPrinterOutput::createPrinter( NCReportPrinter::PrinterMode quality = NCReportPrinter::HighResolution, int dpi=-1 );
virtual QPrinter* NCReportPrinterOutput::createPrinter(const QPrinterInfo & printerInfo, NCReportPrinter::PrinterMode quality = NCReportPrinter::HighResolution, int dpi=-1 );
virtual void NCReportPrinterOutput::initPrinter();
virtual void NCReportPrinterOutput::initPrinterSimple();
virtual void NCReportPrinterOutput::rotatePrinter( QPrinter* printer );
void NCReportPrinterOutput::setPrinter( QPrinter* printer );
void NCReportPrinterOutput::setDialogDone( bool set );
bool NCReportPrinterOutput::dialogDone() const;
```

## NCReportQtPreviewOutput

Inherits `NCReportPrinterOutput`. `#include "ncreportqtpreviewoutput.h"` `[qprinter]`

```cpp
// public:
NCReportQtPreviewOutput::NCReportQtPreviewOutput(NCReport *report, NCReportPrinter::PreviewMode mode, NCReportPrinter::PrinterMode quality, int dpi, const QString &outFile, QWidget* parent);
virtual bool NCReportQtPreviewOutput::setup();
QDialog* NCReportQtPreviewOutput::dialog();
void NCReportQtPreviewOutput::begin();
void NCReportQtPreviewOutput::end();
bool NCReportQtPreviewOutput::isValid() const;
// public slots:
void NCReportQtPreviewOutput::printPreview(QPrinter* printer);
```

## NCReportRectItem

Inherits `NCReportShapeItem`. `#include "ncreportrectitem.h"`

```cpp
// public:
NCReportRectItem::NCReportRectItem( NCReportDef* rdef, QGraphicsItem* parent =0);
QRectF NCReportRectItem::boundingRect() const override;
void NCReportRectItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void NCReportRectItem::paint( NCReportOutput* o, const QPointF& mPos ) override;
void NCReportRectItem::paint_old( NCReportOutput* o, const QPointF& mPos );
inline int NCReportRectItem::xRound() const;
inline void NCReportRectItem::setXRound( int r );
inline int NCReportRectItem::yRound() const;
inline void NCReportRectItem::setYRound( int r );
void NCReportRectItem::setRect(const QRectF &rect);
bool NCReportRectItem::read( NCReportXMLReader* ) override;
bool NCReportRectItem::write( NCReportXMLWriter* ) override;
void NCReportRectItem::setDefaultForEditor() override;
```

## NCReportScale

`#include "ncreportscale.h"`

```cpp
// public:
NCReportScale::NCReportScale();
NCReportScale::NCReportScale( qreal dpi );
void NCReportScale::setDpi( qreal dpi );
qreal NCReportScale::dpi() const;
qreal NCReportScale::pixelToMM( int pixel );
qreal NCReportScale::pixelToMM( qreal pixel );
int NCReportScale::mmToPixel( qreal mm );
qreal NCReportScale::mmToRealPixel( qreal mm ) const;
QPointF NCReportScale::pointToMM( const QPointF& point ) const;
QPointF NCReportScale::mmToPoint( const QPointF& pointMM ) const;
QSizeF NCReportScale::sizeToMM( const QSizeF& size ) const;
QSizeF NCReportScale::mmToSize( const QSizeF& sizeMM ) const;
int NCReportScale::fontPointSizeToPixel( int pointSize ) const;
qreal NCReportScale::fontPixelSizeToPoint( qreal pixel ) const;
void NCReportScale::setTrimFactor( qreal trim );
inline qreal NCReportScale::trimFactor() const;
static int NCReportScale::desktopDpi();
qreal NCReportScale::screenFontFactor() const;
```

## NCReportScript

`#include "ncreportdef.h"`

```cpp
// public:
NCReportScript::NCReportScript();
QString NCReportScript::function() const;
void NCReportScript::setFunction( const QString& function );
bool NCReportScript::hasArgument() const;
const QVariantList& NCReportScript::arguments();
void NCReportScript::setArguments( const QVariantList& arguments );
void NCReportScript::setArguments( const QString& arguments );
QString NCReportScript::argumentsToString() const;
QString NCReportScript::id() const;
void NCReportScript::setId( const QString& id );
```

## NCReportSection

`#include "ncreportsection.h"`

```cpp
// public:
NCReportSection::NCReportSection();
enum NCReportSection::SectionType { PageHeader=0, PageFooter, GroupHeader, GroupFooter, Detail, ReportHeader, ReportFooter, Custom };
enum NCReportSection::SpaceCheckRole { SectionOnly=0, SectionPlusDetail, SectionPlusOrphanedTolerance };
enum NCReportSection::AlternateRowMode { Disabled=0, Odd, Even };
inline bool NCReportSection::gridVisible() const;
void NCReportSection::setGridVisible(bool visible);
inline bool NCReportSection::snapX() const;
void NCReportSection::setSnapX(bool snap);
inline bool NCReportSection::snapY() const;
void NCReportSection::setSnapY(bool snap);
inline int NCReportSection::deltaX() const;
void NCReportSection::setDeltaX(int dx);
inline int NCReportSection::deltaY() const;
void NCReportSection::setDeltaY(int dy);
QPointF NCReportSection::snapToPoint(const QPointF &p) const;
qreal NCReportSection::snapToX(const qreal) const;
qreal NCReportSection::snapToY(const qreal) const;
int NCReportSection::nextZValue();
void NCReportSection::resetZValue();
virtual void NCReportSection::addItemForEditor(NCReportItem* item, bool genZValue);
virtual void NCReportSection::addItemForEngine( NCReportItem* item);
virtual void NCReportSection::removeItemFromEngine(NCReportItem* item);
virtual void NCReportSection::emitContentChanged();
virtual void NCReportSection::emitItemChanged( NCReportItem* );
QList<NCReportItem*>& NCReportSection::reportItems();
inline bool NCReportSection::isFinished() const;
void NCReportSection::setFinished( bool set );
inline qreal NCReportSection::metricHeight() const;
void NCReportSection::setMetricHeight( qreal mm );
inline SectionType NCReportSection::type() const;
void NCReportSection::setType( SectionType value );
inline SpaceCheckRole NCReportSection::checkRole() const;
void NCReportSection::setCheckRole( SpaceCheckRole value );
inline bool NCReportSection::isShown() const;
void NCReportSection::setShow( bool value );
inline bool NCReportSection::isAutoHeight() const;
void NCReportSection::setAutoHeight( bool value );
inline bool NCReportSection::hideIfBlank() const;
void NCReportSection::setHideIfBlank( bool value );
inline QString NCReportSection::id() const;
void NCReportSection::setID( const QString& value );
void NCReportSection::setParentId( const QString& parentId);
QString NCReportSection::parentId() const;
QString NCReportSection::descriptor() const;
void NCReportSection::setDescriptor( const QString& descriptor );
QString NCReportSection::caption() const;
inline NCReportGroup* NCReportSection::relatedGroup() const;
void NCReportSection::setRelatedGroup( NCReportGroup* g );
inline QString NCReportSection::tagname() const;
void NCReportSection::setTagname( const QString& value );
inline QString NCReportSection::dataSourceId() const;
void NCReportSection::setDataSourceId( const QString& value );
inline QString NCReportSection::secondaryDatasourceID() const;
void NCReportSection::setSecondaryDatasourceID( const QString& value );
inline QList<NCReportGroup*>& NCReportSection::groups();
inline int NCReportSection::layoutIndex() const;
void NCReportSection::setLayoutIndex( int value );
inline QString NCReportSection::pageBreakExp() const;
void NCReportSection::setPageBreakExp( const QString& value );
inline bool NCReportSection::startsOnNewPage() const;
void NCReportSection::setStartsOnNewPage( bool value );
inline QString NCReportSection::printWhenExp() const;
void NCReportSection::setPrintWhenExp( const QString& value );
inline qreal NCReportSection::orphanedTolaranceMM() const;
void NCReportSection::setOrphanedTolaranceMM( qreal value );
bool NCReportSection::isPrintLock() const;
void NCReportSection::setPrintLock(bool set);
inline bool NCReportSection::isAnchorToPageFooter() const;
void NCReportSection::setAnchorToPageFooter(bool set);
inline bool NCReportSection::isNotAlone() const;
void NCReportSection::setNotAlone(bool set);
inline QString NCReportSection::htmlOptions() const;
void NCReportSection::setHtmlOptions( const QString& options );
NCReportDataSource* NCReportSection::dataSource();
void NCReportSection::setDataSource( NCReportDataSource *ds );
void NCReportSection::setAlternateRowBackgroundMode( AlternateRowMode mode );
AlternateRowMode NCReportSection::alternateRowBackgroundMode();
void NCReportSection::setAlternateRowBackgroundColor( const QColor& color );
QColor NCReportSection::alternateRowBackgroundColor() const;
void NCReportSection::setUseDefaultAlternateRowColor( bool set );
bool NCReportSection::useDefaultAlternateRowColor() const;
inline QString NCReportSection::repeatExp() const;
void NCReportSection::setRepeatExp( const QString& value );
const QList<NCReportSection*>& NCReportSection::childSections() const;
void NCReportSection::addChildSection(NCReportSection* section);
void NCReportSection::read( NCReportXMLReader* reader );
void NCReportSection::write( NCReportXMLWriter* writer );
// protected:
bool NCReportSection::m_destructorDeleteItems;
```

## NCReportShapeItem

Inherits `NCReportItem`. `#include "ncreportshapeitem.h"`

```cpp
// public:
NCReportShapeItem::NCReportShapeItem( QGraphicsItem* parent =0);
void NCReportShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
bool NCReportShapeItem::read( NCReportXMLReader* r) override;
bool NCReportShapeItem::write( NCReportXMLWriter* w) override;
void NCReportShapeItem::paint( NCReportOutput*, const QPointF& ) override = 0;
bool NCReportShapeItem::isObscuredBy(const QGraphicsItem *item) const override;
QPainterPath NCReportShapeItem::opaqueArea() const override;
virtual bool NCReportShapeItem::isLine() const;
static QPainterPath NCReportShapeItem::shapeFromPath(const QPainterPath &path, const QPen &pen);
void NCReportShapeItem::updateValue( NCReportOutput* output, NCReportEvaluator* evaluator) override;
inline QPen NCReportShapeItem::pen() const;
inline QBrush NCReportShapeItem::brush() const;
virtual void NCReportShapeItem::setBrush( const QBrush & brush );
virtual void NCReportShapeItem::setPen( const QPen & pen );
inline qreal NCReportShapeItem::lineWidth() const;
void NCReportShapeItem::setLineWidth( qreal width );
void NCReportShapeItem::setDynamicFillColorSource( const QString& source );
QString NCReportShapeItem::dynamicFillColorSource() const;
void NCReportShapeItem::setDynamicLineColorSource( const QString& source );
QString NCReportShapeItem::dynamicLineColorSource() const;
void NCReportShapeItem::setDynamicLineWidthSource( const QString& source );
QString NCReportShapeItem::dynamicLineWidthSource() const;
// protected:
NCReportShapeItem::NCReportShapeItem( NCReportShapeData* data, QGraphicsItem* parent = Q_NULLPTR );
```

## NCReportSource

`#include "ncreportsource.h"`

```cpp
// public:
NCReportSource::NCReportSource();
enum NCReportSource::ReportSourceType { File=0, Database, Http, Ftp, Custom, String };
void NCReportSource::setReportDef( NCReportDef* );
NCReportDef* NCReportSource::reportDef();
void NCReportSource::setReportDefXML( const QString& );
QString NCReportSource::reportDefXML() const;
void NCReportSource::setSourceType( NCReportSource::ReportSourceType );
ReportSourceType NCReportSource::sourceType() const;
void NCReportSource::setConnectionID( const QString& );
QString NCReportSource::connectionID() const;
void NCReportSource::setFileName(const QString& fileName, bool saveToApp = true);
QString NCReportSource::fileName() const;
void NCReportSource::setIntegerReportID( int );
int NCReportSource::integerReportID() const;
void NCReportSource::setStringReportID( const QString& );
QString NCReportSource::stringReportID() const;
void NCReportSource::setColumnName( const QString& column );
QString NCReportSource::columnName() const;
void NCReportSource::setTableName( const QString& table );
QString NCReportSource::tableName() const;
void NCReportSource::setKeyColumnName( const QString& column );
QString NCReportSource::keyColumnName() const;
void NCReportSource::setKeyValue( const QString& value );
QString NCReportSource::keyValue() const;
void NCReportSource::addParameter( const QString& id, const QString& value );
void NCReportSource::copyFrom( NCReportSource* source );
virtual bool NCReportSource::load( NCReportXMLDefReader& reader);
virtual bool NCReportSource::save( NCReportXMLDefWriter& writer);
// protected:
virtual bool NCReportSource::loadFromFile( NCReportXMLDefReader& );
virtual bool NCReportSource::loadFromDatabase( NCReportXMLDefReader&);
virtual bool NCReportSource::loadFromHttp( NCReportXMLDefReader& );
virtual bool NCReportSource::loadFromFtp( NCReportXMLDefReader& );
virtual bool NCReportSource::loadFromCustomSource( NCReportXMLDefReader& );
virtual bool NCReportSource::loadFromString( NCReportXMLDefReader& );
virtual bool NCReportSource::saveToFile( NCReportXMLDefWriter& );
virtual bool NCReportSource::saveToDatabase( NCReportXMLDefWriter&);
virtual bool NCReportSource::saveToHttp( NCReportXMLDefWriter& );
virtual bool NCReportSource::saveToFtp( NCReportXMLDefWriter& );
virtual bool NCReportSource::saveToCustomSource( NCReportXMLDefWriter& );
virtual bool NCReportSource::saveToString( NCReportXMLDefReader& );
virtual QString NCReportSource::loadQuery() const;
virtual QString NCReportSource::saveQuery() const;
virtual void NCReportSource::evaluateParameters();
void NCReportSource::setParseError( NCReportXMLDefReader& );
```

## NCReportSourceFactory

`#include "ncreportsourcefactory.h"`

```cpp
// public:
NCReportSourceFactory::NCReportSourceFactory();
virtual NCReportSource* NCReportSourceFactory::createReportSource();
```

## NCReportSQLDataSource

Inherits `NCReportDataSource`. `#include "ncreportsqldatasource.h"`

```cpp
// public:
NCReportSQLDataSource::NCReportSQLDataSource( QObject *parent=0 );
bool NCReportSQLDataSource::open();
bool NCReportSQLDataSource::close();
bool NCReportSQLDataSource::first();
bool NCReportSQLDataSource::last();
bool NCReportSQLDataSource::next();
bool NCReportSQLDataSource::previous();
bool NCReportSQLDataSource::seek( int index );
int NCReportSQLDataSource::size() const;
bool NCReportSQLDataSource::update();
bool NCReportSQLDataSource::hasNext();
QVariant NCReportSQLDataSource::value( const QString&, bool* ok=0, int nQTDataRole = -1) const;
QVariant NCReportSQLDataSource::value( int, bool* ok=0, int nQTDataRole = -1) const;
bool NCReportSQLDataSource::read(NCReportXMLReader* reader);
bool NCReportSQLDataSource::write(NCReportXMLWriter* writer);
void NCReportSQLDataSource::evaluate(NCReportEvaluator* evaluator);
void NCReportSQLDataSource::setSqlQuery( const QString& );
QString NCReportSQLDataSource::sqlQuery() const;
void NCReportSQLDataSource::setHost( const QString& );
void NCReportSQLDataSource::setDB( const QString& );
void NCReportSQLDataSource::setUser( const QString& );
void NCReportSQLDataSource::setPassword( const QString& );
void NCReportSQLDataSource::setPort( const QString& );
void NCReportSQLDataSource::setDriver( const QString& );
void NCReportSQLDataSource::setConnectOptions( const QString& );
QString NCReportSQLDataSource::connectOptions() const;
QString NCReportSQLDataSource::dbHost() const;
QString NCReportSQLDataSource::dbDatabase() const;
QString NCReportSQLDataSource::dbUser() const;
QString NCReportSQLDataSource::dbPassword() const;
QString NCReportSQLDataSource::dbPort() const;
QString NCReportSQLDataSource::dbDriver() const;
bool NCReportSQLDataSource::connectDatabase(QSqlDatabase &database);
bool NCReportSQLDataSource::disconnectDatabase();
int NCReportSQLDataSource::rowCount() const;
int NCReportSQLDataSource::columnCount() const;
bool NCReportSQLDataSource::queryIsValid( const QString& m_query );
QStringList NCReportSQLDataSource::keywordList();
QStringList NCReportSQLDataSource::columnNames();
QString NCReportSQLDataSource::columnName(int column) const;
bool NCReportSQLDataSource::isValid() const;
bool NCReportSQLDataSource::isForwardOnly() const;
void NCReportSQLDataSource::setForwardOnly(bool);
QSqlQuery *NCReportSQLDataSource::queryObject();
bool NCReportSQLDataSource::hasColumn(int column) const;
bool NCReportSQLDataSource::hasColumn(const QString &columnname) const;
int NCReportSQLDataSource::columnIndexByName(const QString& columnname) const;
```

## NCReportStringListDataSource

Inherits `NCReportDataSource`. `#include "ncreportstringlistdatasource.h"`

```cpp
// public:
NCReportStringListDataSource::NCReportStringListDataSource( QObject *parent=0 );
enum NCReportStringListDataSource::Delimiter { Tab=0, Comma, SemiColon, Space, VBar, Custom };
bool NCReportStringListDataSource::open();
bool NCReportStringListDataSource::close();
bool NCReportStringListDataSource::first();
bool NCReportStringListDataSource::last();
bool NCReportStringListDataSource::next();
bool NCReportStringListDataSource::previous();
bool NCReportStringListDataSource::seek( int index );
int NCReportStringListDataSource::size() const;
QVariant NCReportStringListDataSource::value( const QString & column, bool* ok=0, int nQTDataRole = -1 ) const;
QVariant NCReportStringListDataSource::value( int column, bool* ok=0,int nQTDataRole = -1 ) const;
bool NCReportStringListDataSource::read( NCReportXMLReader* );
bool NCReportStringListDataSource::write( NCReportXMLWriter* );
void NCReportStringListDataSource::setStringList( const QStringList& list);
void NCReportStringListDataSource::setColumnDelimiter( const Delimiter );
Delimiter NCReportStringListDataSource::columnDelimiter() const;
void NCReportStringListDataSource::setCustomDelimiterCharacter( const char );
char NCReportStringListDataSource::delimiterCharacter() const;
void NCReportStringListDataSource::setListID( const QString& );
QString NCReportStringListDataSource::listID() const;
bool NCReportStringListDataSource::hasNext();
int NCReportStringListDataSource::rowCount() const;
int NCReportStringListDataSource::columnCount() const;
bool NCReportStringListDataSource::isValid() const;
int NCReportStringListDataSource::columnIndexByName(const QString& columnname) const;
QString NCReportStringListDataSource::columnName(int column) const;
```

## NCReportSvgOutput

Inherits `NCReportOutput`. `#include "ncreportsvgoutput.h"`

```cpp
// public:
NCReportSvgOutput::NCReportSvgOutput( QObject* parent=0 );
bool NCReportSvgOutput::initialize();
void NCReportSvgOutput::cleanup();
void NCReportSvgOutput::begin();
void NCReportSvgOutput::end();
void NCReportSvgOutput::newPage();
```

## NCReportTableItem

Inherits `NCReportItem`. `#include "ncreporttableitem.h"` `[item view]`

```cpp
// public:
NCReportTableItem::NCReportTableItem( NCReportDef* rdef, QGraphicsItem * parent=0 );
enum NCReportTableItem::RowType { HeaderRow=0, DataRow };
enum NCReportTableItem::CellType { CornerCell=0x0, HorizontalHeaderCell, VerticalHeaderCell, DataCell };
enum NCReportTableItem::ImageType { None=0x0, Pixmap, Icon };
enum NCReportTableItem::ColumnWidthMode { ViewColumnWidths=0, BalancedColumnWidths, FitToContentColumnWidths };
bool NCReportTableItem::read( NCReportXMLReader* reader );
bool NCReportTableItem::write( NCReportXMLWriter* writer);
void NCReportTableItem::setDefaultForEditor();
void NCReportTableItem::paint( NCReportOutput* output, const QPointF& painterPosMM );
void NCReportTableItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
void NCReportTableItem::dummyPaint( NCReportOutput* output, const QPointF& point);
void NCReportTableItem::setDataSource( NCReportDataSource* );
void NCReportTableItem::setDataSourceByID( const QString& id );
NCReportDataSource* NCReportTableItem::dataSource() const;
QRectF NCReportTableItem::boundingRect() const;
qreal NCReportTableItem::tableSpacingMM() const;
void NCReportTableItem::setTableSpacingMM( qreal value );
qreal NCReportTableItem::cellPaddingMM() const;
void NCReportTableItem::setCellPaddingMM( qreal value );
qreal NCReportTableItem::leftMarginMM() const;
void NCReportTableItem::setLeftMarginMM( qreal value );
qreal NCReportTableItem::rightMarginMM() const;
void NCReportTableItem::setRightMarginMM( qreal value );
qreal NCReportTableItem::topMarginMM() const;
void NCReportTableItem::setTopMarginMM( qreal value );
qreal NCReportTableItem::bottomMarginMM() const;
void NCReportTableItem::setBottomMarginMM( qreal value );
qreal NCReportTableItem::cellSpacing() const;
void NCReportTableItem::setCellSpacing( qreal value );
bool NCReportTableItem::isElidedMode() const;
void NCReportTableItem::setElidedMode( bool set );
bool NCReportTableItem::isHorizontalHeaderVisible() const;
void NCReportTableItem::setHorizontalHeaderVisible( bool set );
bool NCReportTableItem::isVerticalHeaderVisible() const;
void NCReportTableItem::setVerticalHeaderVisible( bool set );
bool NCReportTableItem::isForcedAspectRatio() const;
void NCReportTableItem::setForcedAspectRatio( bool set );
bool NCReportTableItem::showBorderAndBG() const;
void NCReportTableItem::setshowBorderAndBG( bool set );
void NCReportTableItem::setModelID( const QString& modelID );
QString NCReportTableItem::modelID() const;
void NCReportTableItem::setTableViewID( const QString& viewID );
QString NCReportTableItem::tableViewID() const;
void NCReportTableItem::setHiddenRows( const QList<int>& rows );
void NCReportTableItem::setHiddenRows( const QString& list );
QString NCReportTableItem::hiddenRowsList() const;
const QList<int>& NCReportTableItem::hiddenRows() const;
void NCReportTableItem::setHiddenColumns( const QList<int>& columns );
void NCReportTableItem::setHiddenColumns( const QString& list );
QString NCReportTableItem::hiddenColumnsList() const;
const QList<int>& NCReportTableItem::hiddenColumns() const;
int NCReportTableItem::columnCount() const;
int NCReportTableItem::rowCount() const;
qreal NCReportTableItem::columnWidthPixel(int column, QPaintDevice *pd);
qreal NCReportTableItem::rowHeightPixel(RowType type, int row, QPaintDevice *pd);
int NCReportTableItem::calculateSourceTableWidth(QPaintDevice* pd);
QAbstractItemModel *NCReportTableItem::model() const;
QAbstractItemView *NCReportTableItem::itemViewWidget() const;
bool NCReportTableItem::isTableView() const;
bool NCReportTableItem::isTreeView() const;
bool NCReportTableItem::viewIsRowHidden(int row, const QModelIndex& parent = QModelIndex()) const;
bool NCReportTableItem::viewIsColumnHidden(int column) const;
int NCReportTableItem::getHorizontalHeaderHeight() const;
int NCReportTableItem::getVerticalHeaderWidth() const;
bool NCReportTableItem::viewVerticalHeaderIsVisible() const;
int NCReportTableItem::logicalColumnIndex( int visibleColumn ) const;
short int NCReportTableItem::precision() const;
void NCReportTableItem::setPrecision( short int precision);
void NCReportTableItem::setCellGraphRenderer(const QString id, int column);
QString NCReportTableItem::cellGraphRendererId() const;
int NCReportTableItem::cellGraphRendererColumn() const;
void NCReportTableItem::setAlternateRowBackground(bool set);
bool NCReportTableItem::isAlternateRowBackground() const;
void NCReportTableItem::setAutoRowHeight(bool set);
bool NCReportTableItem::isAutoRowHeight() const;
void NCReportTableItem::setAutoColumnWidth(bool set);
bool NCReportTableItem::isAutoColumnWidth() const;
void NCReportTableItem::setColumnWidthMode(ColumnWidthMode mode);
ColumnWidthMode NCReportTableItem::columnWidthMode() const;
void NCReportTableItem::setFillTableWidth(bool set);
bool NCReportTableItem::isFillTableWidth() const;
void NCReportTableItem::setNoWrapColumns(const QString &list);
void NCReportTableItem::setNoWrapHeaderColumns(const QString &list);
void NCReportTableItem::setFontPointSize(int size);
int NCReportTableItem::fontPointSize() const;
void NCReportTableItem::setMinFontPointSize(qreal size);
qreal NCReportTableItem::minFontPointSize() const;
void NCReportTableItem::setMinHeaderFontPointSize(qreal size);
qreal NCReportTableItem::minHeaderFontPointSize() const;
void NCReportTableItem::setWrapAtChar(const QString &list);
QString NCReportTableItem::wrapAtChar() const;
```

## NCReportTextDataSource

Inherits `NCReportDataSource`. `#include "ncreporttextdatasource.h"`

```cpp
// public:
NCReportTextDataSource::NCReportTextDataSource( QObject *parent=0 );
enum NCReportTextDataSource::Delimiter { Tab=0, Comma, SemiColon, Space, VBar, Custom };
bool NCReportTextDataSource::open();
bool NCReportTextDataSource::close();
bool NCReportTextDataSource::first();
bool NCReportTextDataSource::last();
bool NCReportTextDataSource::next();
bool NCReportTextDataSource::previous();
int NCReportTextDataSource::size() const;
QVariant NCReportTextDataSource::value( const QString&, bool* ok=0, int nQTDataRole = -1 ) const;
QVariant NCReportTextDataSource::value( int, bool* ok=0, int nQTDataRole = -1 ) const;
bool NCReportTextDataSource::read( NCReportXMLReader* reader );
bool NCReportTextDataSource::write( NCReportXMLWriter* writer );
void NCReportTextDataSource::evaluate( NCReportEvaluator* evaluator);
void NCReportTextDataSource::setColumnDelimiter( const Delimiter );
Delimiter NCReportTextDataSource::columnDelimiter() const;
void NCReportTextDataSource::setCustomDelimiterCharacter( const char );
char NCReportTextDataSource::delimiterCharacter() const;
bool NCReportTextDataSource::seek( int index );
int NCReportTextDataSource::rowCount() const;
int NCReportTextDataSource::columnCount() const;
bool NCReportTextDataSource::hasNext();
void NCReportTextDataSource::setHasColumnHeader( bool );
bool NCReportTextDataSource::hasColumnHeader() const;
QStringList NCReportTextDataSource::keywordList();
QStringList NCReportTextDataSource::columnNames();
QString NCReportTextDataSource::columnName(int column) const;
bool NCReportTextDataSource::isValid() const;
int NCReportTextDataSource::columnIndexByName(const QString& columnname) const;
```

## NCReportTextItem

Inherits `NCReportItem`. `#include "ncreporttextitem.h"`

```cpp
// public:
NCReportTextItem::NCReportTextItem( NCReportDef* rdef, QGraphicsItem * parent=0 );
enum NCReportTextItem::EditorMode { RichTextEdit = 0, SourceCodeEdit };
bool NCReportTextItem::read( NCReportXMLReader* ) override;
bool NCReportTextItem::write( NCReportXMLWriter* ) override;
void NCReportTextItem::setHtml(const QString& content, QTextDocument *document);
QString NCReportTextItem::toHtml() const;
void NCReportTextItem::setDefaultForEditor() override;
void NCReportTextItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
void NCReportTextItem::paint( NCReportOutput* o, const QPointF& mPos) override;
void NCReportTextItem::dummyPaint(NCReportOutput *, const QPointF &) override;
void NCReportTextItem::adjustSize() override;
void NCReportTextItem::adjustSize(NCReportOutput* = 0) override;
void NCReportTextItem::resize( const QSizeF& ) override;
bool NCReportTextItem::isEmpty() const override;
void NCReportTextItem::updateValue(NCReportOutput* output, NCReportEvaluator* evaluator) override;
QTextDocument * NCReportTextItem::document();
bool NCReportTextItem::isDefaultPosAndSize() const;
void NCReportTextItem::setDefaultPosAndSize( bool set );
QColor NCReportTextItem::foreColor() const;
void NCReportTextItem::setForeColor( const QColor& color );
QFont NCReportTextItem::font() const;
void NCReportTextItem::setFont( const QFont& font );
Qt::Alignment NCReportTextItem::alignment() const;
void NCReportTextItem::setAlignment( Qt::Alignment al );
QString NCReportTextItem::fileName() const;
void NCReportTextItem::setFileName( const QString& fname );
bool NCReportTextItem::isSizeFix() const;
void NCReportTextItem::setSizeFix( bool set );
bool NCReportTextItem::isUsedDefaultFont() const;
void NCReportTextItem::setPlainText( bool set );
bool NCReportTextItem::isPlainText() const;
void NCReportTextItem::setUseDefaultFont( bool set );
QString NCReportTextItem::documentTemplate() const;
void NCReportTextItem::setDocumentTemplate( const QString& dt );
bool NCReportTextItem::isMarkdown() const;
void NCReportTextItem::setMarkdown( bool set );
EditorMode NCReportTextItem::editorMode() const;
void NCReportTextItem::setEditorMode( EditorMode mode );
qreal NCReportTextItem::breakTo( qreal heightMM, NCReportOutput* ) override;
bool NCReportTextItem::isBroken() const override;
QString NCReportTextItem::convertPlainTextToHtml( const QString& text) const;
QList<int> NCReportTextItem::availableSourceTypes() const override;
QString NCReportTextItem::htmlContent() const;
void NCReportTextItem::setUseDatasourceAppearanceRoles( bool set );
bool NCReportTextItem::useDataSourceAppearanceRoles() const;
QString& NCReportTextItem::documentTemplateRef();
void NCReportTextItem::restoreDefaultTextStyle();
// protected:
void NCReportTextItem::readProps( NCReportXMLReader* );
void NCReportTextItem::writeProps( NCReportXMLWriter* );
```

## NCReportTextOutput

Inherits `NCReportOutput`. `#include "ncreporttextoutput.h"`

```cpp
// public:
NCReportTextOutput::NCReportTextOutput(QObject *parent = 0);
bool NCReportTextOutput::initialize();
void NCReportTextOutput::cleanup();
void NCReportTextOutput::begin();
void NCReportTextOutput::end();
void NCReportTextOutput::newPage();
virtual bool NCReportTextOutput::renderSection(NCReportSection* section, NCReportEvaluator* evaluator);
void NCReportTextOutput::setTemplate(const QString& tpl);
void NCReportTextOutput::setTemplateFile(const QString& fileName);
```

## NCReportUserFunction

`#include "ncreportuserfunction.h"`

```cpp
// public:
NCReportUserFunction::NCReportUserFunction();
enum NCReportUserFunction::UserAccess { Invisible=0, ReadOnly, ReadWrite };
void NCReportUserFunction::setUserAccess( UserAccess access );
UserAccess NCReportUserFunction::userAccess() const;
virtual void NCReportUserFunction::updateValue( NCReportItem* item, NCReportOutput* output, NCReportEvaluator* evaluator) = 0;
```

## NCReportUtils

`#include "ncreportutils.h"`

```cpp
// public:
NCReportUtils::NCReportUtils();
static bool NCReportUtils::fileToString( const QString& filename, QString& target );
static bool NCReportUtils::fileToStringAll( const QString& filename, QString& target );
static void NCReportUtils::evaluateFileName( QString& filename );
static QString NCReportUtils::evaluatedFileName( const QString& filename );
static qreal NCReportUtils::fontSizeConvert( qreal pointSize );
static qreal NCReportUtils::fontSizeRestore( qreal pointSize );
static bool NCReportUtils::stringToFile( const QString& filename, const QString& content, const char* codecName = "UTF-8" );
static int NCReportUtils::verticalAlignmentToIndex( const Qt::Alignment a );
static int NCReportUtils::horizontalAlignmentToIndex( const Qt::Alignment a );
static Qt::Alignment NCReportUtils::indexToVerticalAlignment( int idx );
static Qt::Alignment NCReportUtils::indexToHorizontalAlignment( int idx );
static Qt::Alignment NCReportUtils::verticalAlignment( const Qt::Alignment alignment );
static Qt::Alignment NCReportUtils::horizontalAlignment( const Qt::Alignment alignment );
static QString NCReportUtils::genRandomString1(const int len);
static std::string NCReportUtils::genStdRandomString2(const int len);
static QString NCReportUtils::parse( const QString& string, const QString& startTag, const QString& endTag );
static void NCReportUtils::saveFilePath(const char *name, const QString& fileName );
static qreal NCReportUtils::fround(qreal n, int d);
static double NCReportUtils::standardDeviation( const QList<double>& numbers );
static QString NCReportUtils::intListToString( const QList<int>& list );
static void NCReportUtils::stringToIntList(const QString& str, QList<int>& intlist);
static QString NCReportUtils::readIniSetting(const QString& iniString, const QString& name);
static QLocale::Language NCReportUtils::language(const char *langCode);
```

## NCReportUtils::id2D

`#include "ncreportutils.h"`

```cpp
// public:
NCReportUtils::id2D::id2D( short x, short y);
NCReportUtils::id2D::id2D( int id );
short NCReportUtils::id2D::x() const;
void NCReportUtils::id2D::setX( short x );
short NCReportUtils::id2D::y() const;
void NCReportUtils::id2D::setY( short y );
int NCReportUtils::id2D::id() const;
static short NCReportUtils::id2D::x( int id );
static short NCReportUtils::id2D::y( int id );
static int NCReportUtils::id2D::id( short x, short y );
static id2D NCReportUtils::id2D::fromId( int id );
```

## NCReportVariable

Inherits `NCReportData`. `#include "ncreportvariable.h"`

```cpp
// public:
NCReportVariable::NCReportVariable();
enum NCReportVariable::FunctionType { Count=0, Sum, Average, Std, Min, Max, System };
enum NCReportVariable::ResetScope { Report=0, Page, Group };
enum NCReportVariable::CorrectionType { Off=0, Undo, Redo };
void NCReportVariable::setExpression( const QString& );
void NCReportVariable::setFunction( const FunctionType );
void NCReportVariable::setFunction( const QString& );
void NCReportVariable::setScope( const ResetScope );
void NCReportVariable::setScope( const QString& );
void NCReportVariable::setInitValue( double val );
const QString& NCReportVariable::expression() const;
FunctionType NCReportVariable::function() const;
ResetScope NCReportVariable::scope() const;
double NCReportVariable::initValue() const;
void NCReportVariable::update(const QVariant& val, CorrectionType ct = Off);
void NCReportVariable::reset();
void NCReportVariable::correction( CorrectionType ct );
void NCReportVariable::modifyValue( double value );
QString NCReportVariable::functionToName() const;
QString NCReportVariable::scopeToName() const;
FunctionType NCReportVariable::nameToFunction( const QString& fname ) const;
ResetScope NCReportVariable::nameToScope( const QString& sname ) const;
NCReportDataSource *NCReportVariable::relatedDataSource() const;
void NCReportVariable::setRelatedDataSource( NCReportDataSource* ds );
```

## NCReportVariable::VarAmount

`#include "ncreportvariable.h"`

```cpp
// public:
NCReportVariable::VarAmount::VarAmount();
double NCReportVariable::VarAmount::value;
int NCReportVariable::VarAmount::counter;
QList<double> NCReportVariable::VarAmount::valueHistory;
```

## NCReportWidgetRenderer

Inherits `NCReportGraphRenderer`. `#include "ncreportwidgetrenderer.h"`

```cpp
// public:
NCReportWidgetRenderer::NCReportWidgetRenderer();
virtual void NCReportWidgetRenderer::paintItem( QPainter* painter, NCReportOutput* output, const QRectF& rect, const QString& itemdata );
void NCReportWidgetRenderer::setWidget(QWidget* p);
void NCReportWidgetRenderer::setScaleMode(Qt::AspectRatioMode mode = Qt::KeepAspectRatioByExpanding);
virtual qreal NCReportWidgetRenderer::calculateHeightMM( NCReportOutput* output ) const;
virtual QSizeF NCReportWidgetRenderer::calculateSizeMM( NCReportOutput* output, const QSizeF& requested ) const;
virtual QSizeF NCReportWidgetRenderer::calculateSizeMM( NCReportOutput* output, const QSizeF& requested, const QString& itemdata ) const;
void NCReportWidgetRenderer::setDPI(unsigned int dpi = -1);
unsigned int NCReportWidgetRenderer::getDPI();
void NCReportWidgetRenderer::setBaseSize(const QSizeF& base = QSizeF());
QSizeF NCReportWidgetRenderer::baseSize() const;
QWidget* NCReportWidgetRenderer::widget();
Qt::AspectRatioMode NCReportWidgetRenderer::scaleMode() const;
```

## NCReportXMLDataSource

Inherits `NCReportDataSource`. `#include "ncreportxmldatasource.h"`

```cpp
// public:
NCReportXMLDataSource::NCReportXMLDataSource(QObject *parent = 0);
bool NCReportXMLDataSource::open();
bool NCReportXMLDataSource::close();
bool NCReportXMLDataSource::first();
bool NCReportXMLDataSource::last();
bool NCReportXMLDataSource::next();
bool NCReportXMLDataSource::previous();
int NCReportXMLDataSource::size() const;
QVariant NCReportXMLDataSource::value( const QString&, bool* ok=0, int nQTDataRole = -1 ) const;
QVariant NCReportXMLDataSource::value( int, bool* ok=0, int nQTDataRole = -1 ) const;
bool NCReportXMLDataSource::read( NCReportXMLReader* );
bool NCReportXMLDataSource::write( NCReportXMLWriter* );
void NCReportXMLDataSource::evaluate( NCReportEvaluator* evaluator);
bool NCReportXMLDataSource::seek( int index );
int NCReportXMLDataSource::rowCount() const;
int NCReportXMLDataSource::columnCount() const;
bool NCReportXMLDataSource::hasNext();
QStringList NCReportXMLDataSource::keywordList();
QStringList NCReportXMLDataSource::columnNames();
QString NCReportXMLDataSource::columnName(int column) const;
bool NCReportXMLDataSource::isValid() const;
int NCReportXMLDataSource::columnIndexByName(const QString& columnname) const;
```

## NCReportXMLDefReader

Inherits `NCReportXMLReader`. `#include "ncreportxmldefreader.h"`

```cpp
// public:
NCReportXMLDefReader::NCReportXMLDefReader( NCReportDef *r );
// protected:
virtual void NCReportXMLDefReader::init();
virtual void NCReportXMLDefReader::readDataSources();
virtual void NCReportXMLDefReader::readDataSource();
virtual void NCReportXMLDefReader::readVariables();
virtual void NCReportXMLDefReader::readVariable();
virtual void NCReportXMLDefReader::readScripts();
virtual void NCReportXMLDefReader::readScript();
virtual void NCReportXMLDefReader::readParameters();
virtual void NCReportXMLDefReader::readPageHeader();
virtual void NCReportXMLDefReader::readPageFooter();
virtual void NCReportXMLDefReader::readReportHeader();
virtual void NCReportXMLDefReader::readReportFooter();
virtual void NCReportXMLDefReader::readDetails();
virtual void NCReportXMLDefReader::readDetail();
virtual void NCReportXMLDefReader::readGroups( NCReportSection* );
virtual void NCReportXMLDefReader::readGroup( NCReportSection* );
virtual void NCReportXMLDefReader::readGroupHeader( NCReportGroup* );
virtual void NCReportXMLDefReader::readGroupFooter( NCReportGroup* );
virtual void NCReportXMLDefReader::readField( NCReportFieldItem* );
virtual void NCReportXMLDefReader::afterReadItem( NCReportItem* );
virtual void NCReportXMLDefReader::setDefaultFont(QFont &);
virtual NCReportDataSource* NCReportXMLDefReader::createCustomDataSource(const QString& dsID);
virtual void NCReportXMLDefReader::afterRead();
```

## NCReportXMLDefWriter

Inherits `NCReportXMLWriter`. `#include "ncreportxmldefwriter.h"`

```cpp
// public:
NCReportXMLDefWriter::NCReportXMLDefWriter();
NCReportXMLDefWriter::NCReportXMLDefWriter( QString * string );
void NCReportXMLDefWriter::setReportDef( NCReportDef *rd );
NCReportDef *NCReportXMLDefWriter::reportDef();
QString NCReportXMLDefWriter::reportName() const;
QString NCReportXMLDefWriter::reportType() const;
// protected:
virtual void NCReportXMLDefWriter::writeOptions();
virtual void NCReportXMLDefWriter::writeDataSources();
virtual void NCReportXMLDefWriter::writeVariables();
virtual void NCReportXMLDefWriter::writeScripts();
virtual void NCReportXMLDefWriter::writePageHeader();
virtual void NCReportXMLDefWriter::writePageFooter();
virtual void NCReportXMLDefWriter::writeReportHeader();
virtual void NCReportXMLDefWriter::writeReportFooter();
virtual void NCReportXMLDefWriter::writeDetails();
virtual void NCReportXMLDefWriter::writeDataSource( NCReportDataSource* ds );
virtual void NCReportXMLDefWriter::writeVariable( NCReportVariable* variable );
virtual void NCReportXMLDefWriter::writeGroups( NCReportSection* detail );
virtual bool NCReportXMLDefWriter::isDefaultFont(const QString &fontName) const;
```

## NCReportXMLReader

Inherits `QXmlStreamReader`. `#include "ncreportxmlreader.h"`

```cpp
// public:
NCReportXMLReader::NCReportXMLReader();
void NCReportXMLReader::setPageOption( NCReportPageOption* );
virtual bool NCReportXMLReader::read(QIODevice *device, const QString& def);
void NCReportXMLReader::readUnknownElement();
NCReportDef *NCReportXMLReader::reportDef() const;
void NCReportXMLReader::setReportDef( NCReportDef* );
bool NCReportXMLReader::isAttrib( const QString& name );
QByteArray NCReportXMLReader::attrib( const QString& name );
QString NCReportXMLReader::attribToString( const QString& name );
int NCReportXMLReader::attribToInt( const QString& name );
qreal NCReportXMLReader::attribToReal( const QString& name );
bool NCReportXMLReader::attribToBool( const QString& name );
void NCReportXMLReader::readFont( QFont& );
void NCReportXMLReader::readPen( QPen& );
void NCReportXMLReader::readBrush( QBrush& );
void NCReportXMLReader::readColor( const QString& property, QColor& );
QPointF NCReportXMLReader::readPos() const;
QPointF NCReportXMLReader::readPosFrom() const;
QPointF NCReportXMLReader::readPosTo() const;
QSizeF NCReportXMLReader::readSize() const;
Qt::Alignment NCReportXMLReader::readAlignment();
qreal NCReportXMLReader::readLineWidth();
void NCReportXMLReader::setLanguage( const QString& langcode );
QString NCReportXMLReader::language() const;
void NCReportXMLReader::readParameters(QHash<QString, QVariant> &values);
virtual void NCReportXMLReader::setDefaultFont( QFont& );
virtual void NCReportXMLReader::setDefaultPen( QPen& );
virtual void NCReportXMLReader::setDefaultBrush( QBrush& );
virtual void NCReportXMLReader::readCustomItemAttribs(NCReportItem* item);
virtual void NCReportXMLReader::readCustomSectionAttribs(NCReportSection* section);
// protected:
QString NCReportXMLReader::basetag;
NCReportPageOption *NCReportXMLReader::pageoption;
NCReportDef *NCReportXMLReader::rdef;
QList<NCReportSection*> NCReportXMLReader::sections;
virtual void NCReportXMLReader::init() = 0;
virtual void NCReportXMLReader::readReport();
virtual void NCReportXMLReader::readOptions();
virtual void NCReportXMLReader::readHtmlText();
virtual void NCReportXMLReader::readPage();
virtual void NCReportXMLReader::readItems(NCReportSection *section);
virtual void NCReportXMLReader::readSection(NCReportSection *section);
virtual void NCReportXMLReader::readDataSources();
virtual void NCReportXMLReader::readDataSource();
virtual void NCReportXMLReader::readVariables();
virtual void NCReportXMLReader::readVariable();
virtual void NCReportXMLReader::readScripts();
virtual void NCReportXMLReader::readScript();
virtual void NCReportXMLReader::readParameters();
virtual void NCReportXMLReader::readPageHeader();
virtual void NCReportXMLReader::readPageFooter();
virtual void NCReportXMLReader::readReportHeader();
virtual void NCReportXMLReader::readReportFooter();
virtual void NCReportXMLReader::readDetails();
virtual void NCReportXMLReader::readField( NCReportFieldItem* );
virtual void NCReportXMLReader::readParameter(QHash<QString, QVariant>& values);
virtual void NCReportXMLReader::beforeReadItem( NCReportItem* );
virtual void NCReportXMLReader::afterReadItem( NCReportItem* );
virtual void NCReportXMLReader::addItem( NCReportItem*, NCReportSection* );
virtual void NCReportXMLReader::afterAddItem( NCReportItem* );
virtual void NCReportXMLReader::afterRead();
virtual void NCReportXMLReader::afterReadSection(NCReportSection *section);
```

## NCReportXMLWriter

Inherits `QXmlStreamWriter`. `#include "ncreportxmlwriter.h"`

```cpp
// public:
NCReportXMLWriter::NCReportXMLWriter();
NCReportXMLWriter::NCReportXMLWriter( QIODevice *device );
NCReportXMLWriter::NCReportXMLWriter( QString * string );
bool NCReportXMLWriter::write(QIODevice *device);
void NCReportXMLWriter::writeFont( const QFont& );
void NCReportXMLWriter::writePen( const QPen& );
void NCReportXMLWriter::writeBrush( const QBrush& );
void NCReportXMLWriter::writePos(const QPointF& );
void NCReportXMLWriter::writePosFrom( const QPointF& );
void NCReportXMLWriter::writePosTo(const QPointF& );
void NCReportXMLWriter::writeSize( const QSizeF& );
void NCReportXMLWriter::writeAlignment( const Qt::Alignment );
void NCReportXMLWriter::writeWidth( const qreal );
void NCReportXMLWriter::writeHeight( const qreal );
void NCReportXMLWriter::writeLineWidth( const qreal );
void NCReportXMLWriter::writeBool( const QString& property, bool );
void NCReportXMLWriter::writeReal( const QString& property, qreal );
void NCReportXMLWriter::writeInt( const QString& property, int );
void NCReportXMLWriter::writeParameters( const QHash<QString, QVariant>& parameters );
virtual QString NCReportXMLWriter::reportName() const;
virtual QString NCReportXMLWriter::reportType() const;
virtual void NCReportXMLWriter::writeCustomItemAttribs(NCReportItem *item);
virtual void NCReportXMLWriter::writeCustomSectionAttribs(NCReportSection *section);
// protected:
virtual void NCReportXMLWriter::writeReport();
virtual void NCReportXMLWriter::writeItems( NCReportSection* );
virtual void NCReportXMLWriter::writeSection( NCReportSection* );
virtual void NCReportXMLWriter::writeOptions();
virtual void NCReportXMLWriter::writeDataSources();
virtual void NCReportXMLWriter::writeVariables();
virtual void NCReportXMLWriter::writeScripts();
virtual void NCReportXMLWriter::writePageHeader();
virtual void NCReportXMLWriter::writePageFooter();
virtual void NCReportXMLWriter::writeReportHeader();
virtual void NCReportXMLWriter::writeReportFooter();
virtual void NCReportXMLWriter::writeDetails();
virtual void NCReportXMLWriter::writeDataSource( NCReportDataSource* );
virtual void NCReportXMLWriter::writeVariable( NCReportVariable* );
virtual void NCReportXMLWriter::writeParameter(const QString &tagName, const QString& id, const QVariant& value );
virtual void NCReportXMLWriter::writeScript(const QString& id, const NCReportScript* script );
QString NCReportXMLWriter::qrealToString( const qreal ) const;
virtual bool NCReportXMLWriter::isDefaultFont(const QString &fontName) const;
virtual void NCReportXMLWriter::afterWriteItem(NCReportItem *item);
virtual void NCReportXMLWriter::afterWriteSection(NCReportSection *section);
```
