OpenCPN Partial API docs
Loading...
Searching...
No Matches
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.

Constructor & Destructor Documentation

◆ PrintTable()

PrintTable::PrintTable ( )

Definition at line 225 of file printtable.cpp.

Member Function Documentation

◆ AdjustCells()

void PrintTable::AdjustCells ( wxDC *  _dc,
int  marginX,
int  marginY 
)

Definition at line 227 of file printtable.cpp.

◆ GetContent()

std::vector< std::vector< PrintCell > > & PrintTable::GetContent ( )
inline

Definition at line 203 of file printtable.h.

◆ GetHeader()

std::vector< PrintCell > & PrintTable::GetHeader ( )
inline

Definition at line 205 of file printtable.h.

◆ GetHeaderHeight()

int PrintTable::GetHeaderHeight ( )
inline

Definition at line 210 of file printtable.h.

◆ GetNumberPages()

int PrintTable::GetNumberPages ( )
inline

Definition at line 207 of file printtable.h.

Member Data Documentation

◆ contents

std::vector<std::vector<PrintCell> > PrintTable::contents
protected

Definition at line 187 of file printtable.h.

◆ header_content

std::vector<PrintCell> PrintTable::header_content
protected

Definition at line 188 of file printtable.h.

◆ header_height

int PrintTable::header_height
protected

Definition at line 190 of file printtable.h.

◆ number_of_pages

int PrintTable::number_of_pages
protected

Definition at line 192 of file printtable.h.

◆ rows_heights

std::vector<int> PrintTable::rows_heights
protected

Definition at line 189 of file printtable.h.


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