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.
PrintTable::PrintTable | ( | ) |
Definition at line 225 of file printtable.cpp.
void PrintTable::AdjustCells | ( | wxDC * | _dc, |
int | marginX, | ||
int | marginY | ||
) |
Definition at line 227 of file printtable.cpp.
|
inline |
Definition at line 203 of file printtable.h.
|
inline |
Definition at line 205 of file printtable.h.
|
inline |
Definition at line 210 of file printtable.h.
|
inline |
Definition at line 207 of file printtable.h.
|
protected |
Definition at line 187 of file printtable.h.
|
protected |
Definition at line 188 of file printtable.h.
|
protected |
Definition at line 190 of file printtable.h.
|
protected |
Definition at line 192 of file printtable.h.
|
protected |
Definition at line 189 of file printtable.h.