PoDoFo 0.9.6
|
#include <PdfTable.h>
Public Member Functions | |
PdfSimpleTableModel () | |
PdfSimpleTableModel (int nCols, int nRows) | |
void | SetFont (PdfFont *pFont) |
void | SetAlignment (EPdfAlignment eAlignment) |
void | SetAlignment (EPdfVerticalAlignment eAlignment) |
void | SetBackgroundColor (const PdfColor &rColor) |
void | SetForegroundColor (const PdfColor &rColor) |
void | SetBackgroundEnabled (bool bEnable) |
void | SetWordWrapEnabled (bool bEnable) |
void | SetBorderEnabled (bool bEnable) |
void | SetBorderWidth (double dWidth) |
void | SetText (int col, int row, const PdfString &rsString) |
virtual PdfString | GetText (int col, int row) const |
virtual EPdfAlignment | GetAlignment (int col, int row) const |
virtual EPdfVerticalAlignment | GetVerticalAlignment (int col, int row) const |
virtual PdfFont * | GetFont (int col, int row) const |
virtual bool | HasBackgroundColor (int col, int row) const |
virtual PdfColor | GetBackgroundColor (int col, int row) const |
virtual PdfColor | GetForegroundColor (int col, int row) const |
virtual bool | HasWordWrap (int col, int row) const |
virtual bool | HasBorders () const |
virtual double | GetBorderWidth () const |
virtual PdfColor | GetBorderColor (int col, int row) const |
virtual bool | HasImage (int col, int row) const |
virtual PdfImage * | GetImage (int col, int row) const |
virtual PdfString | GetText (int col, int row) const =0 |
virtual EPdfAlignment | GetAlignment (int col, int row) const =0 |
virtual EPdfVerticalAlignment | GetVerticalAlignment (int col, int row) const =0 |
virtual PdfFont * | GetFont (int col, int row) const =0 |
virtual bool | HasBackgroundColor (int col, int row) const =0 |
virtual PdfColor | GetBackgroundColor (int col, int row) const =0 |
virtual PdfColor | GetForegroundColor (int col, int row) const =0 |
virtual bool | HasWordWrap (int col, int row) const =0 |
virtual bool | HasBorders () const =0 |
virtual double | GetBorderWidth () const =0 |
virtual PdfColor | GetBorderColor (int col, int row) const =0 |
virtual bool | HasImage (int col, int row) const =0 |
virtual PdfImage * | GetImage (int col, int row) const =0 |
An implementation of a simple PdfTableModel.
PoDoFo::PdfSimpleTableModel::PdfSimpleTableModel | ( | ) |
Creates an empty PdfSimpleTableModel that does not contain any data.
Using this model will result in drawing an empty table!
PoDoFo::PdfSimpleTableModel::PdfSimpleTableModel | ( | int | nCols, |
int | nRows | ||
) |
Creates an empty PdfSimpleTableModel that does not contain any data.
Using this model will result in drawing an empty table!
nCols | number of columns of the data in this table model (must match the PdfTable object) |
nRows | number of rows of the data in this table model (must match the PdfTable object) |
You can set the tables data using SetText.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
Cell borders are always drawn using the current PdfPainter settings.
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inlinevirtual |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
|
inline |
Set the horizontal alignment of the contents in all table cells
eAlignment | the horizontal alignment of text in a table cell |
|
inline |
Set the vertical alignment of the contents in all table cells
eAlignment | the vertiical alignment of text in a table cell |
|
inline |
Set the background color of the table cells
rColor | the background color |
|
inline |
Sets wether all cells have a background color or not
bEnable | if true all cells have a background color |
|
inline |
Sets wether all cells have a border or not.
bEnable | if true a border will be drawn using the current PdfPainter settings |
|
inline |
Sets the stroke width of the border around the table.
dWidth | the stroke width of the border |
|
inline |
Set the font that will be used to draw all table contents.
pFont | the font for the table contents |
|
inline |
Set the foreground color of the table cells
rColor | the foreground color |
|
inline |
Sets the contents of a specific cell
col | the column of the table cell |
row | the row of the table cell |
rsString | the contents of this cell |
|
inline |
Sets wether all cells have wordwrapping or not
bEnable | if true all cells have wordwrapping |