LibreOffice
LibreOffice 5.0 SDK API Reference
|
describes a popup menu which is a recursive container for commands More...
import "PopupMenu.idl";
Additional Inherited Members | |
![]() | |
void | insertSeparator ([in] short nItemPos) |
inserts a separator at the specified position. More... | |
void | setDefaultItem ([in] short nItemId) |
sets the menu default item. More... | |
short | getDefaultItem () |
returns the menu default item. More... | |
void | checkItem ([in] short nItemId,[in] boolean bCheck) |
sets the state of the item to be checked or unchecked. More... | |
boolean | isItemChecked ([in] short nItemId) |
returns whether the item is checked or unchecked. More... | |
short | execute ([in] XWindowPeer Parent,[in] Rectangle Position,[in] short Direction) |
executes the popup menu and returns the selected item or 0 , if cancelled. More... | |
boolean | isInExecute () |
queries if the PopupMenu is being. More... | |
void | endExecute () |
ends the execution of the PopupMenu. More... | |
void | setAcceleratorKeyEvent ([in] short nItemId,[in] KeyEvent aKeyEvent) |
sets the KeyEvent for the menu item. More... | |
KeyEvent | getAcceleratorKeyEvent ([in] short nItemId) |
retrieves the KeyEvent for the menu item. More... | |
void | setItemImage ([in] short nItemId,[in]::com::sun::star::graphic::XGraphic xGraphic,[in] boolean bScale) |
sets the image for the menu item. More... | |
::com::sun::star::graphic::XGraphic | getItemImage ([in] short nItemId) |
retrieves the image for the menu item. More... | |
describes a popup menu which is a recursive container for commands
A popup menu can be used as a standalone object to display a context menu. It's also possible to use a popup menu to integrate it into another menu.