KD Reports 1.4
Public Member Functions
KDReports::Cell Class Reference

#include <KDReportsCell.h>

Inheritance diagram for KDReports::Cell:
Inheritance graph
[legend]
Collaboration diagram for KDReports::Cell:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void setColumnSpan (int columnSpan)
int columnSpan () const
void setRowSpan (int rowSpan)
int rowSpan () const
void addInlineElement (const Element &element)
void addElement (const Element &element, Qt::AlignmentFlag horizontalAlignment=Qt::AlignLeft)
void addVariable (VariableType variable)

Detailed Description

This class presents a cell in a table. To add an element to a cell, first get hold of the right cell using Table::cell(), then add elements to it.


Member Function Documentation

void KDReports::Cell::addElement ( const Element element,
Qt::AlignmentFlag  horizontalAlignment = Qt::AlignLeft 
)

Adds an element to the cell, creating a new paragraph for it. You can specify the alignment of that paragraph.

void KDReports::Cell::addInlineElement ( const Element element)

Adds an element to the cell, next to the previous element, in the same paragraph.

void KDReports::Cell::addVariable ( VariableType  variable)

Adds an variable in the text of the current paragraph.

See also:
KDReportsHeader::addVariable
int KDReports::Cell::columnSpan ( ) const

Returns the number of columns that this cell will span.

int KDReports::Cell::rowSpan ( ) const

Returns the number of rows that this cell will span.

void KDReports::Cell::setColumnSpan ( int  columnSpan)

Set the number of columns that this cell will span. The default is 1.

void KDReports::Cell::setRowSpan ( int  rowSpan)

Set the number of rows that this cell will span. The default is 1.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Enumerations Enumerator

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/