}
public void updateDateFields() {
try {
XEnumeration xEnum = xTextFieldsSupplier.getTextFields().createEnumeration();
Calendar cal = new GregorianCalendar();
DateTime dt = new DateTime();
dt.Day = (short) cal.get(Calendar.DAY_OF_MONTH);
dt.Year = (short) cal.get(Calendar.YEAR);
dt.Month = (short) cal.get(Calendar.MONTH);
dt.Month++;
while (xEnum.hasMoreElements()) {
Object oTextField = xEnum.nextElement();
XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface(XServiceInfo.class, oTextField);
if (xSI.supportsService("com.sun.star.text.TextField.DateTime")) {
XPropertySet xPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oTextField);
xPSet.setPropertyValue("IsFixed", Boolean.FALSE);