LibreOffice Module xmerge (master) 1
|
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 String to twips. 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... | |
Helper class providing static methods to convert data to/from twips.
Definition at line 24 of file TwipsConverter.java.
|
inlinestaticprivate |
Convert from cm's to twips.
value | float containing the representation of the value. |
int
containing the converted value. Definition at line 46 of file TwipsConverter.java.
References value.
Referenced by org.openoffice.xmerge.util.TwipsConverter.convert2twips().
|
inlinestatic |
Convert String
to twips.
value | String in the form "1.234cm" or "1.234inch". |
defaultValue | the default value. |
value
is a well-formatted
String
, defaultValue
otherwise. Definition at line 71 of file TwipsConverter.java.
References cm, org.openoffice.xmerge.util.TwipsConverter.cm2twips(), Float, org.openoffice.xmerge.util.TwipsConverter.inches2twips(), and value.
Referenced by org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.parseColWidth(), and org.openoffice.xmerge.converter.xml.sxc.RowStyle.parseRowHeight().
|
inlinestaticprivate |
Convert from cm's to twips.
value | float containing the representation of the value. |
int
containing the converted value. Definition at line 58 of file TwipsConverter.java.
References value.
Referenced by org.openoffice.xmerge.util.TwipsConverter.convert2twips().
|
inlinestatic |
Convert from twips to cm's.
value | The short to be converted. |
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().