PoDoFo
0.9.1
|
#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 |
An implementation of a simple PdfTableModel.
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.
EPdfAlignment PoDoFo::PdfSimpleTableModel::GetAlignment | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
PdfColor PoDoFo::PdfSimpleTableModel::GetBackgroundColor | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
PdfColor PoDoFo::PdfSimpleTableModel::GetBorderColor | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
double PoDoFo::PdfSimpleTableModel::GetBorderWidth | ( | ) | const [inline, virtual] |
Implements PoDoFo::PdfTableModel.
PdfFont * PoDoFo::PdfSimpleTableModel::GetFont | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
PdfColor PoDoFo::PdfSimpleTableModel::GetForegroundColor | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
PdfImage * PoDoFo::PdfSimpleTableModel::GetImage | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
PdfString PoDoFo::PdfSimpleTableModel::GetText | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
EPdfVerticalAlignment PoDoFo::PdfSimpleTableModel::GetVerticalAlignment | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
bool PoDoFo::PdfSimpleTableModel::HasBackgroundColor | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
bool PoDoFo::PdfSimpleTableModel::HasBorders | ( | ) | const [inline, virtual] |
Cell borders are always drawn using the current PdfPainter settings.
Implements PoDoFo::PdfTableModel.
bool PoDoFo::PdfSimpleTableModel::HasImage | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
bool PoDoFo::PdfSimpleTableModel::HasWordWrap | ( | int | col, |
int | row | ||
) | const [inline, virtual] |
col | the column of the table cell |
row | the row of the table cell |
Implements PoDoFo::PdfTableModel.
void PoDoFo::PdfSimpleTableModel::SetAlignment | ( | EPdfAlignment | eAlignment | ) | [inline] |
Set the horizontal alignment of the contents in all table cells
eAlignment | the horizontal alignment of text in a table cell |
void PoDoFo::PdfSimpleTableModel::SetAlignment | ( | EPdfVerticalAlignment | eAlignment | ) | [inline] |
Set the vertical alignment of the contents in all table cells
eAlignment | the vertiical alignment of text in a table cell |
void PoDoFo::PdfSimpleTableModel::SetBackgroundColor | ( | const PdfColor & | rColor | ) | [inline] |
Set the background color of the table cells
rColor | the background color |
void PoDoFo::PdfSimpleTableModel::SetBackgroundEnabled | ( | bool | bEnable | ) | [inline] |
Sets wether all cells have a background color or not
bEnable | if true all cells have a background color |
void PoDoFo::PdfSimpleTableModel::SetBorderEnabled | ( | bool | bEnable | ) | [inline] |
Sets wether all cells have a border or not.
bEnable | if true a border will be drawn using the current PdfPainter settings |
void PoDoFo::PdfSimpleTableModel::SetBorderWidth | ( | double | dWidth | ) | [inline] |
Sets the stroke width of the border around the table.
dWidth | the stroke width of the border |
void PoDoFo::PdfSimpleTableModel::SetFont | ( | PdfFont * | pFont | ) | [inline] |
Set the font that will be used to draw all table contents.
pFont | the font for the table contents |
void PoDoFo::PdfSimpleTableModel::SetForegroundColor | ( | const PdfColor & | rColor | ) | [inline] |
Set the foreground color of the table cells
rColor | the foreground color |
void PoDoFo::PdfSimpleTableModel::SetText | ( | int | col, |
int | row, | ||
const PdfString & | rsString | ||
) | [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 |
void PoDoFo::PdfSimpleTableModel::SetWordWrapEnabled | ( | bool | bEnable | ) | [inline] |
Sets wether all cells have wordwrapping or not
bEnable | if true all cells have wordwrapping |