LibreOffice
LibreOffice 24.2 SDK API Reference
|
makes structural information (except regarding tree structures) of a single registry key accessible. More...
import"XRegistryKey.idl";
Public Member Functions | |
boolean | isReadOnly () raises ( com::sun::star::registry::InvalidRegistryException ) |
checks if the key can be overwritten. More... | |
boolean | isValid () |
checks if the key points to an open valid key in the data-source. More... | |
com::sun::star::registry::RegistryKeyType | getKeyType ([in] string rKeyName) raises ( com::sun::star::registry::InvalidRegistryException ) |
com::sun::star::registry::RegistryValueType | getValueType () raises ( com::sun::star::registry::InvalidRegistryException ) |
long | getLongValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setLongValue ([in] long value) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets a long value to the key. More... | |
sequence< long > | getLongListValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setLongListValue ([in] sequence< long > seqValue) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets a long list value to the key. More... | |
string | getAsciiValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setAsciiValue ([in] string value) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets an ASCII string value to the key. More... | |
sequence< string > | getAsciiListValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setAsciiListValue ([in] sequence< string > seqValue) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets an ASCII string list value to the key. More... | |
string | getStringValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setStringValue ([in] string value) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets a unicode string value to the key. More... | |
sequence< string > | getStringListValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setStringListValue ([in] sequence< string > seqValue) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets a unicode string value to the key. More... | |
sequence< byte > | getBinaryValue () raises ( com::sun::star::registry::InvalidRegistryException, com::sun::star::registry::InvalidValueException ) |
void | setBinaryValue ([in] sequence< byte > value) raises ( com::sun::star::registry::InvalidRegistryException ) |
sets a binary value to the key. More... | |
com::sun::star::registry::XRegistryKey | openKey ([in] string aKeyName) raises ( com::sun::star::registry::InvalidRegistryException ) |
opens a sub key of the key. More... | |
com::sun::star::registry::XRegistryKey | createKey ([in] string aKeyName) raises ( com::sun::star::registry::InvalidRegistryException ) |
creates a new key in the registry. More... | |
void | closeKey () raises ( com::sun::star::registry::InvalidRegistryException ) |
closes a key in the registry. More... | |
void | deleteKey ([in] string rKeyName) raises ( com::sun::star::registry::InvalidRegistryException ) |
deletes a key from the registry. More... | |
sequence< com::sun::star::registry::XRegistryKey > | openKeys () raises ( com::sun::star::registry::InvalidRegistryException ) |
opens all subkeys of the key. More... | |
sequence< string > | getKeyNames () raises ( com::sun::star::registry::InvalidRegistryException ) |
boolean | createLink ([in] string aLinkName, [in] string aLinkTarget) raises ( com::sun::star::registry::InvalidRegistryException ) |
creates a new link in the registry. More... | |
void | deleteLink ([in] string rLinkName) raises ( com::sun::star::registry::InvalidRegistryException ) |
deletes a link from the registry. More... | |
string | getLinkTarget ([in] string rLinkName) raises ( com::sun::star::registry::InvalidRegistryException ) |
string | getResolvedName ([in] string aKeyName) raises ( com::sun::star::registry::InvalidRegistryException ) |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
Public Attributes | |
string | KeyName |
This is the key of the entry relative to its parent. More... | |
makes structural information (except regarding tree structures) of a single registry key accessible.
This is the main interface for registry keys.
void closeKey | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException | ||
) |
closes a key in the registry.
InvalidRegistryException | if the registry is not open. |
com::sun::star::registry::XRegistryKey createKey | ( | [in] string | aKeyName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
creates a new key in the registry.
If the key already exists, the function will open the key.
aKeyName | specifies the relative path from the current key to the key which will be created. |
InvalidRegistryException | if the registry is not open, the registry is readonly or if the key exists and is of type LINK. |
boolean createLink | ( | [in] string | aLinkName, |
[in] string | aLinkTarget | ||
) | |||
raises | ( | com::sun::star::registry::InvalidRegistryException | |
) |
creates a new link in the registry.
TRUE
if the link was created. If the link already exists or the link target does not exist, the function returns FALSE
.aLinkName | specifies the relative path from the current key to the link which will be created. |
aLinkTarget | specifies the full path of the key which will be referenced by the link. |
InvalidRegistryException | if the registry is not open or the registry is readonly. |
void deleteKey | ( | [in] string | rKeyName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
deletes a key from the registry.
rKeyName | specifies the relative path from the current key to the key which will be deleted. |
InvalidRegistryException | if the registry is not open, the registry is readonly, the key does not exists or if the key is of type LINK. |
void deleteLink | ( | [in] string | rLinkName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
deletes a link from the registry.
rLinkName | specifies the relative path from the current key to the link which will be deleted. |
InvalidRegistryException | if the registry is not open, the registry is readonly, or if the link does not exist. |
sequence<string> getAsciiListValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type ascii list. |
string getAsciiValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type ascii. |
sequence<byte> getBinaryValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type binary. |
sequence<string> getKeyNames | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException | ||
) |
InvalidRegistryException | if the registry is not open. |
com::sun::star::registry::RegistryKeyType getKeyType | ( | [in] string | rKeyName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
rKeyName | specifies the relative path from the current key to the key of the type which will be returned. |
InvalidRegistryException | if the registry is not open. |
string getLinkTarget | ( | [in] string | rLinkName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
rLinkName | specifies the relative path from the current key to the link which target will be returned. |
InvalidRegistryException | if the registry is not open or the link does not exists. |
sequence<long> getLongListValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type long list. |
long getLongValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the value is not of type long. |
string getResolvedName | ( | [in] string | aKeyName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
aKeyName | specifies a relative path from the current key which will be resolved from all links. |
InvalidRegistryException | if the registry is not open or a recursion was detected. |
sequence<string> getStringListValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type string list. |
string getStringValue | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException, | ||
com::sun::star::registry::InvalidValueException | ||||
) |
InvalidRegistryException | if the registry is not open. |
InvalidValueException | if the actual value is not of type string. |
com::sun::star::registry::RegistryValueType getValueType | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException | ||
) |
InvalidRegistryException | if the registry is not open. |
boolean isReadOnly | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException | ||
) |
checks if the key can be overwritten.
InvalidRegistryException | if the registry is not open. |
boolean isValid | ( | ) |
checks if the key points to an open valid key in the data-source.
com::sun::star::registry::XRegistryKey openKey | ( | [in] string | aKeyName | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
opens a sub key of the key.
If the sub key does not exist, the function returns a NULL-interface.
aKeyName | the relative path from the current key to the key which will be created. |
InvalidRegistryException | if the registry is not open. |
sequence<com::sun::star::registry::XRegistryKey> openKeys | ( | ) | ||
raises | ( | com::sun::star::registry::InvalidRegistryException | ||
) |
opens all subkeys of the key.
If a subkey is a link, the link will be resolved and the appropriate key will be opened.
InvalidRegistryException | if the registry is not open. |
void setAsciiListValue | ( | [in] sequence< string > | seqValue | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets an ASCII string list value to the key.
The high byte of the string should be NULL. If not, there is no guarantee that the string will be correctly transported. If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setAsciiValue | ( | [in] string | value | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets an ASCII string value to the key.
The high byte of the string should be NULL. If not, there is no guarantee that the string will be correctly transported. If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setBinaryValue | ( | [in] sequence< byte > | value | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets a binary value to the key.
If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setLongListValue | ( | [in] sequence< long > | seqValue | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets a long list value to the key.
If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setLongValue | ( | [in] long | value | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets a long value to the key.
If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setStringListValue | ( | [in] sequence< string > | seqValue | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets a unicode string value to the key.
If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
void setStringValue | ( | [in] string | value | ) | |
raises | ( | com::sun::star::registry::InvalidRegistryException | |||
) |
sets a unicode string value to the key.
If the key already has a value, the value will be overridden.
InvalidRegistryException | if the registry is not open. |
|
attributereadonly |
This is the key of the entry relative to its parent.
The access path starts with the root "/" and all parent entry names are delimited with slashes "/" too, like in a UNIX (R) file system. Slashes which are part of single names are represented as hexadecimals preceded with a "%" like in URL syntax.