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_dialogs_TemplateDescription_idl__
25#define __com_sun_star_ui_dialogs_TemplateDescription_idl__
26
27
28module com { module sun { module star { module ui { module dialogs {
29
30//=============================================================================
31/**	The implementation of a FilePicker service may support the usage of
32	different templates. The following constants define the currently
33	specified templates.
34
35	@see com::sun::star::ui::dialogs::FilePicker
36 */
37
38published constants TemplateDescription
39{
40	//---------------------------------------------------------------------
41	/** A FileOpen dialog without any additional controls.
42	*/
43	const short FILEOPEN_SIMPLE                                = 0;
44
45	//---------------------------------------------------------------------
46	/** A FileSave dialog without any additional controls.
47	*/
48	const short FILESAVE_SIMPLE                                = 1;
49
50	//---------------------------------------------------------------------
51	/** A FileSave dialog with additional controls.
52		<ul>
53			<li>A checkbox "Auto Extension"</li>
54			<li>A checkbox "Password"</li>
55		</ul>
56	*/
57	const short FILESAVE_AUTOEXTENSION_PASSWORD                = 2;
58
59	//---------------------------------------------------------------------
60	/** A FileSave dialog with additional controls.
61		<ul>
62			<li>A checkbox "Auto Extension"</li>
63			<li>A checkbox "Password"</li>
64			<li>A checkbox "Filter Options"</li>
65		</ul>
66	*/
67	const short FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS  = 3;
68
69	//---------------------------------------------------------------------
70	/** A FileSave dialog with additional controls.
71		<ul>
72			<li>A checkbox "Auto Extension"</li>
73			<li>A checkbox "Selection"</li>
74		</ul>
75	*/
76	const short FILESAVE_AUTOEXTENSION_SELECTION               = 4;
77
78	//---------------------------------------------------------------------
79	/** A FileSave dialog with additional controls.
80		<ul>
81			<li>A checkbox "Auto Extension"</li>
82			<li>A listbox "Template" for selecting different templates</li>
83		</ul>
84	*/
85	const short FILESAVE_AUTOEXTENSION_TEMPLATE                = 5;
86
87	//---------------------------------------------------------------------
88	/** A FileOpen dialog with additional controls.
89		<ul>
90			<li>A checkbox "Insert as link"
91			<li>A checkbox "Show Preview"
92			<li>A listbox  "Image Template" for inserting an image with different styles.</li>
93			<li>A window for displaying a file preview</li>
94		</ul>
95	*/
96	const short FILEOPEN_LINK_PREVIEW_IMAGE_TEMPLATE           = 6;
97
98	//---------------------------------------------------------------------
99	/** A FileOpen dialog with additional controls.
100		<ul>
101			<li>A push button "Play"</li>
102		</ul>
103	*/
104	const short FILEOPEN_PLAY                                  = 7;
105
106	//---------------------------------------------------------------------
107	/** A FileOpen dialog with additional controls.
108		<ul>
109			<li>A checkbox "Read only"</li>
110			<li>A listbox "Version" for selecting a document version</li>
111		<ul>
112	*/
113	const short FILEOPEN_READONLY_VERSION                      = 8;
114
115	//---------------------------------------------------------------------
116	/** A FileOpen dialog with additional controls.
117		<ul>
118			<li>A checkbox "Insert as link"</li>
119			<li>A checkbox "Show Preview"</li>
120			<li>A window for displaying a file preview</li>
121		</ul>
122	*/
123	const short FILEOPEN_LINK_PREVIEW				           = 9;
124
125	//---------------------------------------------------------------------
126	/** A FileSave dialog with additional controls.
127		<ul>
128			<li>A checkbox "Auto Extension"</li>
129		</ul>
130	*/
131	const short FILESAVE_AUTOEXTENSION			               = 10;
132
133};
134
135//=============================================================================
136
137}; }; }; }; };
138
139#endif
140