LibreOffice
LibreOffice 24.8 SDK API Reference
Loading...
Searching...
No Matches
XItemList.idl
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20
21module com { module sun { module star { module awt {
22
23interface XItemListListener;
24
25
28interface XItemList
29{
32 [attribute, readonly] long ItemCount;
33
50 [in] long Position,
51 [in] string ItemText,
52 [in] string ItemImageURL
53 )
55
69 [in] long Position,
70 [in] string ItemText
71 )
73
87 [in] long Position,
88 [in] string ItemImageURL
89 )
91
102 [in] long Position
103 )
105
109
123 [in] long Position,
124 [in] string ItemText
125 )
127
141 [in] long Position,
142 [in] string ItemImageURL
143 )
145
162 [in] long Position,
163 [in] string ItemText,
164 [in] string ItemImageURL
165 )
167
186 [in] long Position,
187 [in] any ItemData
188 )
190
201 [in] long Position
202 )
204
215 [in] long Position
216 )
218
228 ::com::sun::star::beans::Pair< string, string >
230 [in] long Position
231 )
233
245 [in] long Position
246 )
248
251 sequence< ::com::sun::star::beans::Pair< string, string > >
253
257
261};
262
263
264}; }; }; };
265
266
267/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
This exception is thrown to indicate that a container has been accessed with an illegal index.
Definition IndexOutOfBoundsException.idl:31
describes a listener for changes in an item list
Definition XItemListListener.idl:28
provides convenient access to the list of items in a list box
Definition XItemList.idl:29
void removeItemListListener([in] XItemListListener Listener)
revokes a listener which is notified about changes in the item list.
void removeAllItems()
removes all items from the list
void insertItemText([in] long Position, [in] string ItemText)
inserts an item which has only a text, but no image
string getItemText([in] long Position)
retrieves the text of an existing item
sequence< ::com::sun::star::beans::Pair< string, string > > getAllItems()
retrieves the texts and images of all items in the list
any getItemData([in] long Position)
retrieves the implementation dependent value associated with the given list item.
::com::sun::star::beans::Pair< string, string > getItemTextAndImage([in] long Position)
retrieves both the text and the image URL of an existing item
void setItemData([in] long Position, [in] any ItemData)
associates an implementation dependent value with the given list item.
void insertItem([in] long Position, [in] string ItemText, [in] string ItemImageURL)
inserts a new item into the list
void setItemText([in] long Position, [in] string ItemText)
sets a new text for an existing item
void insertItemImage([in] long Position, [in] string ItemImageURL)
inserts an item which has only an image, but no text
long ItemCount
is the number of items in the list
Definition XItemList.idl:32
void removeItem([in] long Position)
removes an item from the list
void setItemImage([in] long Position, [in] string ItemImageURL)
sets a new image for an existing item
string getItemImage([in] long Position)
retrieves the URL of the image of an existing item
void addItemListListener([in] XItemListListener Listener)
registers a listener which is notified about changes in the item list.
void setItemTextAndImage([in] long Position, [in] string ItemText, [in] string ItemImageURL)
sets both a new position and text for an existing item
Definition Ambiguous.idl:20