1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XMenuExtended2.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_XMenuExtended2_idl__
31 #define __com_sun_star_awt_XMenuExtended2_idl__
33 #ifndef __com_sun_star_awt_XMenu_idl__
34 #include
<com
/sun
/star
/awt
/XMenu.idl
>
37 #ifndef __com_sun_star_awt_XMenuExtended_idl__
38 #include
<com
/sun
/star
/awt
/XMenuExtended.idl
>
41 #ifndef __com_sun_star_awt_MenuItemType_idl__
42 #include
<com
/sun
/star
/awt
/MenuItemType.idl
>
45 #ifndef __com_sun_star_container_NoSuchElementException_idl__
46 #include
<com
/sun
/star
/container
/NoSuchElementException.idl
>
49 //=============================================================================
51 module com
{ module sun
{ module star
{ module awt
{
53 /** specifies extended menu functions.
56 interface XMenuExtended2
58 /** specifies some extended menu functions, like setting a command URL and a help command for a menu item.<br>
59 These functions are available for both menu bar and popup menu.
61 interface com
::sun
::star
::awt
::XMenuExtended
;
63 /** specifies basic menu functions.
65 interface com
::sun
::star
::awt
::XMenu
;
68 //=========================================================================
70 /** checks whether an <type>XMenu</type> is an <type>XPopupMenu</type>.
73 <TRUE/> if the menu is a <type>PopupMenu</type>, <FALSE/> if it is a <type>MenuBar</type>.
75 boolean isPopupMenu
();
77 //.........................................................................
79 /** removes all items from the menu.
83 //.........................................................................
85 /** retrieves the type of the menu item.
88 specifies the position of the menu item for which the item type is queried.
90 @throws <type scope="com::sun::star::container">NoSuchElementException</type>
91 if there is no menu item in the position specified in <var>nItemPos</var>.
95 ::com
::sun
::star
::awt
::MenuItemType getItemType
( [in] short nItemPos
)
96 raises
( ::com
::sun
::star
::container
::NoSuchElementException
);
98 //.........................................................................
100 /** specifies whether disabled menu entries should be hidden, or not.
103 if <TRUE/>, disabled menu entries are hidden.
106 <member scope="com::sun::star::awt">XMenu::enableItem()</member>
108 void hideDisabledEntries
( [in] boolean bHide
);