![]() |
wxPdfDocument
1.4.0
Library for generating PDF documents from wxWidgets applications
|
Class implementing several static utility methods. More...
#include <pdfutility.h>
Static Public Member Functions | |
| static wxString | GetUniqueId (const wxString &prefix=wxEmptyString) |
| Create a unique ID. | |
| static wxString | Double2String (double value, int precision=0) |
| Formats a floating point number with a fixed precision. | |
| static double | String2Double (const wxString &str) |
| Parses a floating point number. | |
| static double | String2Double (const wxString &str, const wxString &defaultUnit, double scaleFactor=1.0) |
| Parses a floating point number taking units into account. | |
| static wxString | Convert2Roman (int value) |
| Converts an integer number to a roman number. | |
| static double | ForceRange (double value, double minValue, double maxValue) |
| Forces a floating point number into a fixed range. | |
| static wxString | RGB2String (const wxColour &colour) |
| Converts a wxColour to the corresponding PDF specification. | |
| static int | MapFontWeight2FontStyle (wxPdfFontWeight fontWeight) |
| Map font weight to font style. | |
| static int | MapFontWeight2FontStyle (wxFontWeight fontWeight) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static wxString | MapFontWeight2FontStyleString (wxPdfFontWeight fontWeight) |
| Map font weight to font style in string representation. | |
| static wxString | MapFontWeight2FontStyleString (wxFontWeight fontWeight) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static wxPdfFontWeight | MapFontStyle2FontWeight (int fontStyle) |
| Map font style to font weight. | |
| static wxPdfFontWeight | MapFontStyle2FontWeight (const wxString &fontStyle) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| static int | MapFontStyle2StyleFlags (const wxString &fontStyle) |
| Map font style to font weight. | |
| static int | MapFont2FontStyle (const wxFont &font) |
| Map wxFont to font style. | |
| static int | MapFontName2FontStyle (const wxString &fontName) |
| Map font name to font style. | |
| static wxString | MapFontStyle2String (int fontStyle) |
| Map font styles to string representation. | |
Class implementing several static utility methods.
|
static |
Converts an integer number to a roman number.
| value | integer value to be converted |
|
static |
Formats a floating point number with a fixed precision.
| value | the value to be formatted |
| precision | the number of decimal places |
|
static |
Forces a floating point number into a fixed range.
| value | value to be forced into range |
| minValue | lower limit |
| maxValue | upper limit |
|
static |
Create a unique ID.
| prefix | Optional prefix for the ID |
|
static |
Map wxFont to font style.
| font | the wxFont |
|
static |
Map font name to font style.
This method tries to deduce the font style from the font name.
| fontName | the name of the font |
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Map font style to font weight.
| fontStyle | style of the font |
|
static |
Map font styles to string representation.
This method converts the font style flags to a human-readable string representation.
| fontName | the name of the font |
|
static |
Map font style to font weight.
| fontStyle | style of the font consisting of a sequence of one-letter codes |
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Map font weight to font style.
| fontWeight | weight of the font |
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Map font weight to font style in string representation.
| fontWeight | weight of the font |
|
static |
Converts a wxColour to the corresponding PDF specification.
| colour | colour to be converted to a hexadecimal string representation |
|
static |
Parses a floating point number.
| str | the string to be parsed |
|
static |
Parses a floating point number taking units into account.
| str | the string to be parsed |
| defaultUnit | the unit that should be assumed if the string includes no explicit unit |
| scaleFactor | the scale factor that should be applied for unit conversions involving pixels |