12#ifndef _PDF_UTILITY_H_
13#define _PDF_UTILITY_H_
32 static wxString GetUniqueId(
const wxString& prefix = wxEmptyString);
40 static wxString Double2String(
double value,
int precision = 0);
48 static double String2Double(
const wxString& str);
58 static double String2Double(
const wxString& str,
const wxString& defaultUnit,
double scaleFactor = 1.0);
65 static wxString Convert2Roman(
int value);
77 static double ForceRange(
double value,
double minValue,
double maxValue);
84 static wxString RGB2String(
const wxColour& colour);
93 static int MapFontWeight2FontStyle(wxFontWeight fontWeight);
100 static wxString MapFontWeight2FontStyleString(
wxPdfFontWeight fontWeight);
102 static wxString MapFontWeight2FontStyleString(wxFontWeight fontWeight);
111 static wxPdfFontWeight MapFontStyle2FontWeight(
const wxString& fontStyle);
118 static int MapFontStyle2StyleFlags(
const wxString& fontStyle);
127 static int MapFont2FontStyle(
const wxFont& font);
136 static int MapFontName2FontStyle(
const wxString& fontName);
145 static wxString MapFontStyle2String(
int fontStyle);
148 static bool ms_seeded;
Class implementing several static utility methods.
Definition: pdfutility.h:25
Compile time switches for the wxPdfDocument component.
Interface of the several wxPdfDocument property classes.
wxPdfFontWeight
Font weights.
Definition: pdfproperties.h:105