Kaydet (Commit) 7dff8a91 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Add cases for css.uno.Date/Time to ValueChanger

...needed since 8ee69b0b "fdo#67235 adapt
form control code to time nanosecond API change, step 3."

Change-Id: Id561151ac4b57b972761ec19f0e8943b8d25a54f
üst 5b0ac814
......@@ -806,6 +806,12 @@ public class ValueChanger {
newVal.Value = changePValue(((PropertyValue)oldValue).Value);
newValue = newVal;
} else
if (oldValue instanceof com.sun.star.util.Date) {
com.sun.star.util.Date oldD = (com.sun.star.util.Date) oldValue;
com.sun.star.util.Date newD = new com.sun.star.util.Date();
newD.Day = (short) (oldD.Day+(short) 1);
newValue = newD;
} else
if (oldValue instanceof com.sun.star.util.DateTime) {
com.sun.star.util.DateTime oldDT = (com.sun.star.util.DateTime) oldValue;
com.sun.star.util.DateTime newDT = new com.sun.star.util.DateTime();
......@@ -813,6 +819,12 @@ public class ValueChanger {
newDT.Hours = (short) (oldDT.Hours+(short) 1);
newValue = newDT;
} else
if (oldValue instanceof com.sun.star.util.Time) {
com.sun.star.util.Time oldT = (com.sun.star.util.Time) oldValue;
com.sun.star.util.Time newT = new com.sun.star.util.Time();
newT.Hours = (short) (oldT.Hours+(short) 1);
newValue = newT;
} else
if (oldValue instanceof com.sun.star.text.TableColumnSeparator) {
com.sun.star.text.TableColumnSeparator oldTCS = (com.sun.star.text.TableColumnSeparator) oldValue;
com.sun.star.text.TableColumnSeparator newTCS = new com.sun.star.text.TableColumnSeparator();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment