1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_ui_dialog_ListboxControlActions_idl__
25#define __com_sun_star_ui_dialog_ListboxControlActions_idl__
26
27
28module com { module sun { module star { module ui { module dialogs {
29
30//=============================================================================
31/** These constants are deprecated and should not be used anymore. They're superseeded
32	by <type>ControlActions</type>.
33	@deprecated
34 */
35
36published constants ListboxControlActions
37{
38	//---------------------------------------------------------------------
39	/** Adds an item to the content of the listbox. The given item has to
40		be a string.
41	 */
42	const short ADD_ITEM        = 1;
43
44	//---------------------------------------------------------------------
45	/** Adds a sequence of strings to the content of the listbox.
46	 */
47	const short ADD_ITEMS	    = 2;
48
49	//---------------------------------------------------------------------
50	/** Removes an item from a listbox. The given value has to be a
51		position. If the position is invalid an exception will be thrown.
52		The index of the first position is 0.
53		The value should be a sal_Int32.
54	 */
55	const short DELETE_ITEM     = 3;
56
57	//---------------------------------------------------------------------
58	/** Removes all items from the listbox.
59	*/
60	const short DELETE_ITEMS    = 4;
61
62	//---------------------------------------------------------------------
63	/** Selects an item in a listbox. The given value has to be a position.
64		The index of the first position is 0. A value of -1 removes the
65		selection.
66		If the given position is invalid an exception will be thrown.
67		The value should be a sal_Int32.
68	 */
69	const short SET_SELECT_ITEM = 5;
70
71	//---------------------------------------------------------------------
72	/** Returns all items of the listbox as a sequence of strings.
73	*/
74	const short GET_ITEMS       = 6;
75
76	//---------------------------------------------------------------------
77	/** Returns the currently selected item. The returned item is an empty
78		string if the listbox is empty or no item is selected.
79	 */
80	const short GET_SELECTED_ITEM = 7;
81};
82
83//=============================================================================
84
85}; }; }; }; };
86
87#endif
88