Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / ui / dialogs / ControlActions.idl
blob5ecc6561f5458a98055f18b4b9bcccc236c9527d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ControlActions.idl,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef __com_sun_star_ui_dialog_ControlActions_idl__
32 #define __com_sun_star_ui_dialog_ControlActions_idl__
35 module com { module sun { module star { module ui { module dialogs {
37 //=============================================================================
38 /** Control actions for common and extended controls of a FilePicker.
40 @see com::sun::star::ui::dialogs::XFilePickerControlAccess
41 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
42 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
45 published constants ControlActions
47 //---------------------------------------------------------------------
48 /** Adds an item to the content of the listbox. The given item has to
49 be a string.
51 const short ADD_ITEM = 1;
53 //---------------------------------------------------------------------
54 /** Adds a sequence of strings to the content of the listbox.
56 const short ADD_ITEMS = 2;
58 //---------------------------------------------------------------------
59 /** Removes an item from a listbox. The given value has to be a
60 position. If the position is invalid an exception will be thrown.
61 The index of the first position is 0.
62 The value should be a sal_Int32.
64 const short DELETE_ITEM = 3;
66 //---------------------------------------------------------------------
67 /** Removes all items from the listbox.
69 const short DELETE_ITEMS = 4;
71 //---------------------------------------------------------------------
72 /** Selects an item in a listbox. The given value has to be a position.
73 The index of the first position is 0. A value of -1 removes the
74 selection.
75 If the given position is invalid an exception will be thrown.
76 The value should be a sal_Int32.
78 const short SET_SELECT_ITEM = 5;
80 //---------------------------------------------------------------------
81 /** Returns all items of the listbox as a sequence of strings.
83 const short GET_ITEMS = 6;
85 //---------------------------------------------------------------------
86 /** Returns the currently selected item. The returned item is an empty
87 string if the listbox is empty or no item is selected.
89 const short GET_SELECTED_ITEM = 7;
91 //---------------------------------------------------------------------
92 /** Returns the zero based index of the currently selected item.
93 If the listbox is empty or there is no item selected -1 will be
94 returned. The returned value is a sal_Int32.
97 const short GET_SELECTED_ITEM_INDEX = 8;
99 //---------------------------------------------------------------------
100 /** Sets the help URL of a control.
102 const short SET_HELP_URL = 100;
104 //---------------------------------------------------------------------
105 /** Retrieves the help URL of a control.
107 const short GET_HELP_URL = 101;
110 //=============================================================================
112 }; }; }; }; };
114 #endif