Lines 197-203
Link Here
|
197 |
Locale oLocale = (Locale) Helper.getUnoPropertyValue(xNumberFormat, "Locale"); |
197 |
Locale oLocale = (Locale) Helper.getUnoPropertyValue(xNumberFormat, "Locale"); |
198 |
int NewFormatKey = defineNumberFormat(FormatString, oLocale); |
198 |
int NewFormatKey = defineNumberFormat(FormatString, oLocale); |
199 |
XPropertySet xPSet = UnoRuntime.queryInterface(XPropertySet.class, _xFormatObject); |
199 |
XPropertySet xPSet = UnoRuntime.queryInterface(XPropertySet.class, _xFormatObject); |
200 |
xPSet.setPropertyValue("FormatsSupplier", _oNumberFormatter.xNumberFormatter.getNumberFormatsSupplier()); |
200 |
if (xPSet.getPropertySetInfo().hasPropertyByName("FormatsSupplier")) |
|
|
201 |
xPSet.setPropertyValue("FormatsSupplier", _oNumberFormatter.xNumberFormatter.getNumberFormatsSupplier()); |
201 |
if (xPSet.getPropertySetInfo().hasPropertyByName("NumberFormat")) |
202 |
if (xPSet.getPropertySetInfo().hasPropertyByName("NumberFormat")) |
202 |
{ |
203 |
{ |
203 |
xPSet.setPropertyValue("NumberFormat", new Integer(NewFormatKey)); |
204 |
xPSet.setPropertyValue("NumberFormat", new Integer(NewFormatKey)); |