OpenCPN Partial API docs
|
Extension of a class Table with printing into dc. More...
#include <printtable.h>
Public Member Functions | |
void | AdjustCells (wxDC *_dc, int marginX, int marginY) |
std::vector< std::vector< PrintCell > > & | GetContent () |
std::vector< PrintCell > & | GetHeader () |
int | GetNumberPages () |
int | GetHeaderHeight () |
Public Member Functions inherited from Table | |
Table & | operator<< (const int &) |
Table & | operator<< (const double &) |
Table & | operator<< (const wxString &) |
std::vector< std::vector< wxString > > & | GetData () |
void | StartFillData () |
void | StartFillHeader () |
void | StartFillWidths () |
int | GetRowHeight (int i) |
Protected Attributes | |
std::vector< std::vector< PrintCell > > | contents |
std::vector< PrintCell > | header_content |
std::vector< int > | rows_heights |
int | header_height |
int | number_of_pages |
Protected Attributes inherited from Table | |
int | nrows |
int | ncols |
bool | create_next_row |
std::vector< std::vector< wxString > > | data |
std::vector< double > | widths |
std::vector< wxString > | header |
TableState | state |
Additional Inherited Members | |
Protected Member Functions inherited from Table | |
void | Start () |
void | NewRow () |
Extension of a class Table with printing into dc.
It takes all elements, takes DC as a printing device, takes a maximal possible table width, calculate width of every column. For printing of every cell it modifies its content so, that it fits into cell by inserting new lines.
Definition at line 185 of file printtable.h.