Methods' Details |
insertSeparator
[oneway] void |
insertSeparator( |
[in] short |
nItemPos ); |
- Description
- inserts a separator at the specified position.
- Parameter nItemPos
- specifies the position where the menu separator will be insterted.
|
|
setDefaultItem
[oneway] void |
setDefaultItem( |
[in] short |
nItemId ); |
- Description
- sets the menu default item.
- Parameter nItemId
- specifies the menu item identifier.
|
|
getDefaultItem
- Description
- returns the menu default item.
- Returns
- the ID of the default item.
|
|
checkItem
[oneway] void |
checkItem( |
[in] short |
nItemId, |
| [in] boolean |
bCheck ); |
- Description
- sets the state of the item to be checked or unchecked.
- Parameter nItemId
- specifies the menu item identifier.
- Parameter bCheck
- specifies if the item is checked (true) or unchecked (false).
|
|
isItemChecked
boolean |
isItemChecked( |
[in] short |
nItemId ); |
- Description
- returns whether the item is checked or unchecked.
- Parameter nItemId
- specifies the menu item identifier.
- Returns
- true if the item is checked, false otherwise.
|
|
execute
- Description
- executes the popup menu and returns the selected item
or
0 , if cancelled.
- Parameter Parent
- the parent window.
- Parameter Position
- a Rectangle representing the coordinates system
where the popup menu should be executed.
- Parameter Direction
- the direction in which a popup menu will grow, as specified
by one of the PopupMenuDirection constants.
- Returns
- returns the selected item or
0 , if cancelled.
|
|
isInExecute
|
endExecute
|
setAcceleratorKeyEvent
void |
setAcceleratorKeyEvent( |
[in] short |
nItemId, |
| [in] KeyEvent |
aKeyEvent ); |
- Description
- sets the KeyEvent for the menu item.
The KeyEvent is only used as a container to transport
the shortcut information, this methods only draws the text corresponding to
this keyboard shortcut. The client code is responsible for listening to
keyboard events (typicaly done via XUserInputInterception),
and dispatch the respective command.
- Parameter nItemId
- specifies the menu item identifier for which the KeyEvent should be set.
- Parameter aKeyEvent
- specifies the KeyEvent for the menu item.
|
|
getAcceleratorKeyEvent
KeyEvent |
getAcceleratorKeyEvent( |
[in] short |
nItemId ); |
- Description
- retrieves the KeyEvent for the menu item.
The KeyEvent is only used as a container to transport
the shortcut information, so that in this case
::com::sun::star::lang::EventObject::Source is NULL.
- Parameter nItemId
- specifies the menu item identifier for which the KeyEvent should be retrieved.
- Returns
- the KeyEvent struct assigned to the requested menu item.
|
|
setItemImage
void |
setItemImage( |
[in] short |
nItemId, |
| [in] ::com::sun::star::graphic::XGraphic |
xGraphic, |
| [in] boolean |
bScale ); |
- Description
- sets the image for the menu item.
- Parameter nItemId
- specifies the menu item identifier for which the image should be set.
- Parameter xGraphic
- specifies the image for the menu item.
- Parameter bScale
- if true, the image will be scaled to the standard size used internally by
the implementation.
|
|
getItemImage
- Description
- retrieves the image for the menu item.
- Parameter nItemId
- specifies the menu item identifier for which the image should be retrieved.
- Returns
- a ::com::sun::star::graphic::XGraphic reference
to the current image for the requested menu item.
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.