wxPdfDocument 1.2.0
|
Class representing tables within a cell. (For internal use only) More...
#include <pdfxml.h>
Public Member Functions | |
wxPdfTable (wxPdfDocument *document) | |
Constructor. | |
virtual | ~wxPdfTable () |
Destructor. | |
void | SetMinRowHeight (int row, double height) |
Set minimum required row height. | |
void | SetMaxRowHeight (int row, double height) |
Set maximum allowed row height. | |
void | SetColumnWidth (int col, double width) |
Set width of column. | |
void | SetCellDimensions (double maxWidth) |
Calculate cell dimensions respecting a maximum allowed width. | |
void | InsertCell (wxPdfTableCell *c) |
Insert a cell into the cell array. | |
double | WriteOnPage (bool writeHeader, double x, double y) |
double | WriteRowsOnPage (unsigned firstRow, unsigned lastRow, double x, double y, bool writeHeader) |
unsigned int | AddPage (wxArrayInt::const_iterator iter, wxArrayInt::const_iterator endIter) |
double | WriteTable (bool writeHeader, const wxArrayInt &lastRowsOnPage, double x, double y) |
double | GetRowHeight (int row) |
Get height of row. | |
void | Write () |
Write table to document. | |
double | WriteRows (unsigned int firstRow, unsigned int lastRow, double x, double y, bool isHeaderRow) |
void | SetPad (double pad) |
Set cell padding. | |
double | GetPad () |
Get cell padding. | |
void | SetBorder (bool border) |
Set border. | |
void | SetBorderWidth (double borderWidth) |
Set border size. | |
void | SetBorderColour (wxPdfColour borderColour) |
Set border colour. | |
bool | HasBorder () |
Check whether border should be drawn. | |
double | GetTotalWidth () |
Get total width of table. | |
double | GetHeadHeight () |
Get height of table head. | |
double | GetBodyHeight () |
Get height of table body. | |
double | GetTotalHeight () |
Get total height of table. | |
void | SetHeadRowFirst (unsigned int row) |
Set index of first header row. | |
void | SetHeadRowLast (unsigned int row) |
Set index of last header row. | |
void | SetBodyRowFirst (unsigned int row) |
Set index of first body row. | |
void | SetBodyRowLast (unsigned int row) |
Set index of last body row. | |
Class representing tables within a cell. (For internal use only)
wxPdfTable::wxPdfTable | ( | wxPdfDocument * | document | ) |
Constructor.
|
virtual |
Destructor.
unsigned int wxPdfTable::AddPage | ( | wxArrayInt::const_iterator | iter, |
wxArrayInt::const_iterator | endIter ) |
|
inline |
Get height of table body.
|
inline |
Get height of table head.
|
inline |
Get cell padding.
|
inline |
Get height of row.
|
inline |
Get total height of table.
|
inline |
Get total width of table.
|
inline |
Check whether border should be drawn.
void wxPdfTable::InsertCell | ( | wxPdfTableCell * | c | ) |
Insert a cell into the cell array.
|
inline |
Set index of first body row.
|
inline |
Set index of last body row.
|
inline |
Set border.
|
inline |
Set border colour.
|
inline |
Set border size.
void wxPdfTable::SetCellDimensions | ( | double | maxWidth | ) |
Calculate cell dimensions respecting a maximum allowed width.
void wxPdfTable::SetColumnWidth | ( | int | col, |
double | width ) |
Set width of column.
|
inline |
Set index of first header row.
|
inline |
Set index of last header row.
|
inline |
Set maximum allowed row height.
|
inline |
Set minimum required row height.
|
inline |
Set cell padding.
void wxPdfTable::Write | ( | ) |
Write table to document.
double wxPdfTable::WriteOnPage | ( | bool | writeHeader, |
double | x, | ||
double | y ) |
double wxPdfTable::WriteRows | ( | unsigned int | firstRow, |
unsigned int | lastRow, | ||
double | x, | ||
double | y, | ||
bool | isHeaderRow ) |
double wxPdfTable::WriteRowsOnPage | ( | unsigned | firstRow, |
unsigned | lastRow, | ||
double | x, | ||
double | y, | ||
bool | writeHeader ) |
double wxPdfTable::WriteTable | ( | bool | writeHeader, |
const wxArrayInt & | lastRowsOnPage, | ||
double | x, | ||
double | y ) |