summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 14:31:39 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 14:31:39 +0000
commitcc24b5b0a9c1001455ffd6fbde0ee993bf51e4b2 (patch)
tree3741160cad6839efd725466346cb1dd0bdfedd07 /wizards/com/sun/star/wizards/text
parent913dd265cf9fc6379f6c6f73ae937af251ded414 (diff)
INTEGRATION: CWS dbawizards (1.6.116); FILE MERGED
2008/01/03 13:55:16 bc 1.6.116.2: #i49332# resetting fixed property for date textfields 2008/01/02 13:46:37 bc 1.6.116.1: #i72887# incorrect behaviour of < in wizard
Diffstat (limited to 'wizards/com/sun/star/wizards/text')
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.java19
1 files changed, 17 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
index 59c7f0fb9f1b..48eb8479520b 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
@@ -4,9 +4,9 @@
*
* $RCSfile: TextFieldHandler.java,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: vg $ $Date: 2006-04-07 12:55:39 $
+ * last change: $Author: vg $ $Date: 2008-01-28 15:31:39 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -228,6 +228,7 @@ public class TextFieldHandler {
if (xSI.supportsService("com.sun.star.text.TextField.DateTime")) {
XPropertySet xPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oTextField);
+ xPSet.setPropertyValue("IsFixed", Boolean.FALSE);
xPSet.setPropertyValue("DateTimeValue", dt);
}
}
@@ -236,6 +237,20 @@ public class TextFieldHandler {
}
}
+ public void fixDateFields(boolean _bSetFixed) {
+ try {
+ XEnumeration xEnum = xTextFieldsSupplier.getTextFields().createEnumeration();
+ 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", new Boolean(_bSetFixed));
+ }
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }}
public void removeUserFieldByContent(String _FieldContent) {
try {