From f4cadd9772ed0ff6e7f7b170080f90384d1f2318 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Sat, 3 Aug 2013 11:05:21 +0200 Subject: [PATCH] fdo#67235 adapt form control code to time nanosecond API change, step 2 Change-Id: I6ed48b506bdd7b3908ce8c7dba1b74093a3ac202 --- .../DevelopersGuide/GUI/UnoDialogSample.java | 8 ++++---- .../sun/star/awt/UnoControlTimeFieldModel.idl | 6 +++--- offapi/type_reference/offapi.rdb | Bin 6822400 -> 6822400 bytes 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java index 2b47e82e8975..a76c918504ee 100644 --- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java +++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java @@ -627,7 +627,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis return xTextComponent; } - public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, int _nTime, int _nTimeMin, int _nTimeMax){ + public XPropertySet insertTimeField(int _nPosX, int _nPosY, int _nWidth, long _nTime, long _nTimeMin, long _nTimeMax){ XPropertySet xTFModelPSet = null; try{ // create a unique name by means of an own implementation... @@ -649,9 +649,9 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis // The following properties may also be set with XMultiPropertySet but we // use the XPropertySet interface merely for reasons of demonstration xTFModelPSet.setPropertyValue("TimeFormat", new Short((short) 5)); - xTFModelPSet.setPropertyValue("TimeMin", new Integer(_nTimeMin)); - xTFModelPSet.setPropertyValue("TimeMax", new Integer(_nTimeMax)); - xTFModelPSet.setPropertyValue("Time", new Integer(_nTime)); + xTFModelPSet.setPropertyValue("TimeMin", new Long(_nTimeMin)); + xTFModelPSet.setPropertyValue("TimeMax", new Long(_nTimeMax)); + xTFModelPSet.setPropertyValue("Time", new Long(_nTime)); } catch (com.sun.star.uno.Exception ex) { /* perform individual exception handling here. * Possible exception types are: diff --git a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl index bff3ccebe32a..5b59ff7461a3 100644 --- a/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl +++ b/offapi/com/sun/star/awt/UnoControlTimeFieldModel.idl @@ -168,7 +168,7 @@ published service UnoControlTimeFieldModel /** specifies the time displayed in the control. */ - [property] long Time; + [property] hyper Time; /** specifies the format of the displayed time. @@ -187,12 +187,12 @@ published service UnoControlTimeFieldModel /** specifies the maximum time that can be entered. */ - [property] long TimeMax; + [property] hyper TimeMax; /** specifies the minimum time that can be entered. */ - [property] long TimeMin; + [property] hyper TimeMin; /** denotes the writing mode used in the control, as specified in the com::sun::star::text::WritingMode2 constants group. diff --git a/offapi/type_reference/offapi.rdb b/offapi/type_reference/offapi.rdb index c09e82439dd5cd0cd33add1cc283b4fc7adb53cb..e85a0733032021bf9acaff349f390a28c8f447ac 100644 GIT binary patch delta 368 zcmXxb$uoj+0LJlO%S%Wqvacc8vu91VY*~|(h_}#zF>c+A`OX+;!+SIS0XN3o!GGZ7 z;{V8$w}ZoHo_Xe(=lbZqrIMw+nGObe|zXv0Z69dyz~H$C*?qK|$C7-WcHMsPFA7~@PZ$rK)@@iN0KbIh}V zk42VPW`$M!tg+4pn{2U7fE|MD5@L@q5%!64z#%b?IDVB~Y4c6k;}XBJ5E+$-i+isW zv1X%^5PBh`kaaMa%BAvh*I)JinU+mDgHagIQkRJ<F}R1j)s}%WTr3B!3<-3 z0aqWw#diqF;WxkJb4p46Lx&y(11fpsW2AsWiZD@(nG!5mv0qW6W1k2I9CE}lQDU4tYke8Z#K~7$d}~7d=7_ks_o@+F zc3&03AcPvS4Ti7&m+4!#^YuNWnH9O9x0vPUuhu5tI%4L$;KgOae