From c285d043be71251731c8bf30f44b7587d5fa7169 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 20 Apr 2016 11:32:35 +0000 Subject: [PATCH] XListBox: Add more hints about return values Change-Id: I74385b762ed70ec9d8303f1cb94f76b9edac7cc5 Reviewed-on: https://gerrit.libreoffice.org/24261 Tested-by: Jenkins Reviewed-by: Noel Grandin --- offapi/com/sun/star/awt/XListBox.idl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/offapi/com/sun/star/awt/XListBox.idl b/offapi/com/sun/star/awt/XListBox.idl index 2c3ad9c0078b..d11d8a08e895 100644 --- a/offapi/com/sun/star/awt/XListBox.idl +++ b/offapi/com/sun/star/awt/XListBox.idl @@ -89,7 +89,9 @@ published interface XListBox: com::sun::star::uno::XInterface sequence getItems(); - /** returns the position of the currently selected item, or -1 when nothing is selected. + /** returns the position of the currently selected item. + When multiple items are selected, the position of the first one is returned. + When nothing is selected, -1 is returned. */ short getSelectedItemPos(); @@ -100,6 +102,8 @@ published interface XListBox: com::sun::star::uno::XInterface /** returns the currently selected item. + When multiple items are selected, the first one is returned. + When nothing is selected, an empty string is returned. */ string getSelectedItem();