#include <PdfTable.h>
|
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 |
|
This is an abstract interface of a model that can provide data and formatting informations to a PdfTable.
You can implement your own PdfTableModel to supply data to a PdfTable. PdfSimpleTableModel is an example of a simple model.
- See also
- PdfTable
-
PdfSimpleTableModel
◆ GetAlignment()
virtual EPdfAlignment PoDoFo::PdfTableModel::GetAlignment |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the horizontal alignment of the contents in the cell
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetBackgroundColor()
virtual PdfColor PoDoFo::PdfTableModel::GetBackgroundColor |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the background color of the specified cell
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetBorderColor()
virtual PdfColor PoDoFo::PdfTableModel::GetBorderColor |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the border color
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetBorderWidth()
virtual double PoDoFo::PdfTableModel::GetBorderWidth |
( |
| ) |
const |
|
pure virtual |
◆ GetFont()
virtual PdfFont* PoDoFo::PdfTableModel::GetFont |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the font of this table cell or NULL to use the default font
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetForegroundColor()
virtual PdfColor PoDoFo::PdfTableModel::GetForegroundColor |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the foreground (text) color of the specified cell
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetImage()
virtual PdfImage* PoDoFo::PdfTableModel::GetImage |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the image for the specified cell or NULL if the cell has no image
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetText()
virtual PdfString PoDoFo::PdfTableModel::GetText |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the contents string of this table cell
Implemented in PoDoFo::PdfSimpleTableModel.
◆ GetVerticalAlignment()
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- the vertical alignment of the contents in the cell
Implemented in PoDoFo::PdfSimpleTableModel.
◆ HasBackgroundColor()
virtual bool PoDoFo::PdfTableModel::HasBackgroundColor |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- true if this cell has a background color
Implemented in PoDoFo::PdfSimpleTableModel.
◆ HasBorders()
virtual bool PoDoFo::PdfTableModel::HasBorders |
( |
| ) |
const |
|
pure virtual |
- Returns
- true if the table should have a border around all cells.
-
false if no cell border should be visible
Cell borders are always drawn using the current PdfPainter settings.
Implemented in PoDoFo::PdfSimpleTableModel.
◆ HasImage()
virtual bool PoDoFo::PdfTableModel::HasImage |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- true if the table cell contains an image
Implemented in PoDoFo::PdfSimpleTableModel.
◆ HasWordWrap()
virtual bool PoDoFo::PdfTableModel::HasWordWrap |
( |
int |
col, |
|
|
int |
row |
|
) |
| const |
|
pure virtual |
- Parameters
-
col | the column of the table cell |
row | the row of the table cell |
- Returns
- true if the specified cell should use wordwrapping
Implemented in PoDoFo::PdfSimpleTableModel.