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()

double CentimetresToPoints ( const double  d)
inline

Definition at line 56 of file ImportHelpers.h.

◆ InchesToPoints()

double InchesToPoints ( const double  d)
inline

Definition at line 66 of file ImportHelpers.h.

◆ MillimetresToPoints()

double MillimetresToPoints ( const double  d)
inline

Definition at line 61 of file ImportHelpers.h.

◆ PicaToPoints()

double PicaToPoints ( const double  d)
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
_strthe value as string
atleastwas 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.