interface XMultiPropertyStates in module com::sun::star::beans::

(Global Index)

Syntax

interface XMultiPropertyStates : com::sun::star::uno::XInterface ;

Description

makes it possible to query information about the state of one or more properties.

The state contains the information if a value is available or void and if the value is stored in the object itself, or if a default value is to be used and if the value cannot be determined, due to ambiguity (multi selection with multipe values).

Method Summary

getPropertyStates

setAllPropertiesToDefault sets all properties to their default values.

setPropertiesToDefault sets the specified properties to their default values.

getPropertyDefaults

Method Details



getPropertyStates

Syntax

sequence< com::sun::star::beans::PropertyState > getPropertyStates (
sequence< string > aPropertyName )
raises ( com::sun::star::beans::UnknownPropertyException );

Description

Returns

a sequence of the states of the properties which are specified by their names.

The order of the states is correlating to the order of the given property names.


setAllPropertiesToDefault

Syntax

void setAllPropertiesToDefault ();

Description

sets all properties to their default values.

Each value depends on the implementation of this interface. If it is a bound property, you must change the value before the change events are fired. If it is a constrained property, you must fire the vetoable event before you change the property value.


setPropertiesToDefault

Syntax

void setPropertiesToDefault (
sequence< string > aPropertyNames )
raises ( com::sun::star::beans::UnknownPropertyException );

Description

sets the specified properties to their default values.

Each value depends on the implementation of this interface. If it is a bound property, you must change the value before the change events are fired. If it is a constrained property, you must fire the vetoable event before you change the property value.

Parameter aPropertyNames

specifies the names of the properties.

Throws

UnknownPropertyException if one of the properties does not exist.

getPropertyDefaults

Syntax

sequence< any > getPropertyDefaults (
sequence< string > aPropertyNames )
raises ( com::sun::star::beans::UnknownPropertyException , com::sun::star::lang::WrappedTargetException );

Description

Returns

the default values of the propertes with the specified names.

If no default exists, is not known or is void, then the return type at the corresponding position in the sequence returned is void .

Parameter aPropertyNames

specifies the names of the properties.

Throws

UnknownPropertyException if one of the propertes does not exist.

Throws

com::sun::star::lang::WrappedTargetException if the implementation has an internal reason for the exception. In this case the original exception is wrapped into that WrappedTargetException .
Top of Page