1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 25#ifndef __com_sun_star_mozilla_XMenuProxy_idl__ 26#define __com_sun_star_mozilla_XMenuProxy_idl__ 27 28#ifndef __com_sun_star_lang_XComponent_idl__ 29#include <com/sun/star/lang/XComponent.idl> 30#endif 31 32#ifndef __com_sun_star_mozilla_XMenuProxyListener_idl__ 33#include <com/sun/star/mozilla/XMenuProxyListener.idl> 34#endif 35 36//============================================================================= 37 38 module com { module sun { module star { module mozilla { 39 40//============================================================================= 41 42 43// DocMerge from xml: interface com::sun::star::mozilla::XMenuProxy 44/** Allows to execute dispatch for a menu item 45 and handles listeners for changes in menu items. 46 */ 47published interface XMenuProxy: com::sun::star::lang::XComponent 48{ 49 //------------------------------------------------------------------------- 50 51 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::executeMenuItem 52 /** Executes dispatch for the given menu id 53 54 @param ID [in]: the menu item 55 56 */ 57 void executeMenuItem([in] short ID); 58 59 //------------------------------------------------------------------------- 60 61 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::addMenuProxyListener 62 /** Registers an event listener, which will be called when the menu changes 63 64 @param xListener [in]: the listener to be set 65 66 */ 67 [oneway] void addMenuProxyListener([in] XMenuProxyListener xListener ); 68 69 //------------------------------------------------------------------------- 70 71 // DocMerge from xml: method com::sun::star::mozilla::XMenuProxy::removeMenuProxyListener 72 /** Unregisters an event listener which was registered with 73 <member>XMenuProxy::addMenuProxyListener()</member>. 74 75 @param xListener [in]: the listener to be removed 76 77 */ 78 [oneway] void removeMenuProxyListener([in] XMenuProxyListener xListener ); 79}; 80 81//============================================================================= 82 83}; }; }; }; 84 85 86 87#endif 88