LibreOffice
LibreOffice 7.4 SDK API Reference
|
specifies the control model for a clickable button which is part of a form component hierarchy. More...
import"CommandButton.idl";
Included Services | |
service | com::sun::star::awt::UnoControlButtonModel |
service | com::sun::star::form::FormControlModel |
Included Services inherited from UnoControlButtonModel | |
service | com::sun::star::awt::UnoControlModel |
Included Services inherited from UnoControlModel | |
service | com::sun::star::awt::UnoControlDialogElement |
This service is present when the control model is embedded in an UnoControlDialogModel. More... | |
Included Services inherited from FormControlModel | |
service | com::sun::star::awt::UnoControlModel |
service | com::sun::star::form::FormComponent |
Exported Interfaces | |
interface | com::sun::star::form::XImageProducerSupplier |
supplies the image producer when the button is to display an image. More... | |
interface | ::com::sun::star::form::XReset |
allows resetting the button More... | |
Exported Interfaces inherited from UnoControlModel | |
interface | com::sun::star::awt::XControlModel |
interface | com::sun::star::lang::XComponent |
interface | com::sun::star::beans::XPropertySet |
interface | com::sun::star::beans::XMultiPropertySet |
interface | com::sun::star::io::XPersistObject |
interface | com::sun::star::util::XCloneable |
Exported Interfaces inherited from FormControlModel | |
interface | com::sun::star::beans::XFastPropertySet |
This optional interface gives an efficient access to all properties at once or an ability to set more than one property at once. More... | |
interface | com::sun::star::beans::XPropertyState |
This optional interface gives access to the state of the properties, e.g. More... | |
Exported Interfaces inherited from FormComponent | |
interface | com::sun::star::form::XFormComponent |
identifies the component as a candidate for being part of a form. More... | |
interface | com::sun::star::lang::XComponent |
allows life-time control of form components. More... | |
interface | com::sun::star::container::XNamed |
Each FormComponent must supply a name for identification. More... | |
interface | com::sun::star::beans::XPropertySet |
gives access to the properties. More... | |
interface | com::sun::star::io::XPersistObject |
Each FormComponent must be able to be stored into and read from a stream. More... | |
interface | com::sun::star::beans::XPropertyBag |
allows to associate arbitrary properties with the form component More... | |
Exported Interfaces inherited from XPropertyBag | |
interface | com::sun::star::beans::XPropertySet |
interface | com::sun::star::beans::XPropertyContainer |
interface | com::sun::star::beans::XPropertyAccess |
Public Attributes | |
com::sun::star::form::FormButtonType | ButtonType |
describes the action to be executed by the button when pressed. More... | |
string | TargetFrame |
describes the frame, where to open the document specified by the TargetURL. More... | |
string | TargetURL |
specifies the URL, which should be opened if the button was clicked. More... | |
boolean | DefaultState |
specifies the default toggle state for the button, used when it is reset. More... | |
Public Attributes inherited from UnoControlButtonModel | |
short | Align |
specifies the horizontal alignment of the text in the control. More... | |
com::sun::star::util::Color | BackgroundColor |
specifies the background color (RGB) of the control. More... | |
boolean | DefaultButton |
specifies that the button is the default button on the document. More... | |
boolean | Enabled |
determines whether the control is enabled or disabled. More... | |
boolean | FocusOnClick |
specifies whether the button control should grab the focus when clicked. More... | |
com::sun::star::awt::FontDescriptor | FontDescriptor |
specifies the font attributes of the text in the control. More... | |
short | FontEmphasisMark |
specifies the com::sun::star::text::FontEmphasis value of the text in the control. More... | |
short | FontRelief |
specifies the com::sun::star::text::FontRelief value of the text in the control. More... | |
string | HelpText |
specifies the help text of the control. More... | |
string | HelpURL |
specifies the help URL of the control. More... | |
short | ImageAlign |
specifies the alignment of the image inside the button as ImageAlign value. More... | |
short | ImagePosition |
specifies the position of the image, if any, relative to the text, if any More... | |
string | ImageURL |
specifies a URL to an image to use for the button. More... | |
com::sun::star::graphic::XGraphic | Graphic |
specifies a graphic to be displayed at the button More... | |
string | Label |
specifies the label of the control. More... | |
boolean | MultiLine |
specifies that the text may be displayed on more than one line. More... | |
boolean | Printable |
specifies that the control will be printed with the document. More... | |
short | PushButtonType |
specifies the default action of the button as PushButtonType value. More... | |
boolean | Repeat |
specifies whether the control should show repeating behavior. More... | |
long | RepeatDelay |
specifies the mouse repeat delay, in milliseconds. More... | |
short | State |
specifies the state of the control. More... | |
boolean | Tabstop |
specifies that the control can be reached with the TAB key. More... | |
com::sun::star::util::Color | TextColor |
specifies the text color (RGB) of the control. More... | |
com::sun::star::util::Color | TextLineColor |
specifies the text line color (RGB) of the control. More... | |
boolean | Toggle |
specifies whether the button should toggle on a single operation. More... | |
com::sun::star::style::VerticalAlignment | VerticalAlign |
specifies the vertical alignment of the text in the control. More... | |
Public Attributes inherited from UnoControlModel | |
string | DefaultControl |
specifies the service name of the default control for this model. More... | |
Public Attributes inherited from FormControlModel | |
short | ClassId |
specifies the ID for classification of the component. More... | |
short | TabIndex |
determines the relative taborder of the control associated with the model. More... | |
string | Tag |
used for additional information. More... | |
Public Attributes inherited from FormComponent | |
string | Name |
the name of the component. More... | |
Additional Inherited Members | |
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 Member Functions inherited from XComponent | |
void | dispose () |
The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More... | |
void | addEventListener ([in] XEventListener xListener) |
adds an event listener to the object. More... | |
void | removeEventListener ([in] XEventListener aListener) |
removes an event listener from the listener list. More... | |
Public Member Functions inherited from XPropertySet | |
com::sun::star::beans::XPropertySetInfo | getPropertySetInfo () |
void | setPropertyValue ([in] string aPropertyName, [in] any aValue) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the value of the property with the specified name. More... | |
any | getPropertyValue ([in] string PropertyName) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
void | addPropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener xListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
adds an XPropertyChangeListener to the specified property. More... | |
void | removePropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
removes an XPropertyChangeListener from the listener list. More... | |
void | addVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
adds an XVetoableChangeListener to the specified property with the name PropertyName. More... | |
void | removeVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
removes an XVetoableChangeListener from the listener list. More... | |
Public Member Functions inherited from XMultiPropertySet | |
com::sun::star::beans::XPropertySetInfo | getPropertySetInfo () |
void | setPropertyValues ([in] sequence< string > aPropertyNames, [in] sequence< any > aValues) raises ( com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the values to the properties with the specified names. More... | |
sequence< any > | getPropertyValues ([in] sequence< string > aPropertyNames) |
void | addPropertiesChangeListener ([in] sequence< string > aPropertyNames, [in] com::sun::star::beans::XPropertiesChangeListener xListener) |
adds an XPropertiesChangeListener to the specified property with the specified names. More... | |
void | removePropertiesChangeListener ([in] com::sun::star::beans::XPropertiesChangeListener xListener) |
removes an XPropertiesChangeListener from the listener list. More... | |
void | firePropertiesChangeEvent ([in] sequence< string > aPropertyNames, [in] com::sun::star::beans::XPropertiesChangeListener xListener) |
fires a sequence of PropertyChangeEvents to the specified listener. More... | |
Public Member Functions inherited from XPersistObject | |
string | getServiceName () |
gives the service name of the object More... | |
void | write ([in] com::sun::star::io::XObjectOutputStream OutStream) raises ( com::sun::star::io::IOException ) |
writes all the persistent data of the object to the stream. More... | |
void | read ([in] com::sun::star::io::XObjectInputStream InStream) raises ( com::sun::star::io::IOException ) |
reads all the persistent data of the object from the stream. More... | |
Public Member Functions inherited from XCloneable | |
com::sun::star::util::XCloneable | createClone () |
creates a copy of the object. More... | |
Public Member Functions inherited from XChild | |
com::sun::star::uno::XInterface | getParent () |
grants access to the object containing this content. More... | |
void | setParent ([in] com::sun::star::uno::XInterface Parent) raises ( com::sun::star::lang::NoSupportException ) |
sets the parent to this object. More... | |
Public Member Functions inherited from XNamed | |
string | getName () |
void | setName ([in] string aName) |
sets the programmatic name of the object. More... | |
Public Member Functions inherited from XImageProducerSupplier | |
com::sun::star::awt::XImageProducer | getImageProducer () |
accesses the image producer. More... | |
Protected 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... | |
Protected Member Functions inherited from XComponent | |
void | dispose () |
The owner of an object calls this method to explicitly free all resources kept by this object and thus break cyclic references. More... | |
void | addEventListener ([in] XEventListener xListener) |
adds an event listener to the object. More... | |
void | removeEventListener ([in] XEventListener aListener) |
removes an event listener from the listener list. More... | |
Protected Member Functions inherited from XPropertySet | |
com::sun::star::beans::XPropertySetInfo | getPropertySetInfo () |
void | setPropertyValue ([in] string aPropertyName, [in] any aValue) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the value of the property with the specified name. More... | |
any | getPropertyValue ([in] string PropertyName) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
void | addPropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener xListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
adds an XPropertyChangeListener to the specified property. More... | |
void | removePropertyChangeListener ([in] string aPropertyName, [in] com::sun::star::beans::XPropertyChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
removes an XPropertyChangeListener from the listener list. More... | |
void | addVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
adds an XVetoableChangeListener to the specified property with the name PropertyName. More... | |
void | removeVetoableChangeListener ([in] string PropertyName, [in] com::sun::star::beans::XVetoableChangeListener aListener) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
removes an XVetoableChangeListener from the listener list. More... | |
Protected Member Functions inherited from XMultiPropertySet | |
com::sun::star::beans::XPropertySetInfo | getPropertySetInfo () |
void | setPropertyValues ([in] sequence< string > aPropertyNames, [in] sequence< any > aValues) raises ( com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the values to the properties with the specified names. More... | |
sequence< any > | getPropertyValues ([in] sequence< string > aPropertyNames) |
void | addPropertiesChangeListener ([in] sequence< string > aPropertyNames, [in] com::sun::star::beans::XPropertiesChangeListener xListener) |
adds an XPropertiesChangeListener to the specified property with the specified names. More... | |
void | removePropertiesChangeListener ([in] com::sun::star::beans::XPropertiesChangeListener xListener) |
removes an XPropertiesChangeListener from the listener list. More... | |
void | firePropertiesChangeEvent ([in] sequence< string > aPropertyNames, [in] com::sun::star::beans::XPropertiesChangeListener xListener) |
fires a sequence of PropertyChangeEvents to the specified listener. More... | |
Protected Member Functions inherited from XPersistObject | |
string | getServiceName () |
gives the service name of the object More... | |
void | write ([in] com::sun::star::io::XObjectOutputStream OutStream) raises ( com::sun::star::io::IOException ) |
writes all the persistent data of the object to the stream. More... | |
void | read ([in] com::sun::star::io::XObjectInputStream InStream) raises ( com::sun::star::io::IOException ) |
reads all the persistent data of the object from the stream. More... | |
Protected Member Functions inherited from XCloneable | |
com::sun::star::util::XCloneable | createClone () |
creates a copy of the object. More... | |
Protected Member Functions inherited from XPropertyContainer | |
void | addProperty ([in] string Name, [in] short Attributes, [in] any DefaultValue) raises ( com::sun::star::beans::PropertyExistException, com::sun::star::beans::IllegalTypeException, com::sun::star::lang::IllegalArgumentException ) |
adds a property to the object. More... | |
void | removeProperty ([in] string Name) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::NotRemoveableException ) |
removes a property from the object. More... | |
Protected Member Functions inherited from XPropertyAccess | |
sequence< com::sun::star::beans::PropertyValue > | getPropertyValues () |
void | setPropertyValues ([in] sequence< com::sun::star::beans::PropertyValue > aProps) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the values of given properties. More... | |
Protected Member Functions inherited from XFastPropertySet | |
void | setFastPropertyValue ([in] long nHandle, [in] any aValue) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::beans::PropertyVetoException, com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::WrappedTargetException ) |
sets the value to the property with the specified name. More... | |
any | getFastPropertyValue ([in] long nHandle) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
Protected Member Functions inherited from XPropertyState | |
com::sun::star::beans::PropertyState | getPropertyState ([in] string PropertyName) raises ( com::sun::star::beans::UnknownPropertyException ) |
sequence< com::sun::star::beans::PropertyState > | getPropertyStates ([in] sequence< string > aPropertyName) raises ( com::sun::star::beans::UnknownPropertyException ) |
void | setPropertyToDefault ([in] string PropertyName) raises ( com::sun::star::beans::UnknownPropertyException ) |
Sets the property to default value. More... | |
any | getPropertyDefault ([in] string aPropertyName) raises ( com::sun::star::beans::UnknownPropertyException, com::sun::star::lang::WrappedTargetException ) |
Protected Member Functions inherited from XReset | |
void | reset () |
resets a component to some default value. More... | |
void | addResetListener ([in] com::sun::star::form::XResetListener aListener) |
adds the specified listener to receive events related to resetting the component. More... | |
void | removeResetListener ([in] com::sun::star::form::XResetListener aListener) |
removes the specified listener More... | |
Protected Attributes inherited from UnoControlDialogElement | |
long | Height |
specifies the height of the control. More... | |
string | Name |
specifies the name of the control. More... | |
string | PositionX |
specifies the horizontal position of the control. More... | |
string | PositionY |
specifies the vertical position of the control. More... | |
long | Step |
specifies the step of the control. More... | |
short | TabIndex |
specifies the tabindex of the control. More... | |
string | Tag |
specifies the tag of the control. More... | |
long | Width |
specifies the width of the control. More... | |
specifies the control model for a clickable button which is part of a form component hierarchy.
|
optional |
allows resetting the button
This property is meaningful only when com::sun::star::awt::UnoControlButtonModel::Toggle is TRUE
. In this case, the DefaultState
controls to which State
the button will be reset, when com::sun::star::form::XReset::reset() is invoked.
For a given implementation of the interface, if this (optional) interface is present, then also the optional property DefaultState must be present.
supplies the image producer when the button is to display an image.
If the com::sun::star::awt::UnoControlButtonModel::ImageURL points to the location of an image to be displayed on the button, this interface can be used to retrieve an image producer, which itself will supply the image.
Usually, a control belonging to the model will use this interface to obtain the image to be painted
|
property |
describes the action to be executed by the button when pressed.
|
optionalproperty |
specifies the default toggle state for the button, used when it is reset.
This property is meaningful only when com::sun::star::awt::UnoControlButtonModel::Toggle is TRUE
. In this case, the DefaultState
controls to which State
the button will be reset.
For a given implementation of the interface, if this (optional) property is present, then also the optional interface com::sun::star::form::XReset must be present.
|
property |
describes the frame, where to open the document specified by the TargetURL.
This property is evaluated if the button is of type URL.
As always, there is a number of target names which have a special meaning, and force a special com::sun::star::frame::Frame to be used.
|
property |
specifies the URL, which should be opened if the button was clicked.
This property is evaluated if the button is of type URL.