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: FilePicker.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_FilePicker_idl__
32 #define __com_sun_star_ui_dialogs_FilePicker_idl__
34 #ifndef __com_sun_star_lang_XComponent_idl__
35 #include
<com
/sun
/star
/lang
/XComponent.idl
>
38 #ifndef __com_sun_star_lang_XServiceInfo_idl__
39 #include
<com
/sun
/star
/lang
/XServiceInfo.idl
>
42 #ifndef __com_sun_star_lang_XTypeProvider_idl__
43 #include
<com
/sun
/star
/lang
/XTypeProvider.idl
>
46 #ifndef __com_sun_star_lang_XInitialization_idl__
47 #include
<com
/sun
/star
/lang
/XInitialization.idl
>
50 #ifndef __com_sun_star_util_XCancellable_idl__
51 #include
<com
/sun
/star
/util
/XCancellable.idl
>
54 //=============================================================================
56 module com
{ module sun
{ module star
{ module ui
{ module dialogs
{
58 //=============================================================================
60 //=============================================================================
63 It is <strong>NOT</strong> recommended to cache a reference to a file
64 picker instance. Due to restrictions by the underlying system there can
65 be specific limitations possible. To overcome these problems it'
66 s recommended to create a new instance on demand.
71 published
interface XFilePicker
;
72 published
interface XFilePickerNotifier
;
73 published
interface XFilePickerControlAccess
;
74 published
interface XFilterManager
;
75 published
interface XFilePreview
;
76 published
interface XFilterGroupManager
;
78 published service FilePicker
80 //-------------------------------------------------------------------------
81 /** Allows to associate a help URL with the file picker instance.
83 [optional, property
] string HelpURL
;
85 //-------------------------------------------------------------------------
86 /** Provides access to the basic FilePicker functionality.
88 interface XFilePicker
;
90 //-------------------------------------------------------------------------
91 /** Provides the ability to request notifications about changes.
93 interface XFilePickerNotifier
;
95 //-------------------------------------------------------------------------
96 /** Provides the ability to add different filter, query for the current
97 filters and set a current filter
99 interface XFilterManager
;
101 //-------------------------------------------------------------------------
102 /** Provides the ability to show a preview of a selected file
104 [optional] interface XFilePreview
;
106 //-------------------------------------------------------------------------
107 /** Provides the ability manage additional controls (checkboxes, listboxes etc.)
108 offered by an extended FilePicker, these controls extend the subset of
109 common controls that a FilePicker usually supports.
111 @see com::sun::star::ui::dialogs::CommonFilePickerElementIds
112 @see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
116 [optional] interface XFilePickerControlAccess
;
118 //-------------------------------------------------------------------------
119 /** An interface which allows manipulation of groups of filters
121 [optional] interface XFilterGroupManager
;
123 //-------------------------------------------------------------------------
124 /** Provides the ability to choose between different custom templates that
125 do extend the subset of common controls a FilePicker usually supports.
126 Implementers may omit this interface if the FileOpen
127 dialog doesn't support custom templates. In this case a createInstance
128 will create an ordinary FileOpen dialog with only the common FilePicker
130 The client has to provide one of the specified constants in
133 <p><strong>Notes for the implementation of a FileSave dialog:</strong>
134 The implementation of a FileSave dialog should automatically check
135 for existens of a file and issue a warning if a file with the same
136 name already exist.</p>
138 @see com::sun::star::ui::dialogs::TemplateDescription
140 [optional] interface com
::sun
::star
::lang
::XInitialization
;
142 //-------------------------------------------------------------------------
143 /** For canceling a running dialog instance.
144 <p>This may be usefull for automatic test tools for instance.</p>
146 [optional] interface com
::sun
::star
::util
::XCancellable
;
148 //-------------------------------------------------------------------------
149 /** For shutdown and listener support.
151 interface com
::sun
::star
::lang
::XComponent
;
153 //-------------------------------------------------------------------------
154 /** Service should always support this interface.
156 interface com
::sun
::star
::lang
::XServiceInfo
;
158 //-------------------------------------------------------------------------
159 /** Service should always support this interface.
161 interface com
::sun
::star
::lang
::XTypeProvider
;
164 //=============================================================================