// spezial case rpt:now() (default date format)
if (_sFormattedfield.equals("rpt:now()"))
{
XNumberFormatsSupplier x = xFormattedField.getFormatsSupplier();
XNumberFormats xFormats = x.getNumberFormats();
XNumberFormatTypes x3 = (XNumberFormatTypes) UnoRuntime.queryInterface(XNumberFormatTypes.class, xFormats);
Locale.getDefault();
com.sun.star.lang.Locale aLocale = new com.sun.star.lang.Locale();
aLocale.Country = Locale.getDefault().getCountry();
aLocale.Language = Locale.getDefault().getLanguage();
int nFormat = x3.getStandardFormat(com.sun.star.util.NumberFormat.DATE, aLocale);
xFormattedField.setFormatKey(nFormat);
}
_xSection.add(xFormattedField);
}
catch (com.sun.star.uno.Exception e)