LibreOffice
LibreOffice 24.2 SDK API Reference
Public Member Functions | List of all members
XButton Interface Referencepublished

makes it possible to set the label of a button and to register for action events. More...

import"XButton.idl";

Inheritance diagram for XButton:
XInterface UnoControlButton CommandButton

Public Member Functions

void addActionListener ([in] com::sun::star::awt::XActionListener l)
 registers an event handler for button action events. More...
 
void removeActionListener ([in] com::sun::star::awt::XActionListener l)
 unregisters an event handler for button action events. More...
 
void setLabel ([in] string Label)
 sets the label of the button. More...
 
void setActionCommand ([in] string Command)
 sets a command string for pushing the button. More...
 
- 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...
 

Detailed Description

makes it possible to set the label of a button and to register for action events.

Member Function Documentation

◆ addActionListener()

void addActionListener ( [in] com::sun::star::awt::XActionListener  l)

registers an event handler for button action events.

◆ removeActionListener()

void removeActionListener ( [in] com::sun::star::awt::XActionListener  l)

unregisters an event handler for button action events.

◆ setActionCommand()

void setActionCommand ( [in] string  Command)

sets a command string for pushing the button.

Parameters
Commandvalue can be used to detect which button is pressed.

◆ setLabel()

void setLabel ( [in] string  Label)

sets the label of the button.


The documentation for this interface was generated from the following file: