#include <PdfTable.h>
Public Types | |
typedef PdfPage *(* | CreatePageCallback )(PdfRect &rClipRect, void *pCustom) |
Public Member Functions | |
PdfTable (int nCols, int nRows) | |
virtual void | Draw (double dX, double dY, PdfPainter *pPainter, const PdfRect &rClipRect=PdfRect(), double *pdLastX=NULL, double *pdLastY=NULL) |
virtual double | GetWidth (double dX, double dY, PdfCanvas *pPage) const |
virtual double | GetHeight (double dX, double dY, PdfCanvas *pPage) const |
void | SetModel (PdfTableModel *pModel) |
const PdfTableModel * | GetModel () const |
void | SetColumnWidths (double *pdWidths) |
void | SetRowHeights (double *pdHeights) |
void | SetColumnWidth (double dWidth) |
void | SetRowHeight (double dHeight) |
void | SetTableWidth (double dWidth) |
void | SetTableHeight (double dHeight) |
void | SetAutoPageBreak (bool bPageBreak, CreatePageCallback callback, void *pCustomData=NULL) |
bool | GetAutoPageBreak () const |
int | GetCols () const |
int | GetRows () const |
Protected Member Functions | |
void | CalculateTableSize (const double dX, const double dY, const PdfCanvas *pCanvas, double *pdWidths, double *pdHeights, double *pdWidth, double *pdHeight) const |
void | DrawHorizontalBorders (int nRow, double dX, double dY, PdfPainter *pPainter, double *pdColWidths) |
bool | CheckForNewPage (double *pdY, double *pdCurY, double dRowHeight, PdfPainter *pPainter) |
Use this class if you have to include data into your PDF as an table.
|
Callback to create a new page for PdfTable.
|
|
Create a new PdfTable object.
|
|
Internal functions that calculates the total table size for a table with the current settings when drawn on a certain page.
|
|
Checks if there is enough space on the current page for one row! If necessary a new page is created. If GetAutoPageBreak is false, this method does nothing.
|
|
Draw the table with its current settings on a PdfPainter.
|
|
Draw one row of horizontal cell borders using the correct color for each cell.
|
|
|
|
|
|
Get the width of the table when drawn with the current settings at a certain position.
|
|
Get the current PdfTableModel
|
|
|
|
Get the width of the table when drawn with the current settings at a certain position.
|
|
Automatically create a new page and continue drawing the table on the new page, if there is not enough space on the current page. The newly created page will be set as the current page on the painter used to draw and will be created using the same size as the old page.
|
|
Set all columns to have the same width.
|
|
Set the width of all columns.
|
|
Set the PdfTableModel that will supply all contents and formatting informations to the table.
|
|
Set all rows to have the same height.
|
|
Set the height of all rows.
|
|
Set the height of the table.
|
|
Set the width of the table.
|