LibreOffice Module xmerge (master)  1
Static Public Member Functions | Static Private Member Functions | List of all members
org.openoffice.xmerge.util.TwipsConverter Class Reference

Helper class providing static methods to convert data to/from twips. More...

Static Public Member Functions

static float twips2cm (int value)
 Convert from twips to cm's. More...
 
static int convert2twips (String value, int defaultValue)
 Convert. More...
 

Static Private Member Functions

static int cm2twips (float value)
 Convert from cm's to twips. More...
 
static int inches2twips (float value)
 Convert from cm's to twips. More...
 

Detailed Description

Helper class providing static methods to convert data to/from twips.

Definition at line 24 of file TwipsConverter.java.

Member Function Documentation

static int org.openoffice.xmerge.util.TwipsConverter.cm2twips ( float  value)
inlinestaticprivate

Convert from cm's to twips.

Parameters
value

Definition at line 46 of file TwipsConverter.java.

Referenced by org.openoffice.xmerge.util.TwipsConverter.convert2twips().

static int org.openoffice.xmerge.util.TwipsConverter.convert2twips ( String  value,
int  defaultValue 
)
inlinestatic
static int org.openoffice.xmerge.util.TwipsConverter.inches2twips ( float  value)
inlinestaticprivate

Convert from cm's to twips.

Parameters
value

Definition at line 58 of file TwipsConverter.java.

Referenced by org.openoffice.xmerge.util.TwipsConverter.convert2twips().

static float org.openoffice.xmerge.util.TwipsConverter.twips2cm ( int  value)
inlinestatic

Convert from twips to cm's.

Parameters
valueThe
short
to be converted.
Returns
float
containing the converted.

Definition at line 33 of file TwipsConverter.java.

Referenced by org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.writeAttributes(), and org.openoffice.xmerge.converter.xml.sxc.RowStyle.writeAttributes().


The documentation for this class was generated from the following file: