Overview | Module | Use | Devguide | Index

Methods' Summary | Attributes' Summary | Methods' Details | Attributes' Details

:: com :: sun :: star :: awt ::
unpublished | interface XMenuExtended2 |
  Base Interfaces
      XMenuExtended2
      ┣ XMenuExtended
      ┗ XMenu
  XMenuExtended | Description specifies some extended menu functions, like setting a command URL and a help command for a menu item. These functions are available for both menu bar and pop-up menu.
  XMenu | Description specifies basic menu functions.
Usage Restrictions not published Description specifies extended menu functions.

Methods' Summary
isPopupMenu | checks whether an XMenu is an XPopupMenu.
clear | removes all items from the menu.
getItemType | retrieves the type of the menu item.
hideDisabledEntries | specifies whether disabled menu entries should be hidden, or not.

Methods' Details
isPopupMenu
boolean
isPopupMenu();
Description checks whether an XMenu is an XPopupMenu. Returns true if the menu is a PopupMenu, false if it is a MenuBar.
clear
void
clear();
Description removes all items from the menu.
getItemType
MenuItemType
getItemType( | [in] short | nItemPos )
raises( | ::com::sun::star::container::NoSuchElementException );
Description retrieves the type of the menu item. Parameter nItemPos specifies the position of the menu item for which the item type is queried. Throws ::com::sun::star::container::NoSuchElementException if there is no menu item in the position specified in nItemPos. See also MenuItemType
hideDisabledEntries
void
hideDisabledEntries( | [in] boolean | bHide );
Description specifies whether disabled menu entries should be hidden, or not. Parameter bHide if true, disabled menu entries are hidden. See also XMenu::enableItem()

Top of Page

Copyright © 2000, 2014 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.