LibreOffice
LibreOffice 24.2 SDK API Reference
|
gives access to the items of a list box and makes it possible to register item and action event listeners. More...
import"XListBox.idl";
Public Member Functions | |
void | addItemListener ([in] com::sun::star::awt::XItemListener l) |
registers a listener for item events. More... | |
void | removeItemListener ([in] com::sun::star::awt::XItemListener l) |
unregisters a listener for item events. More... | |
void | addActionListener ([in] com::sun::star::awt::XActionListener l) |
registers a listener for action events. More... | |
void | removeActionListener ([in] com::sun::star::awt::XActionListener l) |
unregisters a listener for action events. More... | |
void | addItem ([in] string aItem, [in] short nPos) |
adds an item at the specified position. More... | |
void | addItems ([in] sequence< string > aItems, [in] short nPos) |
adds multiple items at the specified position. More... | |
void | removeItems ([in] short nPos, [in] short nCount) |
removes a number of items at the specified position. More... | |
short | getItemCount () |
returns the number of items in the listbox. More... | |
string | getItem ([in] short nPos) |
returns the item at the specified position. More... | |
sequence< string > | getItems () |
returns all items of the list box. More... | |
short | getSelectedItemPos () |
returns the position of the currently selected item. More... | |
sequence< short > | getSelectedItemsPos () |
returns the positions of all currently selected items. More... | |
string | getSelectedItem () |
returns the currently selected item. More... | |
sequence< string > | getSelectedItems () |
returns all currently selected items. More... | |
void | selectItemPos ([in] short nPos, [in] boolean bSelect) |
selects/deselects the item at the specified position. More... | |
void | selectItemsPos ([in] sequence< short > aPositions, [in] boolean bSelect) |
selects/deselects multiple items at the specified positions. More... | |
void | selectItem ([in] string aItem, [in] boolean bSelect) |
selects/deselects the specified item. More... | |
boolean | isMutipleMode () |
returns TRUE if multiple items can be selected, FALSE if only one item can be selected. More... | |
void | setMultipleMode ([in] boolean bMulti) |
determines if only a single item or multiple items can be selected. More... | |
short | getDropDownLineCount () |
returns the number of visible lines in drop down mode. More... | |
void | setDropDownLineCount ([in] short nLines) |
sets the number of visible lines for drop down mode. More... | |
void | makeVisible ([in] short nEntry) |
makes the item at the specified position visible by scrolling. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
gives access to the items of a list box and makes it possible to register item and action event listeners.
void addActionListener | ( | [in] com::sun::star::awt::XActionListener | l | ) |
registers a listener for action events.
void addItem | ( | [in] string | aItem, |
[in] short | nPos | ||
) |
adds an item at the specified position.
void addItemListener | ( | [in] com::sun::star::awt::XItemListener | l | ) |
registers a listener for item events.
void addItems | ( | [in] sequence< string > | aItems, |
[in] short | nPos | ||
) |
adds multiple items at the specified position.
short getDropDownLineCount | ( | ) |
returns the number of visible lines in drop down mode.
string getItem | ( | [in] short | nPos | ) |
returns the item at the specified position.
short getItemCount | ( | ) |
returns the number of items in the listbox.
sequence<string> getItems | ( | ) |
returns all items of the list box.
string getSelectedItem | ( | ) |
returns the currently selected item.
When multiple items are selected, the first one is returned. When nothing is selected, an empty string is returned.
short getSelectedItemPos | ( | ) |
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.
sequence<string> getSelectedItems | ( | ) |
returns all currently selected items.
sequence<short> getSelectedItemsPos | ( | ) |
returns the positions of all currently selected items.
boolean isMutipleMode | ( | ) |
returns TRUE
if multiple items can be selected, FALSE
if only one item can be selected.
void makeVisible | ( | [in] short | nEntry | ) |
makes the item at the specified position visible by scrolling.
void removeActionListener | ( | [in] com::sun::star::awt::XActionListener | l | ) |
unregisters a listener for action events.
void removeItemListener | ( | [in] com::sun::star::awt::XItemListener | l | ) |
unregisters a listener for item events.
void removeItems | ( | [in] short | nPos, |
[in] short | nCount | ||
) |
removes a number of items at the specified position.
void selectItem | ( | [in] string | aItem, |
[in] boolean | bSelect | ||
) |
selects/deselects the specified item.
void selectItemPos | ( | [in] short | nPos, |
[in] boolean | bSelect | ||
) |
selects/deselects the item at the specified position.
void selectItemsPos | ( | [in] sequence< short > | aPositions, |
[in] boolean | bSelect | ||
) |
selects/deselects multiple items at the specified positions.
void setDropDownLineCount | ( | [in] short | nLines | ) |
sets the number of visible lines for drop down mode.
void setMultipleMode | ( | [in] boolean | bMulti | ) |
determines if only a single item or multiple items can be selected.