![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
#include <pdfxml.h>
Public Member Functions | |
| wxPdfCellContext (double maxWidth, wxPdfAlignment hAlign=wxPDF_ALIGN_JUSTIFY, wxPdfAlignment vAlign=wxPDF_ALIGN_TOP) | |
| Constructor. | |
| virtual | ~wxPdfCellContext () |
| Destructor. | |
| void | AddHeight (double height) |
| Increase total height of cell. | |
| double | GetHeight () |
| Get total height of cell. | |
| double | GetMaxWidth () |
| Get maximum width of cell. | |
| wxPdfAlignment | GetHAlign () |
| Get horizontal alignment. | |
| void | SetVAlign (wxPdfAlignment vAlign) |
| Set vertical alignment. | |
| wxPdfAlignment | GetVAlign () |
| Get vertical alignment. | |
| void | AddLine () |
| Add a line to cell. | |
| unsigned int | GetLineCount () |
| Get number of lines in cell. | |
| void | AddLastLineValues (double width, int spaces) |
| Add width and number of spaces of the last line of the current context. | |
| double | GetLastLineWidth () |
| Get the width of the last line. | |
| void | MarkLastLine () |
| Mark the current line as the last line. | |
| bool | IsCurrentLineMarked () |
| Check whether current line is marked as last line. | |
| void | AddCurrentLineWidth (double width) |
| Adjust width of current line. | |
| void | AddCurrentLineSpaces (int spaces) |
| Adjust number of spaces of current line. | |
| double | GetCurrentLineWidth () |
| Get width of current line. | |
| int | GetCurrentLineSpaces () |
| Get number of spaces of current line. | |
| unsigned int | GetCurrentLine () |
| Get number of current line. | |
| void | IncrementCurrentLine () |
| Increment line counter. | |
| double | GetLineDelta () |
| Get line delta measure. | |
| bool | GetAligned () |
| Check whether alignment has been taken care of. | |
| void | SetAligned () |
| Set flag that alignment has been taken care of. | |
| int | GetFillStyle () |
| Get cell fill style. | |
| void | SetFillStyle (int fillStyle) |
| Set cell fill style. | |
| unsigned int | GetContextCount () |
| Get the number of contexts. | |
| void | IncrementCurrentContext () |
| Increment current context. | |
| wxPdfCellContext * | GetCurrentContext () |
| Get current context. | |
| void | AppendContext (wxPdfCellContext *context) |
| Append context to context list. | |
| void | SetLastChar (wxUniChar c) |
| Remember the last character of the last chunk. | |
| wxUniChar | GetLastChar () |
| Get last character of previous chunk. | |
| void | SetLastSpaceWidth (double w) |
| Remember the width of the last space character. | |
| double | GetLastSpaceWidth () |
| Get width of last space character. | |
| void | SetCharacterSpacing (double charSpacing) |
| Remember the character spacing. | |
| double | GetCharacterSpacing () |
| Get character spacing. | |
| void | SetHRef (const wxString &href) |
| Set hyper link reference. | |
| wxString & | GetHRef () |
| Get hyper link reference. | |
| void | SetTable (wxPdfTable *table) |
| Set reference to an embedded markup table. | |
| wxPdfTable * | GetTable () |
| Get reference to an embedded markup table. | |
Class representing cell context objects. (For internal use only)
| wxPdfCellContext::wxPdfCellContext | ( | double | maxWidth, |
| wxPdfAlignment | hAlign = wxPDF_ALIGN_JUSTIFY, | ||
| wxPdfAlignment | vAlign = wxPDF_ALIGN_TOP ) |
Constructor.
| maxWidth | Maximum allowed width for the cell |
| hAlign | Horizontal alignment |
| vAlign | Vertical alignment |
|
virtual |
Destructor.
| void wxPdfCellContext::AddCurrentLineSpaces | ( | int | spaces | ) |
Adjust number of spaces of current line.
| spaces | Number of spaces to add |
| void wxPdfCellContext::AddCurrentLineWidth | ( | double | width | ) |
Adjust width of current line.
| width | Width to add |
|
inline |
Increase total height of cell.
| height | Height to add |
| void wxPdfCellContext::AddLastLineValues | ( | double | width, |
| int | spaces ) |
Add width and number of spaces of the last line of the current context.
| width | Line width |
| spaces | Number of spaces |
| void wxPdfCellContext::AddLine | ( | ) |
Add a line to cell.
| void wxPdfCellContext::AppendContext | ( | wxPdfCellContext * | context | ) |
Append context to context list.
| context | Pointer to cell context to append |
|
inline |
Check whether alignment has been taken care of.
true if aligned, false otherwise
|
inline |
Get character spacing.
|
inline |
Get the number of contexts.
| wxPdfCellContext * wxPdfCellContext::GetCurrentContext | ( | ) |
Get current context.
|
inline |
Get number of current line.
| int wxPdfCellContext::GetCurrentLineSpaces | ( | ) |
Get number of spaces of current line.
| double wxPdfCellContext::GetCurrentLineWidth | ( | ) |
Get width of current line.
|
inline |
Get cell fill style.
|
inline |
Get horizontal alignment.
|
inline |
Get total height of cell.
|
inline |
Get hyper link reference.
|
inline |
Get last character of previous chunk.
| double wxPdfCellContext::GetLastLineWidth | ( | ) |
Get the width of the last line.
|
inline |
Get width of last space character.
|
inline |
Get number of lines in cell.
| double wxPdfCellContext::GetLineDelta | ( | ) |
Get line delta measure.
|
inline |
Get maximum width of cell.
|
inline |
Get reference to an embedded markup table.
|
inline |
Get vertical alignment.
| void wxPdfCellContext::IncrementCurrentContext | ( | ) |
Increment current context.
| void wxPdfCellContext::IncrementCurrentLine | ( | ) |
Increment line counter.
| bool wxPdfCellContext::IsCurrentLineMarked | ( | ) |
Check whether current line is marked as last line.
true if current line is the last line, false otherwise | void wxPdfCellContext::MarkLastLine | ( | ) |
Mark the current line as the last line.
|
inline |
Set flag that alignment has been taken care of.
|
inline |
Remember the character spacing.
| charSpacing | Character spacing |
|
inline |
Set cell fill style.
| fillStyle | Fill style |
|
inline |
Set hyper link reference.
| href | Hyperlink reference |
|
inline |
Remember the last character of the last chunk.
| c | Character to remember |
|
inline |
Remember the width of the last space character.
| w | Space width |
|
inline |
Set reference to an embedded markup table.
| table | Pointer to the embedded table object |
|
inline |
Set vertical alignment.
| vAlign | Vertical alignment |