ooodev.adapter.script.persistent_library_container_partial module

class ooodev.adapter.script.persistent_library_container_partial.PersistentLibraryContainerPartial(component, interface=com.sun.star.script.XPersistentLibraryContainer)[source]

Bases: ModifiablePartial, LibraryContainer2Partial

Partial class for XPersistentLibraryContainer.

Parameters:
  • component (XPersistentLibraryContainer) –

  • interface (UnoInterface | None) –

__init__(component, interface=com.sun.star.script.XPersistentLibraryContainer)[source]

Constructor

Parameters:
  • component (XPersistentLibraryContainer) – UNO Component that implements com.sun.star.script.XPersistentLibraryContainer interface.

  • interface (UnoInterface, optional) – The interface to be validated. Defaults to XPersistentLibraryContainer.

Return type:

None

store_libraries()[source]

Stores the libraries to the current location.

Raises:

com.sun.star.lang.WrappedTargetExceptionWrappedTargetException

Return type:

None

property container_location_name: str

Denotes the name of the sub location where the container elements are actually stored.

Return type:

str

property root_location: Any

Denotes the root location associated with the container.

The type of this location - it might be a folder in a file system, a storage, or anything else - is not specified here, but in derived interfaces or services implementing XPersistentLibraryContainer.

All operations of the library container take place in a location below the root location, the so-called container location, whose name is exposed as container_location_name.

Return type:

Any