|
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 178 of file printtable.h.
| PrintTable::PrintTable | ( | ) |
Definition at line 219 of file printtable.cpp.
| void PrintTable::AdjustCells | ( | wxDC * | _dc, |
| int | marginX, | ||
| int | marginY | ||
| ) |
Definition at line 221 of file printtable.cpp.
|
inline |
Definition at line 196 of file printtable.h.
|
inline |
Definition at line 198 of file printtable.h.
|
inline |
Definition at line 203 of file printtable.h.
|
inline |
Definition at line 200 of file printtable.h.
|
protected |
Definition at line 180 of file printtable.h.
|
protected |
Definition at line 181 of file printtable.h.
|
protected |
Definition at line 183 of file printtable.h.
|
protected |
Definition at line 185 of file printtable.h.
|
protected |
Definition at line 182 of file printtable.h.