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: XMenuProxy.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 ************************************************************************/
32 #ifndef __com_sun_star_mozilla_XMenuProxy_idl__
33 #define __com_sun_star_mozilla_XMenuProxy_idl__
35 #ifndef __com_sun_star_lang_XComponent_idl__
36 #include
<com
/sun
/star
/lang
/XComponent.idl
>
39 #ifndef __com_sun_star_mozilla_XMenuProxyListener_idl__
40 #include
<com
/sun
/star
/mozilla
/XMenuProxyListener.idl
>
43 //=============================================================================
45 module com
{ module sun
{ module star
{ module mozilla
{
47 //=============================================================================
50 // DocMerge from xml: interface com::sun::star::mozilla::XMenuProxy
51 /** Allows to execute dispatch for a menu item
52 and handles listeners for changes in menu items.
54 published
interface XMenuProxy
: com
::sun
::star
::lang
::XComponent
56 //-------------------------------------------------------------------------
58 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::executeMenuItem
59 /** Executes dispatch for the given menu id
61 @param ID [in]: the menu item
64 void executeMenuItem
([in] short ID);
66 //-------------------------------------------------------------------------
68 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::addMenuProxyListener
69 /** Registers an event listener, which will be called when the menu changes
71 @param xListener [in]: the listener to be set
74 [oneway
] void addMenuProxyListener
([in] XMenuProxyListener xListener
);
76 //-------------------------------------------------------------------------
78 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::removeMenuProxyListener
79 /** Unregisters an event listener which was registered with
80 <member>XMenuProxy::addMenuProxyListener()</member>.
82 @param xListener [in]: the listener to be removed
85 [oneway
] void removeMenuProxyListener
([in] XMenuProxyListener xListener
);
88 //=============================================================================