LibreOffice
LibreOffice 24.2 SDK API Reference
|
specifies the basic operations for a window component. More...
import"XWindow.idl";
Public Member Functions | |
void | setPosSize ([in] long X, [in] long Y, [in] long Width, [in] long Height, [in] short Flags) |
sets the outer bounds of the window. More... | |
com::sun::star::awt::Rectangle | getPosSize () |
returns the outer bounds of the window. More... | |
void | setVisible ([in] boolean Visible) |
shows or hides the window depending on the parameter. More... | |
void | setEnable ([in] boolean Enable) |
enables or disables the window depending on the parameter. More... | |
void | setFocus () |
sets the focus to the window. More... | |
void | addWindowListener ([in] com::sun::star::awt::XWindowListener xListener) |
adds a window listener to the object. More... | |
void | removeWindowListener ([in] com::sun::star::awt::XWindowListener xListener) |
removes the specified window listener from the listener list. More... | |
void | addFocusListener ([in] com::sun::star::awt::XFocusListener xListener) |
adds a focus listener to the object. More... | |
void | removeFocusListener ([in] com::sun::star::awt::XFocusListener xListener) |
removes the specified focus listener from the listener list. More... | |
void | addKeyListener ([in] com::sun::star::awt::XKeyListener xListener) |
adds a key listener to the object. More... | |
void | removeKeyListener ([in] com::sun::star::awt::XKeyListener xListener) |
removes the specified key listener from the listener list. More... | |
void | addMouseListener ([in] com::sun::star::awt::XMouseListener xListener) |
adds a mouse listener to the object. More... | |
void | removeMouseListener ([in] com::sun::star::awt::XMouseListener xListener) |
removes the specified mouse listener from the listener list. More... | |
void | addMouseMotionListener ([in] com::sun::star::awt::XMouseMotionListener xListener) |
adds a mouse motion listener to the object. More... | |
void | removeMouseMotionListener ([in] com::sun::star::awt::XMouseMotionListener xListener) |
removes the specified mouse motion listener from the listener list. More... | |
void | addPaintListener ([in] com::sun::star::awt::XPaintListener xListener) |
adds a paint listener to the object. More... | |
void | removePaintListener ([in] com::sun::star::awt::XPaintListener xListener) |
removes the specified paint listener from the listener list. 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 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... | |
specifies the basic operations for a window component.
A window is a rectangular region on an output device with its own position, size, and internal coordinate system. A window is used for displaying data. In addition, the window receives events from the user.
void addFocusListener | ( | [in] com::sun::star::awt::XFocusListener | xListener | ) |
adds a focus listener to the object.
void addKeyListener | ( | [in] com::sun::star::awt::XKeyListener | xListener | ) |
adds a key listener to the object.
void addMouseListener | ( | [in] com::sun::star::awt::XMouseListener | xListener | ) |
adds a mouse listener to the object.
void addMouseMotionListener | ( | [in] com::sun::star::awt::XMouseMotionListener | xListener | ) |
adds a mouse motion listener to the object.
void addPaintListener | ( | [in] com::sun::star::awt::XPaintListener | xListener | ) |
adds a paint listener to the object.
void addWindowListener | ( | [in] com::sun::star::awt::XWindowListener | xListener | ) |
adds a window listener to the object.
xListener | the listener to add. If this listener also supports the XWindowListener2 interface, it will receive the additional events declared in XWindowListener2. |
com::sun::star::awt::Rectangle getPosSize | ( | ) |
returns the outer bounds of the window.
void removeFocusListener | ( | [in] com::sun::star::awt::XFocusListener | xListener | ) |
removes the specified focus listener from the listener list.
void removeKeyListener | ( | [in] com::sun::star::awt::XKeyListener | xListener | ) |
removes the specified key listener from the listener list.
void removeMouseListener | ( | [in] com::sun::star::awt::XMouseListener | xListener | ) |
removes the specified mouse listener from the listener list.
void removeMouseMotionListener | ( | [in] com::sun::star::awt::XMouseMotionListener | xListener | ) |
removes the specified mouse motion listener from the listener list.
void removePaintListener | ( | [in] com::sun::star::awt::XPaintListener | xListener | ) |
removes the specified paint listener from the listener list.
void removeWindowListener | ( | [in] com::sun::star::awt::XWindowListener | xListener | ) |
removes the specified window listener from the listener list.
void setEnable | ( | [in] boolean | Enable | ) |
enables or disables the window depending on the parameter.
void setFocus | ( | ) |
sets the focus to the window.
void setPosSize | ( | [in] long | X, |
[in] long | Y, | ||
[in] long | Width, | ||
[in] long | Height, | ||
[in] short | Flags | ||
) |
sets the outer bounds of the window.
X | the x-coordinate of the window. |
Y | the y-coordinate of the window. |
Width | the width of the window. |
Height | the height of the window. |
Flags | Flags are of type PosSize and specify, which parameters are taken into account when setting the outer bounds of the window. |
void setVisible | ( | [in] boolean | Visible | ) |
shows or hides the window depending on the parameter.