![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
#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) |
| Write table header on current page. | |
| double | WriteRowsOnPage (unsigned firstRow, unsigned lastRow, double x, double y, bool writeHeader) |
| Write range of rows on current page. | |
| unsigned int | AddPage (wxArrayInt::const_iterator iter, wxArrayInt::const_iterator endIter) |
| Add a page and return last table row on page. | |
| double | WriteTable (bool writeHeader, const wxArrayInt &lastRowsOnPage, double x, double y) |
| Write the whole table. | |
| 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) |
| Write range of rows. | |
| void | SetPad (double pad) |
| Set cell padding. | |
| double | GetPad () |
| Get cell padding. | |
| void | SetBorder (bool border) |
| Set border flag. | |
| 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.
| document | Pointer to the associated PDF document |
|
virtual |
Destructor.
| unsigned int wxPdfTable::AddPage | ( | wxArrayInt::const_iterator | iter, |
| wxArrayInt::const_iterator | endIter ) |
Add a page and return last table row on page.
| iter | Iterator to current row index |
| endIter | Iterator to end of row index list |
|
inline |
Get height of table body.
|
inline |
Get height of table head.
|
inline |
Get cell padding.
|
inline |
Get height of row.
| row | Row index |
|
inline |
Get total height of table.
|
inline |
Get total width of table.
|
inline |
Check whether border should be drawn.
true if border should be drawn, false otherwise | void wxPdfTable::InsertCell | ( | wxPdfTableCell * | c | ) |
Insert a cell into the cell array.
| c | Pointer to the table cell to insert |
|
inline |
Set index of first body row.
| row | Row index |
|
inline |
Set index of last body row.
| row | Row index |
|
inline |
Set border flag.
| border | Border flag |
|
inline |
Set border colour.
| borderColour | Border colour |
|
inline |
Set border size.
| borderWidth | Border width |
| void wxPdfTable::SetCellDimensions | ( | double | maxWidth | ) |
Calculate cell dimensions respecting a maximum allowed width.
| maxWidth | Maximum allowed width |
| void wxPdfTable::SetColumnWidth | ( | int | col, |
| double | width ) |
Set width of column.
| col | Column index |
| width | Column width |
|
inline |
Set index of first header row.
| row | Row index |
|
inline |
Set index of last header row.
| row | Row index |
|
inline |
Set maximum allowed row height.
| row | Row index |
| height | Maximum height |
|
inline |
Set minimum required row height.
| row | Row index |
| height | Minimum height |
|
inline |
Set cell padding.
| pad | Padding |
| void wxPdfTable::Write | ( | ) |
Write table to document.
| double wxPdfTable::WriteOnPage | ( | bool | writeHeader, |
| double | x, | ||
| double | y ) |
Write table header on current page.
| writeHeader | Flag whether to write the header |
| x | Abscissa of the top left corner |
| y | Ordinate of the top left corner |
| double wxPdfTable::WriteRows | ( | unsigned int | firstRow, |
| unsigned int | lastRow, | ||
| double | x, | ||
| double | y, | ||
| bool | isHeaderRow ) |
Write range of rows.
| firstRow | Index of first row |
| lastRow | Index of last row |
| x | Abscissa of the top left corner |
| y | Ordinate of the top left corner |
| isHeaderRow | Flag whether the rows are header rows |
| double wxPdfTable::WriteRowsOnPage | ( | unsigned | firstRow, |
| unsigned | lastRow, | ||
| double | x, | ||
| double | y, | ||
| bool | writeHeader ) |
Write range of rows on current page.
| firstRow | Index of first row |
| lastRow | Index of last row |
| x | Abscissa of the top left corner |
| y | Ordinate of the top left corner |
| writeHeader | Flag whether to write the header |
| double wxPdfTable::WriteTable | ( | bool | writeHeader, |
| const wxArrayInt & | lastRowsOnPage, | ||
| double | x, | ||
| double | y ) |
Write the whole table.
| writeHeader | Flag whether to write the header |
| lastRowsOnPage | List of last rows on each page |
| x | Abscissa of the top left corner |
| y | Ordinate of the top left corner |