fdo#67235 adapt form control code to time nanosecond API change, step 2
Change-Id: I6ed48b506bdd7b3908ce8c7dba1b74093a3ac202
This commit is contained in:
parent
65e65a93ad
commit
f4cadd9772
@ -627,7 +627,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
|
|||||||
return xTextComponent;
|
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;
|
XPropertySet xTFModelPSet = null;
|
||||||
try{
|
try{
|
||||||
// create a unique name by means of an own implementation...
|
// 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
|
// The following properties may also be set with XMultiPropertySet but we
|
||||||
// use the XPropertySet interface merely for reasons of demonstration
|
// use the XPropertySet interface merely for reasons of demonstration
|
||||||
xTFModelPSet.setPropertyValue("TimeFormat", new Short((short) 5));
|
xTFModelPSet.setPropertyValue("TimeFormat", new Short((short) 5));
|
||||||
xTFModelPSet.setPropertyValue("TimeMin", new Integer(_nTimeMin));
|
xTFModelPSet.setPropertyValue("TimeMin", new Long(_nTimeMin));
|
||||||
xTFModelPSet.setPropertyValue("TimeMax", new Integer(_nTimeMax));
|
xTFModelPSet.setPropertyValue("TimeMax", new Long(_nTimeMax));
|
||||||
xTFModelPSet.setPropertyValue("Time", new Integer(_nTime));
|
xTFModelPSet.setPropertyValue("Time", new Long(_nTime));
|
||||||
} catch (com.sun.star.uno.Exception ex) {
|
} catch (com.sun.star.uno.Exception ex) {
|
||||||
/* perform individual exception handling here.
|
/* perform individual exception handling here.
|
||||||
* Possible exception types are:
|
* Possible exception types are:
|
||||||
|
@ -168,7 +168,7 @@ published service UnoControlTimeFieldModel
|
|||||||
|
|
||||||
/** specifies the time displayed in the control.
|
/** specifies the time displayed in the control.
|
||||||
*/
|
*/
|
||||||
[property] long Time;
|
[property] hyper Time;
|
||||||
|
|
||||||
|
|
||||||
/** specifies the format of the displayed time.
|
/** specifies the format of the displayed time.
|
||||||
@ -187,12 +187,12 @@ published service UnoControlTimeFieldModel
|
|||||||
|
|
||||||
/** specifies the maximum time that can be entered.
|
/** specifies the maximum time that can be entered.
|
||||||
*/
|
*/
|
||||||
[property] long TimeMax;
|
[property] hyper TimeMax;
|
||||||
|
|
||||||
|
|
||||||
/** specifies the minimum time that can be entered.
|
/** 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
|
/** denotes the writing mode used in the control, as specified in the
|
||||||
com::sun::star::text::WritingMode2 constants group.
|
com::sun::star::text::WritingMode2 constants group.
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user