LibreOffice
LibreOffice 24.2 SDK API Reference
|
provides access to the application-wide registered databases. More...
import"XDatabaseRegistrations.idl";
Public Member Functions | |
boolean | hasRegisteredDatabase ([in] string Name) raises ( ::com::sun::star::lang::IllegalArgumentException ) |
determines whether a database is registered under the given name. More... | |
sequence< string > | getRegistrationNames () |
returns the names of all registered databases More... | |
string | getDatabaseLocation ([in] string Name) raises ( ::com::sun::star::lang::IllegalArgumentException , ::com::sun::star::container::NoSuchElementException ) |
returns the location of the database registered under the given name More... | |
void | registerDatabaseLocation ([in] string Name, [in] string Location) raises ( ::com::sun::star::lang::IllegalArgumentException , ::com::sun::star::container::ElementExistException ) |
registers a database, given by location, under a given name More... | |
void | revokeDatabaseLocation ([in] string Name) raises ( ::com::sun::star::lang::IllegalArgumentException , ::com::sun::star::container::NoSuchElementException , ::com::sun::star::lang::IllegalAccessException ) |
revokes the registration of a database, given by name More... | |
void | changeDatabaseLocation ([in] string Name, [in] string NewLocation) raises ( ::com::sun::star::lang::IllegalArgumentException , ::com::sun::star::container::NoSuchElementException , ::com::sun::star::lang::IllegalAccessException ) |
changes the location of a given database registration More... | |
boolean | isDatabaseRegistrationReadOnly ([in] string Name) raises ( ::com::sun::star::lang::IllegalArgumentException , ::com::sun::star::container::NoSuchElementException ) |
determines whether the registration data for a database given by name is read-only. More... | |
void | addDatabaseRegistrationsListener ([in] XDatabaseRegistrationsListener Listener) |
registers a listener which is notified of changes in the registered databases More... | |
void | removeDatabaseRegistrationsListener ([in] XDatabaseRegistrationsListener Listener) |
revokes a previously registered listener More... | |
provides access to the application-wide registered databases.
This interface provides a mere wrapper around the respective configuration data, this way hiding the concrete configuration structure from its clients. You should, if possible at all, use this interface, instead of modifying or querying the configuration data directly.
void addDatabaseRegistrationsListener | ( | [in] XDatabaseRegistrationsListener | Listener | ) |
registers a listener which is notified of changes in the registered databases
void changeDatabaseLocation | ( | [in] string | Name, |
[in] string | NewLocation | ||
) | |||
raises | ( | ::com::sun::star::lang::IllegalArgumentException , | |
::com::sun::star::container::NoSuchElementException , | |||
::com::sun::star::lang::IllegalAccessException | |||
) |
changes the location of a given database registration
com::sun::star::lang::IllegalArgumentException | if the given name is empty, or the given location is invalid. |
com::sun::star::container::NoSuchElementException | if there is no database registered under this name |
com::sun::star::lang::IllegalAccessException | if the registration data for this database is read-only |
string getDatabaseLocation | ( | [in] string | Name | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException , | |||
::com::sun::star::container::NoSuchElementException | |||||
) |
returns the location of the database registered under the given name
com::sun::star::lang::IllegalArgumentException | if the given name is empty |
com::sun::star::container::NoSuchElementException | if there is no database registered under this name |
sequence< string > getRegistrationNames | ( | ) |
returns the names of all registered databases
boolean hasRegisteredDatabase | ( | [in] string | Name | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException | |||
) |
determines whether a database is registered under the given name.
com::sun::star::lang::IllegalArgumentException | if the given name is empty |
boolean isDatabaseRegistrationReadOnly | ( | [in] string | Name | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException , | |||
::com::sun::star::container::NoSuchElementException | |||||
) |
determines whether the registration data for a database given by name is read-only.
In this case, attempts to revoke this registration will fail.
com::sun::star::lang::IllegalArgumentException | if the given name is empty |
com::sun::star::container::NoSuchElementException | if there is no database registered under this name |
void registerDatabaseLocation | ( | [in] string | Name, |
[in] string | Location | ||
) | |||
raises | ( | ::com::sun::star::lang::IllegalArgumentException , | |
::com::sun::star::container::ElementExistException | |||
) |
registers a database, given by location, under a given name
com::sun::star::lang::IllegalArgumentException | if the given name is empty, or the given location is invalid. |
com::sun::star::container::ElementExistException | if there already is a databases registered under the given name. |
void removeDatabaseRegistrationsListener | ( | [in] XDatabaseRegistrationsListener | Listener | ) |
revokes a previously registered listener
void revokeDatabaseLocation | ( | [in] string | Name | ) | |
raises | ( | ::com::sun::star::lang::IllegalArgumentException , | |||
::com::sun::star::container::NoSuchElementException , | |||||
::com::sun::star::lang::IllegalAccessException | |||||
) |
revokes the registration of a database, given by name
com::sun::star::lang::IllegalArgumentException | if the given name is empty |
com::sun::star::container::NoSuchElementException | if there is no database registered under this name |
com::sun::star::lang::IllegalAccessException | if the registration data for this database is read-only |