From 7bcebc31ed3d6693d0d747bebab4b82bc7c2062c Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sun, 19 May 2013 13:21:27 +0200 Subject: java wizard FilterComponent: TODO annotations Change-Id: I43ce0793306815988e39ba0735abd68f2022eaea --- wizards/com/sun/star/wizards/ui/FilterComponent.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'wizards') 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)) { -- cgit