ooodev.adapter.util.property_replace_partial module
- class ooodev.adapter.util.property_replace_partial.PropertyReplacePartial(component, interface=com.sun.star.util.XPropertyReplace)[source]
Bases:
ReplaceDescriptorPartial
Partial class for XPropertyReplace.
- Parameters:
component (XPropertyReplace) –
interface (UnoInterface | None) –
- __init__(component, interface=com.sun.star.util.XPropertyReplace)[source]
Constructor
- Parameters:
component (XPropertyReplace) – UNO Component that implements
com.sun.star.util.XPropertyReplace
interface.interface (UnoInterface, optional) – The interface to be validated. Defaults to
XPropertyReplace
.
- Return type:
None
- get_replace_attributes()[source]
Gets the properties to replace the found occurrences.
- Return type:
Tuple
[PropertyValue
,...
]
- get_value_search()[source]
provides the information if specific property values are searched, or just the existence of the specified properties.
- Return type:
bool
- set_replace_attributes(*attribs)[source]
Sets the properties to replace the found occurrences.
- Raises:
com.sun.star.beans.UnknownPropertyException –
UnknownPropertyException
com.sun.star.lang.IllegalArgumentException –
IllegalArgumentException
- Return type:
None
- Parameters:
attribs (PropertyValue) –