tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / udkapi / com / sun / star / script / XEventAttacher.idl
blobe97950729a3996511157f3e4a6d31ac73fdda0f9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module script {
24 /** makes it possible to attach script events given by a sequence of
25 ScriptEventDescriptor structures to a given interface.
27 published interface XEventAttacher: com::sun::star::uno::XInterface
29 /** registers the given "AllListener" object as a listener at the
30 given interface by creating a suitable listener adapter and
31 calling the "addListener" method corresponding to the
32 "ListenerType".
34 com::sun::star::lang::XEventListener attachListener( [in] com::sun::star::uno::XInterface xTarget,
35 [in] com::sun::star::script::XAllListener xAllListener,
36 [in] any aHelper,
37 [in] string aListenerType,
38 [in] string aAddListenerParam )
39 raises( com::sun::star::lang::IllegalArgumentException,
40 com::sun::star::beans::IntrospectionException,
41 com::sun::star::script::CannotCreateAdapterException,
42 com::sun::star::lang::ServiceNotRegisteredException );
44 /** registers an object as a listener at the given interface by
45 creating a suitable listener adapter and calling the method
46 which corresponds to the listener type.
48 <p>Only the event corresponding to the given event method
49 will be delegated to <var>xAllListener</var>.</p>
51 com::sun::star::lang::XEventListener attachSingleEventListener( [in] com::sun::star::uno::XInterface xTarget,
52 [in] com::sun::star::script::XAllListener xAllListener,
53 [in] any aHelper,
54 [in] string aListenerType,
55 [in] string aAddListenerParam,
56 [in] string aEventMethod )
57 raises( com::sun::star::lang::IllegalArgumentException,
58 com::sun::star::beans::IntrospectionException,
59 com::sun::star::script::CannotCreateAdapterException,
60 com::sun::star::lang::ServiceNotRegisteredException );
62 /** removes a listener object as a listener from the given interface.
64 <p> This method can and should be used as a contrary method
65 to the two attach methods.</p>
67 void removeListener( [in] com::sun::star::uno::XInterface xTarget,
68 [in] string aListenerType,
69 [in] string aRemoveListenerParam,
70 [in] com::sun::star::lang::XEventListener xToRemoveListener )
71 raises( com::sun::star::lang::IllegalArgumentException,
72 com::sun::star::beans::IntrospectionException );
77 }; }; }; };
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */