LibreOffice
LibreOffice 24.2 SDK API Reference
XPackage.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 
21 module com { module sun { module star { module deployment {
22 
28 interface XPackage
29 {
33 
37 
38 
44  com::sun::star::task::XAbortChannel createAbortChannel();
45 
66  long checkPrerequisites(
67  [in] com::sun::star::task::XAbortChannel xAbortChannel,
69  [in] boolean alreadyInstalled)
70  raises (DeploymentException,
74 
89  boolean checkDependencies(
91  raises (DeploymentException,
94 
95 
109  com::sun::star::beans::Optional<
110  com::sun::star::beans::Ambiguous<boolean> > isRegistered(
111  [in] com::sun::star::task::XAbortChannel xAbortChannel,
113  raises (DeploymentException,
116 
131  void registerPackage(
132  [in] boolean startup,
133  [in] com::sun::star::task::XAbortChannel xAbortChannel,
135  raises (DeploymentException,
140 
155  void revokePackage(
156  [in] boolean startup,
157  [in] com::sun::star::task::XAbortChannel xAbortChannel,
159  raises (DeploymentException,
163 
170  boolean isBundle();
171 
185  sequence<XPackage> getBundle(
186  [in] com::sun::star::task::XAbortChannel xAbortChannel,
188  raises (DeploymentException,
192 
198  string getName();
199 
208  com::sun::star::beans::Optional<string> getIdentifier();
209 
220  string getVersion()
221  raises (ExtensionRemovedException);
222 
228  string getURL();
229 
236  string getDisplayName()
237  raises (ExtensionRemovedException);
238 
244  string getDescription()
245  raises (ExtensionRemovedException);
246 
252  string getLicenseText()
253  raises (DeploymentException,
255 
265  sequence<string> getUpdateInformationURLs()
266  raises (ExtensionRemovedException);
276  ::com::sun::star::beans::StringPair getPublisherInfo()
277  raises (ExtensionRemovedException);
283  XPackageTypeInfo getPackageType();
284 
296  void exportTo( [in] string destFolderURL,
297  [in] string newTitle,
298  [in] long nameClashAction,
299  [in] com::sun::star::ucb::XCommandEnvironment xCmdEnv )
300  raises (
302  com::sun::star::ucb::CommandFailedException,
303  com::sun::star::ucb::CommandAbortedException,
304  com::sun::star::ucb::ContentCreationException);
305 
315  com::sun::star::graphic::XGraphic getIcon( [in] boolean highContrast )
316  raises (ExtensionRemovedException);
317 
320  string getRepositoryName();
321 
336  com::sun::star::beans::Optional<string> getRegistrationDataURL()
338 
344  boolean isRemoved();
345 
346 };
347 
348 }; }; }; };
349 
350 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Objects of this interface provide information about a package&#39;s type.
Definition: XPackageTypeInfo.idl:26
A DeploymentException reflects a deployment error.
Definition: DeploymentException.idl:27
allows to explicitly free resources and break cyclic references.
Definition: XComponent.idl:38
Definition: Ambiguous.idl:20
indicates that a function call with the given arguments is not supported because the extension was re...
Definition: ExtensionRemovedException.idl:31
defines the environment for a command.
Definition: XCommandEnvironment.idl:28
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument...
Definition: IllegalArgumentException.idl:25
broadcasts each modification made on the date data of the object which supports this interface...
Definition: XModifyBroadcaster.idl:31
This exception is thrown if an exception situation occurred during the processing of a command and an...
Definition: CommandFailedException.idl:34
Objects of this interface reflect a bound package and are issued by a PackageRegistryBackend.
Definition: XPackage.idl:28
This exception is thrown to indicate that a command was aborted.
Definition: CommandAbortedException.idl:29
Use this interface to abort a command asynchronously.
Definition: XAbortChannel.idl:26