Bug 99413 - XListBox should have an appendItem() method
Summary: XListBox should have an appendItem() method
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 12:24 UTC by Samuel Mehrbrodt (allotropia)
Modified: 2016-04-20 13:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Mehrbrodt (allotropia) 2016-04-20 12:24:21 UTC
When inserting elements into an XListBox, you always need to specify an index (or use -1 to insert at the end), using addItem.
There should be an appendItem method which has only one parameter (the entry as string) and adds the item at the end of the listbox.
Comment 1 Maxim Monastirsky 2016-04-20 12:54:28 UTC
Note that XListBox is a published interface, so you're not allowed to change it AFAIK.
Comment 2 Samuel Mehrbrodt (allotropia) 2016-04-20 13:56:38 UTC
Ok, then probably not worth the hassle.