filters

ImportHelpers.h File Reference


Detailed Description

Helpers for the AbiWord import filter.

Rough rule for including code in this file: use nothing of QT except QMap, QValueList and QString

Definition in file ImportHelpers.h.

#include <qstring.h>
#include <qmap.h>

Go to the source code of this file.


Classes

class  AbiProps
class  AbiPropsMap

Functions

double CentimetresToPoints (const double d)
double MillimetresToPoints (const double d)
double InchesToPoints (const double d)
double PicaToPoints (const double d)
double ValueWithLengthUnit (const QString &_str, bool *atleast=NULL)

Function Documentation

double ValueWithLengthUnit ( const QString &  _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.cc.

KDE Home | KDE Accessibility Home | Description of Access Keys