QtRPT and QtRptDesigner
Main Documents History Download Announcements Customers Sourceforge WebDesigner  
Contents
QtRptName
QtRPT
RptPageObject
RptBandObject
RptFieldObject
 
QtRPT Project API
RptFieldObject Class | QtRptProject 1.5

RptFieldObject Class

RptFieldObject represent field of the report. On RptBandObject the RptFieldObject are placed More...

Header: #include <RptFieldObject>

Public Functions

RptFieldObject()
QString getHTMLStyle()
int recNo()
int reportPage()
void setDefaultBackgroundColor(QColor value)
void setDefaultFontColor(QColor value)
void setTop(int top)

Public Variables

Qt::Alignment aligment
bool arrowEnd
bool arrowStart
bool autoFillData
bool autoHeight
QColor backgroundColor
int barcodeFrameType
int barcodeHeight
int barcodeType
QColor borderBottom
QColor borderColor
QColor borderLeft
QColor borderRight
QString borderStyle
QColor borderTop
int borderWidth
QString caption
FieldType fieldType
QFont font
QColor fontColor
QString formatString
QList<GraphParam> graphList
QString highlighting
int ignoreAspectRatio
QString imgFormat
int lineEndX
int lineEndY
int lineStartX
int lineStartY
QString name
RptBandObject * parentBand
QByteArray picture
QString printing
QRect rect
bool showCaption
bool showGraphCaption
bool showGrid
bool showLegend
bool showPercent
bool textWrap
QString value

Detailed Description

RptFieldObject represent field of the report. On RptBandObject the RptFieldObject are placed

The inner structure of report is following:

QtRPT
  RptPageObject
    RptBandObject
      RptFieldObject

There are possible to have some RptBandObject on the report's page but different type.

Member Function Documentation

RptFieldObject::RptFieldObject()

Constructs a RptFieldObject object.

QString RptFieldObject::getHTMLStyle()

Return HTML representation of the field.

int RptFieldObject::recNo()

Return a current record number.

int RptFieldObject::reportPage()

Return a current Report page number.

void RptFieldObject::setDefaultBackgroundColor(QColor value)

Sets default background color with value.

void RptFieldObject::setDefaultFontColor(QColor value)

Sets default font color with value.

void RptFieldObject::setTop(int top)

Sets top of field.

See also rect.

Member Variable Documentation

Qt::Alignment RptFieldObject::aligment

This variable holds aligment of text.

bool RptFieldObject::arrowEnd

This variable holds draw arrow at the end.

Note: For type Line only.

bool RptFieldObject::arrowStart

This variable holds draw arrow at the start.

Note: For type Line only.

bool RptFieldObject::autoFillData

This variable holds automatic fill diagram from certian data or manual filling.

Note: For type Diagram only.

bool RptFieldObject::autoHeight

This variable holds auto height of field. Default value is false.

Note: Applicable only for fields which placed on MasterDataBand.

QColor RptFieldObject::backgroundColor

This variable holds current background color. Default is Qt::white.

int RptFieldObject::barcodeFrameType

This variable holds type of the barcode's frame.

  • 0 - no border
  • 1 - bind
  • 2 - box

Note: For type Barcode only.

int RptFieldObject::barcodeHeight

This variable holds height of Barcode.

Note: For type Barcode only.

int RptFieldObject::barcodeType

This variable holds type of the barcode.

Note: For type Barcode only.

QColor RptFieldObject::borderBottom

This variable holds bottom's border color.

See also borderColor.

QColor RptFieldObject::borderColor

This variable holds common border color for all sides.

QColor RptFieldObject::borderLeft

This variable holds left's border color.

See also borderColor.

QColor RptFieldObject::borderRight

This variable holds right's border color.

See also borderColor.

QString RptFieldObject::borderStyle

This variable holds border's style.

  • solid
  • dashed
  • dotted
  • dot-dash
  • dot-dot-dash

QColor RptFieldObject::borderTop

This variable holds top's border color.

See also borderColor.

int RptFieldObject::borderWidth

This variable holds border's width. Default value is 1px.

QString RptFieldObject::caption

This variable holds string represents the caption.

Note: For type Diagram only.

FieldType RptFieldObject::fieldType

This variable holds type of the field.

See also QtRptName::FieldType.

QFont RptFieldObject::font

This variable holds font of the Text field.

QColor RptFieldObject::fontColor

This variable holds current font color. Default is Qt::black.

QString RptFieldObject::formatString

This variable holds format of number value.

QList<GraphParam> RptFieldObject::graphList

This variable holds list containing GraphParam which holds data for each Graph.

Note: For type Diagram only.

QString RptFieldObject::highlighting

This variable holds encoded string containing the conditions of highlighting.

int RptFieldObject::ignoreAspectRatio

This variable holds ignore or not aspect ratio for image.

Note: For type Image only.

QString RptFieldObject::imgFormat

This variable holds extension of image format.

Note: For type Image only.

int RptFieldObject::lineEndX

This variable holds x of line end.

Note: For type Line only.

int RptFieldObject::lineEndY

This variable holds y of line end.

Note: For type Line only.

int RptFieldObject::lineStartX

This variable holds x of line start.

Note: For type Line only.

int RptFieldObject::lineStartY

This variable holds y of line start.

Note: For type Line only.

QString RptFieldObject::name

This variable holds the name of field.

RptBandObject * RptFieldObject::parentBand

This variable holds pointer to the parent band.

See also RptBandObject.

QByteArray RptFieldObject::picture

This variable holds string, which must contains 84 bit base array.

Note: For type Image only.

QString RptFieldObject::printing

This variable holds mark of printing.

QRect RptFieldObject::rect

This variable holds rectangle of the field.

bool RptFieldObject::showCaption

This variable holds show or not caption at diagram.

Note: For type Diagram only.

See also showGraphCaption.

bool RptFieldObject::showGraphCaption

This variable holds show or not legend at caption for each graph.

Note: For type Diagram only.

See also showCaption.

bool RptFieldObject::showGrid

This variable holds show or not grid at diagram.

Note: For type Diagram only.

bool RptFieldObject::showLegend

This variable holds show or not legend at diagram.

Note: For type Diagram only.

bool RptFieldObject::showPercent

This variable holds show persent value or show absolute.

Note: For type Diagram only.

bool RptFieldObject::textWrap

This variable holds text wrap of field. Default value is true.

Note: For type Text only.

QString RptFieldObject::value

This variable holds the value of field.