diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-19 13:21:27 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-05-19 14:05:25 +0200 |
commit | 7bcebc31ed3d6693d0d747bebab4b82bc7c2062c (patch) | |
tree | bf045cf791d71625355d865aedbf8940b3c2ce31 /wizards/com/sun/star | |
parent | 48b29cd42ba10fbb3f7be697fd79a0984b4daa1b (diff) |
java wizard FilterComponent: TODO annotations
Change-Id: I43ce0793306815988e39ba0735abd68f2022eaea
Diffstat (limited to 'wizards/com/sun/star')
-rw-r--r-- | wizards/com/sun/star/wizards/ui/FilterComponent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wizards/com/sun/star/wizards/ui/FilterComponent.java b/wizards/com/sun/star/wizards/ui/FilterComponent.java index 32cdceb4e7f7..a75eb559f860 100644 --- a/wizards/com/sun/star/wizards/ui/FilterComponent.java +++ b/wizards/com/sun/star/wizards/ui/FilterComponent.java @@ -270,6 +270,7 @@ public class FilterComponent case DataType.DATE: value = ((Double) value) - oQueryMetaData.getNullDateCorrection(); break; + // TODO: TIME case? } column.removeProperty("Value"); final short operator = currentControlRow.getSelectedOperator(); @@ -777,10 +778,12 @@ public class FilterComponent String sValue = AnyConverter.toString(_filtercondition.Value); if (sValue.indexOf("{D '") > -1) { + // TODO: this seems to never happen? sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "{D '"); sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }"); try { + //Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", ); oQueryMetaData.getNumberFormatter().convertStringToNumber(iDateFormat, sValue); } catch (java.lang.Exception ex) @@ -790,10 +793,12 @@ public class FilterComponent } else if (sValue.indexOf("{T '") > -1) { + // TODO: this seems to never happen? sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "{T '"); sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }"); try { + //Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", ); oQueryMetaData.getNumberFormatter().convertStringToNumber(iTimeFormat, sValue); } catch (java.lang.Exception ex) @@ -801,6 +806,12 @@ public class FilterComponent Logger.getLogger(FilterComponent.class.getName()).log(Level.SEVERE, null, ex); } } + // TODO: TS case? + //TODO: other datetime formats? + else + { + //Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", sValue); + } } else if (AnyConverter.isBoolean(_filtercondition.Value)) { |