LibreOffice
LibreOffice 6.2 SDK API Reference
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 #ifndef __com_sun_star_awt_XItemList_idl__
21 #define __com_sun_star_awt_XItemList_idl__
22 
25 
26 
27 module com { module sun { module star { module awt {
28 
29 interface XItemListListener;
30 
31 
34 interface XItemList
35 {
38  [attribute, readonly] long ItemCount;
39 
55  void insertItem(
56  [in] long Position,
57  [in] string ItemText,
58  [in] string ItemImageURL
59  )
61 
74  void insertItemText(
75  [in] long Position,
76  [in] string ItemText
77  )
79 
92  void insertItemImage(
93  [in] long Position,
94  [in] string ItemImageURL
95  )
97 
107  void removeItem(
108  [in] long Position
109  )
111 
114  void removeAllItems();
115 
128  void setItemText(
129  [in] long Position,
130  [in] string ItemText
131  )
133 
146  void setItemImage(
147  [in] long Position,
148  [in] string ItemImageURL
149  )
151 
167  void setItemTextAndImage(
168  [in] long Position,
169  [in] string ItemText,
170  [in] string ItemImageURL
171  )
173 
191  void setItemData(
192  [in] long Position,
193  [in] any ItemData
194  )
196 
206  string getItemText(
207  [in] long Position
208  )
210 
220  string getItemImage(
221  [in] long Position
222  )
224 
234  ::com::sun::star::beans::Pair< string, string >
235  getItemTextAndImage(
236  [in] long Position
237  )
239 
250  any getItemData(
251  [in] long Position
252  )
254 
257  sequence< ::com::sun::star::beans::Pair< string, string > >
258  getAllItems();
259 
262  void addItemListListener( [in] XItemListListener Listener );
263 
266  void removeItemListListener( [in] XItemListListener Listener );
267 };
268 
269 
270 }; }; }; };
271 
272 
273 #endif
274 
275 /* 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:34
Definition: Ambiguous.idl:22
long ItemCount
is the number of items in the list
Definition: XItemList.idl:38
describes a listener for changes in a item list
Definition: XItemListListener.idl:33
provides convenient access to the list of items in a list box
Definition: XItemList.idl:34