1*408a4873SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*408a4873SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*408a4873SAndrew Rist * distributed with this work for additional information 6*408a4873SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance 9*408a4873SAndrew Rist * with the License. You may obtain a copy of the License at 10*408a4873SAndrew Rist * 11*408a4873SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*408a4873SAndrew Rist * 13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*408a4873SAndrew Rist * software distributed under the License is distributed on an 15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*408a4873SAndrew Rist * KIND, either express or implied. See the License for the 17*408a4873SAndrew Rist * specific language governing permissions and limitations 18*408a4873SAndrew Rist * under the License. 19*408a4873SAndrew Rist * 20*408a4873SAndrew Rist *************************************************************/ 21*408a4873SAndrew Rist 22*408a4873SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_script_XScriptEventsAttacher_idl__ 24cdf0e10cSrcweir#define __com_sun_star_script_XScriptEventsAttacher_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir#ifndef __com_sun_star_script_XScriptListener_idl__ 27cdf0e10cSrcweir#include <com/sun/star/script/XScriptListener.idl> 28cdf0e10cSrcweir#endif 29cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__ 30cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl> 31cdf0e10cSrcweir#endif 32cdf0e10cSrcweir 33cdf0e10cSrcweir#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 34cdf0e10cSrcweir#include <com/sun/star/lang/IllegalArgumentException.idl> 35cdf0e10cSrcweir#endif 36cdf0e10cSrcweir 37cdf0e10cSrcweir#ifndef __com_sun_star_beans_IntrospectionException_idl__ 38cdf0e10cSrcweir#include <com/sun/star/beans/IntrospectionException.idl> 39cdf0e10cSrcweir#endif 40cdf0e10cSrcweir 41cdf0e10cSrcweir#ifndef __com_sun_star_script_CannotCreateAdapterException_idl__ 42cdf0e10cSrcweir#include <com/sun/star/script/CannotCreateAdapterException.idl> 43cdf0e10cSrcweir#endif 44cdf0e10cSrcweir 45cdf0e10cSrcweir#ifndef __com_sun_star_lang_ServiceNotRegisteredException_idl__ 46cdf0e10cSrcweir#include <com/sun/star/lang/ServiceNotRegisteredException.idl> 47cdf0e10cSrcweir#endif 48cdf0e10cSrcweir 49cdf0e10cSrcweir 50cdf0e10cSrcweir//============================================================================= 51cdf0e10cSrcweir 52cdf0e10cSrcweir module com { module sun { module star { module script { 53cdf0e10cSrcweir 54cdf0e10cSrcweir//============================================================================= 55cdf0e10cSrcweir 56cdf0e10cSrcweir/** 57cdf0e10cSrcweir This interface can be used to attach script events to a number of 58cdf0e10cSrcweir objects that give access to the definition of events that should 59cdf0e10cSrcweir be attached to them, e.g., by supporting XEventsSupplier 60cdf0e10cSrcweir*/ 61cdf0e10cSrcweirpublished interface XScriptEventsAttacher: com::sun::star::uno::XInterface 62cdf0e10cSrcweir{ 63cdf0e10cSrcweir /** 64cdf0e10cSrcweir Attaches the events defined by XScriptEventsSupplier to the 65cdf0e10cSrcweir corresponding object implementing XScriptEventsSupplier. 66cdf0e10cSrcweir 67cdf0e10cSrcweir @param Objects 68cdf0e10cSrcweir Sequence of all objects. Usually the objects should directly 69cdf0e10cSrcweir support <type>XScriptEventsAttacher</type> to define the events 70cdf0e10cSrcweir but this is not strictly required. It's also possible that 71cdf0e10cSrcweir the object implementing <type>XScriptEventsAttacher</type> 72cdf0e10cSrcweir knows how to get the necessary information for the objects. 73cdf0e10cSrcweir @param xListener 74cdf0e10cSrcweir All events (if defined by XScriptEventsSupplier) that are fired 75cdf0e10cSrcweir by one of the objects are mapped into a <type>ScriptEvent</type> 76cdf0e10cSrcweir and passed to the methods of this XScriptListener. 77cdf0e10cSrcweir @param Helper 78cdf0e10cSrcweir Helper object for the implementation. This value will be 79cdf0e10cSrcweir passed to the XScriptListener as Helper property in the 80cdf0e10cSrcweir <type>ScriptEvent</type>. 81cdf0e10cSrcweir */ 82cdf0e10cSrcweir void attachEvents( [in] sequence< com::sun::star::uno::XInterface > Objects, 83cdf0e10cSrcweir [in] com::sun::star::script::XScriptListener xListener, 84cdf0e10cSrcweir [in] any Helper ) 85cdf0e10cSrcweir raises( com::sun::star::lang::IllegalArgumentException, 86cdf0e10cSrcweir com::sun::star::beans::IntrospectionException, 87cdf0e10cSrcweir com::sun::star::script::CannotCreateAdapterException, 88cdf0e10cSrcweir com::sun::star::lang::ServiceNotRegisteredException ); 89cdf0e10cSrcweir 90cdf0e10cSrcweir}; 91cdf0e10cSrcweir 92cdf0e10cSrcweir//============================================================================= 93cdf0e10cSrcweir 94cdf0e10cSrcweir}; }; }; }; 95cdf0e10cSrcweir 96cdf0e10cSrcweir#endif 97cdf0e10cSrcweir 98