ImportHelpers.h File Reference
#include <tqstring.h>#include <tqmap.h>Go to the source code of this file.
Functions | |
| double | CentimetresToPoints (const double d) |
| double | MillimetresToPoints (const double d) |
| double | InchesToPoints (const double d) |
| double | PicaToPoints (const double d) |
| double | ValueWithLengthUnit (const TQString &_str, bool *atleast=NULL) |
Detailed Description
Helpers for the AbiWord import filter.
Rough rule for including code in this file: use nothing of TQt except TQMap, TQValueList and TQString
Definition in file ImportHelpers.h.
Function Documentation
◆ CentimetresToPoints()
|
inline |
Definition at line 56 of file ImportHelpers.h.
◆ InchesToPoints()
|
inline |
Definition at line 66 of file ImportHelpers.h.
◆ MillimetresToPoints()
|
inline |
Definition at line 61 of file ImportHelpers.h.
◆ PicaToPoints()
|
inline |
Definition at line 71 of file ImportHelpers.h.
◆ ValueWithLengthUnit()
| double ValueWithLengthUnit | ( | const TQString & | _str, |
| bool * | atleast = NULL ) |
Transform a value with unit (for example "12cm") into a double.
- Parameters
-
_str the value as string atleast was there a + character after the unit to denote an "at-least" property
- Returns
- the value as double (in points)
Definition at line 64 of file ImportHelpers.cpp.
