1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XFilePickerControlAccess.idl,v $
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_dialogs_XFilePickerControlAccess_idl__
32 #define __com_sun_star_ui_dialogs_XFilePickerControlAccess_idl__
34 #ifndef __com_sun_star_ui_dialogs_XFilePicker_idl__
35 #include
<com
/sun
/star
/ui
/dialogs
/XFilePicker.idl
>
38 //=============================================================================
40 module com
{ module sun
{ module star
{ module ui
{ module dialogs
{
42 //=============================================================================
43 /** Provides access to the controls of a FilePicker.
45 <p> A FilePicker may contain additional elements according to the needs
46 of the different applications. These additional elements can be
47 addressed by this interface.</p>
49 @see com::sun::star::ui::dialogs::FilePicker
51 published
interface XFilePickerControlAccess
: com
::sun
::star
::ui
::dialogs
::XFilePicker
54 //-------------------------------------------------------------------------
55 /** Set the value of an additional element within a FilePicker.
58 Identifies the element which value is to be set.
61 Specifies an action to perform with the given value.
62 aControlAction has to be one of the values defined in <type>ControlActions</type>.
63 Not all of the values are valid for all controls.
64 To add a new filter to the FilePicker use the interface XFilterManager, but
65 optionally an implementation may also support adding new filter using this
69 The value to set. For checkboxes aValue should be a boolean value that
70 should be <TRUE/> if the checkbox should be checked and <FALSE/> otherwise.
72 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
73 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
74 @see com::sun::star::ui::dialogs::ControlActions
76 void setValue
( [in] short aControlId
, [in] short aControlAction
, [in] any aValue
);
78 //-------------------------------------------------------------------------
79 /** Get the value of an additional element within a FilePicker
82 Identifies the element for which value is requested.
85 Specifies which value to retrieve.
86 aControlAction has to be one of the values defined in <type>ControlActions</type>.
87 Not all of the values are valid for all controls.
90 The value of the specified element. If the specified control
91 is a checkbox the returned value is a boolean that is <TRUE/>
92 if the checkbox is checked <FALSE/> otherwise.
93 If the specified element doesn't exist or the specified element
94 doesn't support the specidfied control action an empty any will be
97 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
98 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
99 @see com::sun::star::ui::dialogs::ControlActions
101 any getValue
( [in] short aControlId
, [in] short aControlAction
);
103 //-------------------------------------------------------------------------
104 /** Set the label of the specified element. If the specified element
105 doesn't support setting a label, this method has no effect.
108 Identifies the element for which the label should be set.
113 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
114 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
116 void setLabel
( [in] short aControlId
, [in] string aLabel
);
118 //-------------------------------------------------------------------------
119 /** Returns the label of the specified element.
122 Identifies the element for which the label should be returned.
125 The label of the specified element or an empty string if
126 the specified element has no or supports no label or the
127 specified element doesn't exist.
129 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
130 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
132 string getLabel
( [in] short aControlId
);
134 //-------------------------------------------------------------------------
135 /** Enables or disables a control.
138 Identifies the control.
141 <p>If <TRUE/> the specified control will be enabled.</p>
142 <p>If <FALSE/> the specified control will be disabled.</p>
144 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
145 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
147 void enableControl
( [in] short aControlId
, [in] boolean bEnable
);
150 //=============================================================================