wxPdfDocument 1.2.0
Public Member Functions | List of all members
wxPdfTable Class Reference

Class representing tables within a cell. (For internal use only) More...

#include <pdfxml.h>

Public Member Functions

 wxPdfTable (wxPdfDocument *document)
 Constructor.
 
virtual ~wxPdfTable ()
 Destructor.
 
void SetMinRowHeight (int row, double height)
 Set minimum required row height.
 
void SetMaxRowHeight (int row, double height)
 Set maximum allowed row height.
 
void SetColumnWidth (int col, double width)
 Set width of column.
 
void SetCellDimensions (double maxWidth)
 Calculate cell dimensions respecting a maximum allowed width.
 
void InsertCell (wxPdfTableCell *c)
 Insert a cell into the cell array.
 
double WriteOnPage (bool writeHeader, double x, double y)
 
double WriteRowsOnPage (unsigned firstRow, unsigned lastRow, double x, double y, bool writeHeader)
 
unsigned int AddPage (wxArrayInt::const_iterator iter, wxArrayInt::const_iterator endIter)
 
double WriteTable (bool writeHeader, const wxArrayInt &lastRowsOnPage, double x, double y)
 
double GetRowHeight (int row)
 Get height of row.
 
void Write ()
 Write table to document.
 
double WriteRows (unsigned int firstRow, unsigned int lastRow, double x, double y, bool isHeaderRow)
 
void SetPad (double pad)
 Set cell padding.
 
double GetPad ()
 Get cell padding.
 
void SetBorder (bool border)
 Set border.
 
void SetBorderWidth (double borderWidth)
 Set border size.
 
void SetBorderColour (wxPdfColour borderColour)
 Set border colour.
 
bool HasBorder ()
 Check whether border should be drawn.
 
double GetTotalWidth ()
 Get total width of table.
 
double GetHeadHeight ()
 Get height of table head.
 
double GetBodyHeight ()
 Get height of table body.
 
double GetTotalHeight ()
 Get total height of table.
 
void SetHeadRowFirst (unsigned int row)
 Set index of first header row.
 
void SetHeadRowLast (unsigned int row)
 Set index of last header row.
 
void SetBodyRowFirst (unsigned int row)
 Set index of first body row.
 
void SetBodyRowLast (unsigned int row)
 Set index of last body row.
 

Detailed Description

Class representing tables within a cell. (For internal use only)

Constructor & Destructor Documentation

◆ wxPdfTable()

wxPdfTable::wxPdfTable ( wxPdfDocument * document)

Constructor.

◆ ~wxPdfTable()

virtual wxPdfTable::~wxPdfTable ( )
virtual

Destructor.

Member Function Documentation

◆ AddPage()

unsigned int wxPdfTable::AddPage ( wxArrayInt::const_iterator iter,
wxArrayInt::const_iterator endIter )

◆ GetBodyHeight()

double wxPdfTable::GetBodyHeight ( )
inline

Get height of table body.

◆ GetHeadHeight()

double wxPdfTable::GetHeadHeight ( )
inline

Get height of table head.

◆ GetPad()

double wxPdfTable::GetPad ( )
inline

Get cell padding.

◆ GetRowHeight()

double wxPdfTable::GetRowHeight ( int row)
inline

Get height of row.

◆ GetTotalHeight()

double wxPdfTable::GetTotalHeight ( )
inline

Get total height of table.

◆ GetTotalWidth()

double wxPdfTable::GetTotalWidth ( )
inline

Get total width of table.

◆ HasBorder()

bool wxPdfTable::HasBorder ( )
inline

Check whether border should be drawn.

◆ InsertCell()

void wxPdfTable::InsertCell ( wxPdfTableCell * c)

Insert a cell into the cell array.

◆ SetBodyRowFirst()

void wxPdfTable::SetBodyRowFirst ( unsigned int row)
inline

Set index of first body row.

◆ SetBodyRowLast()

void wxPdfTable::SetBodyRowLast ( unsigned int row)
inline

Set index of last body row.

◆ SetBorder()

void wxPdfTable::SetBorder ( bool border)
inline

Set border.

◆ SetBorderColour()

void wxPdfTable::SetBorderColour ( wxPdfColour borderColour)
inline

Set border colour.

◆ SetBorderWidth()

void wxPdfTable::SetBorderWidth ( double borderWidth)
inline

Set border size.

◆ SetCellDimensions()

void wxPdfTable::SetCellDimensions ( double maxWidth)

Calculate cell dimensions respecting a maximum allowed width.

◆ SetColumnWidth()

void wxPdfTable::SetColumnWidth ( int col,
double width )

Set width of column.

◆ SetHeadRowFirst()

void wxPdfTable::SetHeadRowFirst ( unsigned int row)
inline

Set index of first header row.

◆ SetHeadRowLast()

void wxPdfTable::SetHeadRowLast ( unsigned int row)
inline

Set index of last header row.

◆ SetMaxRowHeight()

void wxPdfTable::SetMaxRowHeight ( int row,
double height )
inline

Set maximum allowed row height.

◆ SetMinRowHeight()

void wxPdfTable::SetMinRowHeight ( int row,
double height )
inline

Set minimum required row height.

◆ SetPad()

void wxPdfTable::SetPad ( double pad)
inline

Set cell padding.

◆ Write()

void wxPdfTable::Write ( )

Write table to document.

◆ WriteOnPage()

double wxPdfTable::WriteOnPage ( bool writeHeader,
double x,
double y )

◆ WriteRows()

double wxPdfTable::WriteRows ( unsigned int firstRow,
unsigned int lastRow,
double x,
double y,
bool isHeaderRow )

◆ WriteRowsOnPage()

double wxPdfTable::WriteRowsOnPage ( unsigned firstRow,
unsigned lastRow,
double x,
double y,
bool writeHeader )

◆ WriteTable()

double wxPdfTable::WriteTable ( bool writeHeader,
const wxArrayInt & lastRowsOnPage,
double x,
double y )

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