1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_frame_XToolbarControllerListener_idl__ 28#define __com_sun_star_frame_XToolbarControllerListener_idl__ 29 30//============================================================================= 31 32 module com { module sun { module star { module frame { 33 34//============================================================================= 35/** is used to notify a toolbar controller about events 36 37 @see com::sun::star::frame::ToolbarController 38 39 @since OOo 2.0 40 */ 41interface XToolbarControllerListener : com::sun::star::uno::XInterface 42{ 43 //============================================================================= 44 /** gets called to notify a controller that a toolbar function has been selected. 45 46 @param aToolbarRes 47 a string which identifies the toolbar where the function has been selected. 48 49 @param aCommand 50 a string which identifies the function that has been selected. 51 52 <p> 53 This notification is normally used to implement the toolbar button/sub-toolbar 54 function feature. It exchanges the function of the toolbar button, that opened 55 the sub-toolbar, with the one that has been selected on the sub-toolbar. 56 </p> 57 */ 58 void functionSelected( [in] string aToolbarRes, [in] string aCommand ); 59 60}; 61 62}; }; }; }; 63 64#endif 65