1*b1cdbd2cSJim Jagielski/**************************************************************
2*b1cdbd2cSJim Jagielski *
3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
4*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
5*b1cdbd2cSJim Jagielski * distributed with this work for additional information
6*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
9*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
10*b1cdbd2cSJim Jagielski *
11*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
12*b1cdbd2cSJim Jagielski *
13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
18*b1cdbd2cSJim Jagielski * under the License.
19*b1cdbd2cSJim Jagielski *
20*b1cdbd2cSJim Jagielski *************************************************************/
21*b1cdbd2cSJim Jagielski
22*b1cdbd2cSJim Jagielski
23*b1cdbd2cSJim Jagielski
24*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_ui_dialogs_FilePicker_idl__
25*b1cdbd2cSJim Jagielski#define __com_sun_star_ui_dialogs_FilePicker_idl__
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_lang_XComponent_idl__
28*b1cdbd2cSJim Jagielski#include <com/sun/star/lang/XComponent.idl>
29*b1cdbd2cSJim Jagielski#endif
30*b1cdbd2cSJim Jagielski
31*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_lang_XServiceInfo_idl__
32*b1cdbd2cSJim Jagielski#include <com/sun/star/lang/XServiceInfo.idl>
33*b1cdbd2cSJim Jagielski#endif
34*b1cdbd2cSJim Jagielski
35*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_lang_XTypeProvider_idl__
36*b1cdbd2cSJim Jagielski#include <com/sun/star/lang/XTypeProvider.idl>
37*b1cdbd2cSJim Jagielski#endif
38*b1cdbd2cSJim Jagielski
39*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_lang_XInitialization_idl__
40*b1cdbd2cSJim Jagielski#include <com/sun/star/lang/XInitialization.idl>
41*b1cdbd2cSJim Jagielski#endif
42*b1cdbd2cSJim Jagielski
43*b1cdbd2cSJim Jagielski#ifndef __com_sun_star_util_XCancellable_idl__
44*b1cdbd2cSJim Jagielski#include <com/sun/star/util/XCancellable.idl>
45*b1cdbd2cSJim Jagielski#endif
46*b1cdbd2cSJim Jagielski
47*b1cdbd2cSJim Jagielski//=============================================================================
48*b1cdbd2cSJim Jagielski
49*b1cdbd2cSJim Jagielskimodule com { module sun { module star { module ui { module dialogs {
50*b1cdbd2cSJim Jagielski
51*b1cdbd2cSJim Jagielski//=============================================================================
52*b1cdbd2cSJim Jagielski
53*b1cdbd2cSJim Jagielski//=============================================================================
54*b1cdbd2cSJim Jagielski/** A FilePicker.
55*b1cdbd2cSJim Jagielski
56*b1cdbd2cSJim Jagielski    It is <strong>NOT</strong> recommended to cache a reference to a file
57*b1cdbd2cSJim Jagielski    picker instance. Due to restrictions by the underlying system there can
58*b1cdbd2cSJim Jagielski    be specific limitations possible. To overcome these problems it'
59*b1cdbd2cSJim Jagielski    s recommended to create a new instance on demand.
60*b1cdbd2cSJim Jagielski
61*b1cdbd2cSJim Jagielski	@see XFilePicker
62*b1cdbd2cSJim Jagielski*/
63*b1cdbd2cSJim Jagielski
64*b1cdbd2cSJim Jagielski published interface XFilePicker;
65*b1cdbd2cSJim Jagielski published interface XFilePickerNotifier;
66*b1cdbd2cSJim Jagielski published interface XFilePickerControlAccess;
67*b1cdbd2cSJim Jagielski published interface XFilterManager;
68*b1cdbd2cSJim Jagielski published interface XFilePreview;
69*b1cdbd2cSJim Jagielski published interface XFilterGroupManager;
70*b1cdbd2cSJim Jagielski
71*b1cdbd2cSJim Jagielskipublished service FilePicker
72*b1cdbd2cSJim Jagielski{
73*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
74*b1cdbd2cSJim Jagielski	/** Allows to associate a help URL with the file picker instance.
75*b1cdbd2cSJim Jagielski	*/
76*b1cdbd2cSJim Jagielski	[optional, property] string HelpURL;
77*b1cdbd2cSJim Jagielski
78*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
79*b1cdbd2cSJim Jagielski	/** Provides access to the basic FilePicker functionality.
80*b1cdbd2cSJim Jagielski	*/
81*b1cdbd2cSJim Jagielski	interface XFilePicker;
82*b1cdbd2cSJim Jagielski
83*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
84*b1cdbd2cSJim Jagielski	/** Provides the ability to request notifications about changes.
85*b1cdbd2cSJim Jagielski	*/
86*b1cdbd2cSJim Jagielski	interface XFilePickerNotifier;
87*b1cdbd2cSJim Jagielski
88*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
89*b1cdbd2cSJim Jagielski	/** Provides the ability to add different filter, query for the current
90*b1cdbd2cSJim Jagielski		filters and set a current filter
91*b1cdbd2cSJim Jagielski	*/
92*b1cdbd2cSJim Jagielski	interface XFilterManager;
93*b1cdbd2cSJim Jagielski
94*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
95*b1cdbd2cSJim Jagielski	/** Provides the ability to show a preview of a selected file
96*b1cdbd2cSJim Jagielski	*/
97*b1cdbd2cSJim Jagielski	[optional] interface XFilePreview;
98*b1cdbd2cSJim Jagielski
99*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
100*b1cdbd2cSJim Jagielski	/** Provides the ability manage additional controls (checkboxes, listboxes etc.)
101*b1cdbd2cSJim Jagielski		offered by an extended FilePicker, these controls extend the subset of
102*b1cdbd2cSJim Jagielski		common controls that a FilePicker usually supports.
103*b1cdbd2cSJim Jagielski
104*b1cdbd2cSJim Jagielski		@see com::sun::star::ui::dialogs::CommonFilePickerElementIds
105*b1cdbd2cSJim Jagielski		@see com::sun::star::ui::dialogs::ExtendedFilePickerElementIds
106*b1cdbd2cSJim Jagielski
107*b1cdbd2cSJim Jagielski		@deprecated
108*b1cdbd2cSJim Jagielski	*/
109*b1cdbd2cSJim Jagielski	[optional] interface XFilePickerControlAccess;
110*b1cdbd2cSJim Jagielski
111*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
112*b1cdbd2cSJim Jagielski	/** An interface which allows manipulation of groups of filters
113*b1cdbd2cSJim Jagielski	*/
114*b1cdbd2cSJim Jagielski	[optional] interface XFilterGroupManager;
115*b1cdbd2cSJim Jagielski
116*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
117*b1cdbd2cSJim Jagielski	/** Provides the ability to choose between different custom templates that
118*b1cdbd2cSJim Jagielski		do extend the subset of common controls a FilePicker usually supports.
119*b1cdbd2cSJim Jagielski		Implementers may omit this interface if the FileOpen
120*b1cdbd2cSJim Jagielski		dialog doesn't support custom templates. In this case a createInstance
121*b1cdbd2cSJim Jagielski		will create an ordinary FileOpen dialog with only the common FilePicker
122*b1cdbd2cSJim Jagielski		elements.
123*b1cdbd2cSJim Jagielski		The client has to provide one of the specified constants in
124*b1cdbd2cSJim Jagielski		TemplateDescription.
125*b1cdbd2cSJim Jagielski		<br/><br/>
126*b1cdbd2cSJim Jagielski		<p><strong>Notes for the implementation of a FileSave dialog:</strong>
127*b1cdbd2cSJim Jagielski		The implementation of a FileSave dialog should automatically check
128*b1cdbd2cSJim Jagielski		for existens of a file and issue a warning if a file with the same
129*b1cdbd2cSJim Jagielski		name already exist.</p>
130*b1cdbd2cSJim Jagielski
131*b1cdbd2cSJim Jagielski		@see com::sun::star::ui::dialogs::TemplateDescription
132*b1cdbd2cSJim Jagielski	*/
133*b1cdbd2cSJim Jagielski	[optional] interface com::sun::star::lang::XInitialization;
134*b1cdbd2cSJim Jagielski
135*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
136*b1cdbd2cSJim Jagielski	/** For canceling a running dialog instance.
137*b1cdbd2cSJim Jagielski		<p>This may be usefull for automatic test tools for instance.</p>
138*b1cdbd2cSJim Jagielski	*/
139*b1cdbd2cSJim Jagielski	[optional] interface com::sun::star::util::XCancellable;
140*b1cdbd2cSJim Jagielski
141*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
142*b1cdbd2cSJim Jagielski	/** For shutdown and listener support.
143*b1cdbd2cSJim Jagielski	*/
144*b1cdbd2cSJim Jagielski	interface com::sun::star::lang::XComponent;
145*b1cdbd2cSJim Jagielski
146*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
147*b1cdbd2cSJim Jagielski	/** Service should always support this interface.
148*b1cdbd2cSJim Jagielski	*/
149*b1cdbd2cSJim Jagielski	interface com::sun::star::lang::XServiceInfo;
150*b1cdbd2cSJim Jagielski
151*b1cdbd2cSJim Jagielski	//-------------------------------------------------------------------------
152*b1cdbd2cSJim Jagielski	/** Service should always support this interface.
153*b1cdbd2cSJim Jagielski	*/
154*b1cdbd2cSJim Jagielski	interface com::sun::star::lang::XTypeProvider;
155*b1cdbd2cSJim Jagielski};
156*b1cdbd2cSJim Jagielski
157*b1cdbd2cSJim Jagielski//=============================================================================
158*b1cdbd2cSJim Jagielski
159*b1cdbd2cSJim Jagielski}; }; }; }; };
160*b1cdbd2cSJim Jagielski
161*b1cdbd2cSJim Jagielski#endif
162