OpenCPN Partial API docs
PrintTable Class Reference

Extension of a class Table with printing into dc. More...

#include <printtable.h>

Inheritance diagram for PrintTable:
Table

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
Tableoperator<< (const int &)
 
Tableoperator<< (const double &)
 
Tableoperator<< (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< PrintCellheader_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 ()
 

Detailed Description

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.


The documentation for this class was generated from the following files: