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#if ! defined INCLUDED_com_sun_star_deployment_ui_PackageManagerDialog_idl
25#define INCLUDED_com_sun_star_deployment_ui_PackageManagerDialog_idl
26
27#include <com/sun/star/ui/dialogs/XAsynchronousExecutableDialog.idl>
28#include <com/sun/star/awt/XWindow.idl>
29
30
31module com { module sun { module star { module deployment { module ui {
32
33/** The <type>PackageManagerDialog</type> is used to visually manage installed
34    packages of the user and shared installation as well as currently open
35    documents.
36
37    @since OOo 2.0
38*/
39service PackageManagerDialog : com::sun::star::ui::dialogs::XAsynchronousExecutableDialog
40{
41    /** Create a default GUI.
42     */
43    createDefault();
44
45    /** Create a GUI using the specific parent window and focus on the
46        given context.
47
48        @param xParent
49               parent window
50        @param focussedContext
51               context to be focussed
52    */
53    create( [in] com::sun::star::awt::XWindow xParent,
54            [in] string focussedContext );
55
56    /** Create a GUI and pass the URL of the extension which shall be installed right away.
57        This constructor is intended for the case when unopkg is run as result of
58        clicking an extension in a file browser, etc. The extensions will always be installed
59        for the current user.
60
61        @param extensionURL
62            URL of extension
63    */
64     createAndInstall( [in] string extensionURL);
65
66};
67
68}; }; }; }; };
69
70#endif
71