ooodev.adapter.script.library_container_export_partial module
- class ooodev.adapter.script.library_container_export_partial.LibraryContainerExportPartial(component, interface=com.sun.star.script.XLibraryContainerExport)[source]
Bases:
object
Partial class for XLibraryContainerExport.
- Parameters:
component (XLibraryContainerExport) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.script.XLibraryContainerExport)[source]
Constructor
- Parameters:
component (XLibraryContainerExport) – UNO Component that implements
com.sun.star.script.XLibraryContainerExport
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XLibraryContainerExport
.
- Return type:
None
- export_library(name, url, handler)[source]
Exports a library specified by Name to the location specified by the passed URL string.
An interaction handler can be passed to be used for internal ucb operations. Exceptions not processed by this handler will be passed as com.sun.star.uno.Exception. If this parameter is null this applies to all exceptions thrown by ucb.
If a library with the this name doesn’t exist a com.sun.star.container.NoSuchElementException is thrown.
- Raises:
com.sun.star.uno.Exception –
Exception
com.sun.star.container.NoSuchElementException –
NoSuchElementException
- Return type:
None
- Parameters:
name (str) –
url (str) –
handler (com.sun.star.task.XInteractionHandler) –