1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #include <config_features.h>
22 #include <fmscriptingenv.hxx>
23 #include <svx/fmmodel.hxx>
25 #include <com/sun/star/awt/XControl.hpp>
26 #include <com/sun/star/beans/XPropertySet.hpp>
27 #include <com/sun/star/lang/DisposedException.hpp>
28 #include <com/sun/star/lang/EventObject.hpp>
29 #include <com/sun/star/lang/IllegalArgumentException.hpp>
30 #include <com/sun/star/script/XScriptListener.hpp>
32 #include <comphelper/diagnose_ex.hxx>
33 #include <tools/debug.hxx>
34 #include <cppuhelper/implbase.hxx>
36 #include <vcl/svapp.hxx>
38 #include <o3tl/sorted_vector.hxx>
39 #include <sfx2/objsh.hxx>
40 #include <sfx2/app.hxx>
41 #include <basic/basmgr.hxx>
44 #include <string_view>
52 using ::com::sun::star::uno::Reference
;
53 using ::com::sun::star::script::XEventAttacherManager
;
54 using ::com::sun::star::lang::IllegalArgumentException
;
55 using ::com::sun::star::script::XScriptListener
;
56 using ::com::sun::star::script::ScriptEvent
;
57 using ::com::sun::star::lang::EventObject
;
58 using ::com::sun::star::uno::Any
;
59 using ::com::sun::star::uno::UNO_QUERY_THROW
;
60 using ::com::sun::star::lang::DisposedException
;
61 using ::com::sun::star::uno::RuntimeException
;
62 using ::com::sun::star::uno::Exception
;
63 using ::com::sun::star::uno::Sequence
;
64 using ::com::sun::star::awt::XControl
;
65 using ::com::sun::star::beans::XPropertySet
;
67 //= FormScriptListener
69 typedef ::cppu::WeakImplHelper
< XScriptListener
70 > FormScriptListener_Base
;
72 /** implements the XScriptListener interface, is used by FormScriptingEnvironment
74 class FormScriptListener
:public FormScriptListener_Base
78 FormScriptingEnvironment
*m_pScriptExecutor
;
81 explicit FormScriptListener( FormScriptingEnvironment
* pScriptExecutor
);
84 virtual void SAL_CALL
firing( const ScriptEvent
& aEvent
) override
;
85 virtual Any SAL_CALL
approveFiring( const ScriptEvent
& aEvent
) override
;
87 virtual void SAL_CALL
disposing( const EventObject
& Source
) override
;
93 virtual ~FormScriptListener() override
;
96 /** determines whether calling a given method at a given listener interface can be done asynchronously
99 the name of the UNO type whose method is to be checked
101 the name of the method at the interface determined by _rListenerType
104 <TRUE/> if and only if the method is declared <code>oneway</code>, i.e. can be called asynchronously
106 static bool impl_allowAsynchronousCall_nothrow( std::u16string_view _rListenerType
, std::u16string_view _rMethodName
);
108 /** determines whether the instance is already disposed
110 bool impl_isDisposed_nothrow() const { return !m_pScriptExecutor
; }
112 /** fires the given script event in a thread-safe manner
114 This methods calls our script executor's doFireScriptEvent, with previously releasing the given mutex guard,
115 but ensuring that our script executor is not deleted between this release and the actual call.
118 a clearable guard to our mutex. Must be the only active guard to our mutex.
121 @param _pSynchronousResult
122 a place to take a possible result of the script call.
125 m_pScriptExecutor is not <NULL/>.
127 void impl_doFireScriptEvent_nothrow( std::unique_lock
<std::mutex
>& _rGuard
, const ScriptEvent
& _rEvent
, Any
* _pSynchronousResult
);
130 DECL_LINK( OnAsyncScriptEvent
, void*, void );
133 FormScriptListener::FormScriptListener( FormScriptingEnvironment
* pScriptExecutor
)
134 :m_pScriptExecutor( pScriptExecutor
)
139 FormScriptListener::~FormScriptListener()
144 bool FormScriptListener::impl_allowAsynchronousCall_nothrow( std::u16string_view _rListenerType
, std::u16string_view _rMethodName
)
146 // This used to be implemented as:
147 // is (_rListenerType + "::" + _rMethodName) a oneway function?
148 // since we got rid of the notion of oneway, this is the list
149 // of oneway methods, autogenerated by postprocessing of
150 // commitdiff 90eac3e69749a9227c4b6902b1f3cef1e338c6d1
151 static const o3tl::sorted_vector
<pair
<std::u16string_view
, std::u16string_view
>> delayed_event_listeners
{
152 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.accessibility.XAccessibleComponent",u
"grabFocus"),
153 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.accessibility.XAccessibleEventBroadcaster",u
"addAccessibleEventListener"),
154 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.accessibility.XAccessibleEventBroadcaster",u
"removeAccessibleEventListener"),
155 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.accessibility.XAccessibleSelection",u
"clearAccessibleSelection"),
156 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.accessibility.XAccessibleSelection",u
"selectAllAccessibleChildren"),
157 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XActionListener",u
"actionPerformed"),
158 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XActivateListener",u
"windowActivated"),
159 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XActivateListener",u
"windowDeactivated"),
160 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XAdjustmentListener",u
"adjustmentValueChanged"),
161 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XButton",u
"addActionListener"),
162 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XButton",u
"removeActionListener"),
163 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XButton",u
"setLabel"),
164 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XButton",u
"setActionCommand"),
165 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCheckBox",u
"addItemListener"),
166 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCheckBox",u
"removeItemListener"),
167 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCheckBox",u
"setState"),
168 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCheckBox",u
"setLabel"),
169 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCheckBox",u
"enableTriState"),
170 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"addItemListener"),
171 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"removeItemListener"),
172 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"addActionListener"),
173 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"removeActionListener"),
174 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"addItem"),
175 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"addItems"),
176 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"removeItems"),
177 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XComboBox",u
"setDropDownLineCount"),
178 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControl",u
"setContext"),
179 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControl",u
"createPeer"),
180 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControl",u
"setDesignMode"),
181 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControlContainer",u
"setStatusText"),
182 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControlContainer",u
"addControl"),
183 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XControlContainer",u
"removeControl"),
184 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setValue"),
185 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setMin"),
186 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setMax"),
187 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setFirst"),
188 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setLast"),
189 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setSpinSize"),
190 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setDecimalDigits"),
191 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XCurrencyField",u
"setStrictFormat"),
192 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setDate"),
193 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setMin"),
194 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setMax"),
195 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setFirst"),
196 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setLast"),
197 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setLongFormat"),
198 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDateField",u
"setStrictFormat"),
199 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDialog",u
"setTitle"),
200 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDisplayConnection",u
"addEventHandler"),
201 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDisplayConnection",u
"removeEventHandler"),
202 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDisplayConnection",u
"addErrorHandler"),
203 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XDisplayConnection",u
"removeErrorHandler"),
204 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"addTopWindowListener"),
205 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"removeTopWindowListener"),
206 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"addKeyHandler"),
207 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"removeKeyHandler"),
208 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"addFocusListener"),
209 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"removeFocusListener"),
210 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"fireFocusGained"),
211 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XExtendedToolkit",u
"fireFocusLost"),
212 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFileDialog",u
"setPath"),
213 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFileDialog",u
"setFilters"),
214 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFileDialog",u
"setCurrentFilter"),
215 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedHyperlink",u
"setText"),
216 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedHyperlink",u
"setURL"),
217 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedHyperlink",u
"setAlignment"),
218 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedHyperlink",u
"addActionListener"),
219 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedHyperlink",u
"removeActionListener"),
220 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedText",u
"setText"),
221 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFixedText",u
"setAlignment"),
222 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFocusListener",u
"focusGained"),
223 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XFocusListener",u
"focusLost"),
224 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setFont"),
225 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"selectFont"),
226 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setTextColor"),
227 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setTextFillColor"),
228 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setLineColor"),
229 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setFillColor"),
230 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setRasterOp"),
231 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"setClipRegion"),
232 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"intersectClipRegion"),
233 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"push"),
234 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"pop"),
235 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"copy"),
236 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"draw"),
237 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawPixel"),
238 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawLine"),
239 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawRect"),
240 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawRoundedRect"),
241 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawPolyLine"),
242 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawPolygon"),
243 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawPolyPolygon"),
244 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawEllipse"),
245 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawArc"),
246 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawPie"),
247 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawChord"),
248 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawGradient"),
249 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawText"),
250 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XGraphics",u
"drawTextArray"),
251 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageButton",u
"addActionListener"),
252 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageButton",u
"removeActionListener"),
253 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageButton",u
"setActionCommand"),
254 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageConsumer",u
"init"),
255 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageConsumer",u
"setColorModel"),
256 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageConsumer",u
"setPixelsByBytes"),
257 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageConsumer",u
"setPixelsByLongs"),
258 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageConsumer",u
"complete"),
259 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageProducer",u
"addConsumer"),
260 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageProducer",u
"removeConsumer"),
261 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XImageProducer",u
"startProduction"),
262 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XItemEventBroadcaster",u
"addItemListener"),
263 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XItemEventBroadcaster",u
"removeItemListener"),
264 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XItemListener",u
"itemStateChanged"),
265 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XKeyListener",u
"keyPressed"),
266 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XKeyListener",u
"keyReleased"),
267 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"addItemListener"),
268 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"removeItemListener"),
269 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"addActionListener"),
270 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"removeActionListener"),
271 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"addItem"),
272 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"addItems"),
273 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"removeItems"),
274 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"selectItemPos"),
275 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"selectItemsPos"),
276 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"selectItem"),
277 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"setMultipleMode"),
278 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"setDropDownLineCount"),
279 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XListBox",u
"makeVisible"),
280 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"addMenuListener"),
281 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"removeMenuListener"),
282 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"insertItem"),
283 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"removeItem"),
284 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"enableItem"),
285 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"setItemText"),
286 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenu",u
"setPopupMenu"),
287 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenuListener",u
"highlight"),
288 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenuListener",u
"select"),
289 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenuListener",u
"activate"),
290 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMenuListener",u
"deactivate"),
291 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMessageBox",u
"setCaptionText"),
292 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMessageBox",u
"setMessageText"),
293 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMouseListener",u
"mousePressed"),
294 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMouseListener",u
"mouseReleased"),
295 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMouseListener",u
"mouseEntered"),
296 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XMouseListener",u
"mouseExited"),
297 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setValue"),
298 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setMin"),
299 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setMax"),
300 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setFirst"),
301 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setLast"),
302 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setSpinSize"),
303 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setDecimalDigits"),
304 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XNumericField",u
"setStrictFormat"),
305 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPaintListener",u
"windowPaint"),
306 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPatternField",u
"setMasks"),
307 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPatternField",u
"setString"),
308 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPatternField",u
"setStrictFormat"),
309 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPointer",u
"setType"),
310 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPopupMenu",u
"insertSeparator"),
311 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPopupMenu",u
"setDefaultItem"),
312 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XPopupMenu",u
"checkItem"),
313 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressBar",u
"setForegroundColor"),
314 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressBar",u
"setBackgroundColor"),
315 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressBar",u
"setRange"),
316 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressBar",u
"setValue"),
317 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressMonitor",u
"addText"),
318 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressMonitor",u
"removeText"),
319 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XProgressMonitor",u
"updateText"),
320 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRadioButton",u
"addItemListener"),
321 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRadioButton",u
"removeItemListener"),
322 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRadioButton",u
"setState"),
323 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRadioButton",u
"setLabel"),
324 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"clear"),
325 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"move"),
326 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"unionRectangle"),
327 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"intersectRectangle"),
328 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"excludeRectangle"),
329 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"xOrRectangle"),
330 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"unionRegion"),
331 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"intersectRegion"),
332 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"excludeRegion"),
333 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XRegion",u
"xOrRegion"),
334 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"addAdjustmentListener"),
335 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"removeAdjustmentListener"),
336 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setValue"),
337 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setValues"),
338 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setMaximum"),
339 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setLineIncrement"),
340 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setBlockIncrement"),
341 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setVisibleSize"),
342 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XScrollBar",u
"setOrientation"),
343 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"addSpinListener"),
344 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"removeSpinListener"),
345 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"up"),
346 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"down"),
347 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"first"),
348 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"last"),
349 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinField",u
"enableRepeat"),
350 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinListener",u
"up"),
351 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinListener",u
"down"),
352 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinListener",u
"first"),
353 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinListener",u
"last"),
354 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"addAdjustmentListener"),
355 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"removeAdjustmentListener"),
356 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"setValue"),
357 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"setValues"),
358 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"setMinimum"),
359 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"setMaximum"),
360 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XSpinValue",u
"setSpinIncrement"),
361 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"setModel"),
362 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"setContainer"),
363 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"autoTabOrder"),
364 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"activateTabOrder"),
365 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"activateFirst"),
366 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabController",u
"activateLast"),
367 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabControllerModel",u
"setGroupControl"),
368 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabControllerModel",u
"setControlModels"),
369 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTabControllerModel",u
"setGroup"),
370 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"addTextListener"),
371 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"removeTextListener"),
372 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"setText"),
373 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"insertText"),
374 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"setSelection"),
375 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"setEditable"),
376 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextComponent",u
"setMaxTextLen"),
377 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextEditField",u
"setEchoChar"),
378 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTextListener",u
"textChanged"),
379 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setTime"),
380 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setMin"),
381 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setMax"),
382 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setFirst"),
383 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setLast"),
384 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTimeField",u
"setStrictFormat"),
385 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindow",u
"addTopWindowListener"),
386 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindow",u
"removeTopWindowListener"),
387 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindow",u
"toFront"),
388 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindow",u
"toBack"),
389 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindow",u
"setMenuBar"),
390 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowOpened"),
391 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowClosing"),
392 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowClosed"),
393 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowMinimized"),
394 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowNormalized"),
395 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowActivated"),
396 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XTopWindowListener",u
"windowDeactivated"),
397 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUnoControlContainer",u
"setTabControllers"),
398 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUnoControlContainer",u
"addTabController"),
399 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUnoControlContainer",u
"removeTabController"),
400 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUserInputInterception",u
"addKeyHandler"),
401 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUserInputInterception",u
"removeKeyHandler"),
402 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUserInputInterception",u
"addMouseClickHandler"),
403 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XUserInputInterception",u
"removeMouseClickHandler"),
404 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainer",u
"addVclContainerListener"),
405 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainer",u
"removeVclContainerListener"),
406 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainerListener",u
"windowAdded"),
407 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainerListener",u
"windowRemoved"),
408 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainerPeer",u
"enableDialogControl"),
409 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainerPeer",u
"setTabOrder"),
410 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclContainerPeer",u
"setGroup"),
411 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclWindowPeer",u
"setDesignMode"),
412 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclWindowPeer",u
"enableClipSiblings"),
413 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclWindowPeer",u
"setForeground"),
414 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XVclWindowPeer",u
"setControlFont"),
415 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XView",u
"draw"),
416 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XView",u
"setZoom"),
417 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"setPosSize"),
418 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"setVisible"),
419 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"setEnable"),
420 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"setFocus"),
421 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addWindowListener"),
422 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removeWindowListener"),
423 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addFocusListener"),
424 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removeFocusListener"),
425 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addKeyListener"),
426 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removeKeyListener"),
427 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addMouseListener"),
428 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removeMouseListener"),
429 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addMouseMotionListener"),
430 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removeMouseMotionListener"),
431 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"addPaintListener"),
432 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindow",u
"removePaintListener"),
433 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener",u
"windowResized"),
434 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener",u
"windowMoved"),
435 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener",u
"windowShown"),
436 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener",u
"windowHidden"),
437 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener2",u
"windowEnabled"),
438 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowListener2",u
"windowDisabled"),
439 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowPeer",u
"setPointer"),
440 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowPeer",u
"setBackground"),
441 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowPeer",u
"invalidate"),
442 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.XWindowPeer",u
"invalidateRect"),
443 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.grid.XGridSelectionListener",u
"selectionChanged"),
444 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.tab.XTabPageContainer",u
"addTabPageContainerListener"),
445 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.tab.XTabPageContainer",u
"removeTabPageContainerListener"),
446 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.awt.tab.XTabPageContainerListener",u
"tabPageActivated"),
447 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.configuration.backend.XBackendChangesNotifier",u
"addChangesListener"),
448 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.configuration.backend.XBackendChangesNotifier",u
"removeChangesListener"),
449 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.clipboard.XClipboard",u
"setContents"),
450 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.clipboard.XClipboardListener",u
"changedContents"),
451 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.clipboard.XClipboardNotifier",u
"addClipboardListener"),
452 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.clipboard.XClipboardNotifier",u
"removeClipboardListener"),
453 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.clipboard.XClipboardOwner",u
"lostOwnership"),
454 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XAutoscroll",u
"autoscroll"),
455 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragGestureListener",u
"dragGestureRecognized"),
456 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragGestureRecognizer",u
"addDragGestureListener"),
457 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragGestureRecognizer",u
"removeDragGestureListener"),
458 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSource",u
"startDrag"),
459 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceContext",u
"setCursor"),
460 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceContext",u
"setImage"),
461 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceContext",u
"transferablesFlavorsChanged"),
462 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceListener",u
"dragDropEnd"),
463 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceListener",u
"dragEnter"),
464 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceListener",u
"dragExit"),
465 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceListener",u
"dragOver"),
466 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDragSourceListener",u
"dropActionChanged"),
467 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTarget",u
"addDropTargetListener"),
468 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTarget",u
"removeDropTargetListener"),
469 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTarget",u
"setDefaultActions"),
470 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetDragContext",u
"acceptDrag"),
471 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetDragContext",u
"rejectDrag"),
472 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetDropContext",u
"acceptDrop"),
473 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetDropContext",u
"rejectDrop"),
474 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetDropContext",u
"dropComplete"),
475 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetListener",u
"dragEnter"),
476 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetListener",u
"dragExit"),
477 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetListener",u
"dragOver"),
478 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.datatransfer.dnd.XDropTargetListener",u
"dropActionChanged"),
479 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.document.XEventBroadcaster",u
"addEventListener"),
480 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.document.XEventBroadcaster",u
"removeEventListener"),
481 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.document.XEventListener",u
"notifyEvent"),
482 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.document.XStorageChangeListener",u
"notifyStorageChange"),
483 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.drawing.XControlShape",u
"setControl"),
484 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XApproveActionBroadcaster",u
"addApproveActionListener"),
485 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XApproveActionBroadcaster",u
"removeApproveActionListener"),
486 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XBoundControl",u
"setLock"),
487 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XChangeBroadcaster",u
"addChangeListener"),
488 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XChangeBroadcaster",u
"removeChangeListener"),
489 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XChangeListener",u
"changed"),
490 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XConfirmDeleteBroadcaster",u
"addConfirmDeleteListener"),
491 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XConfirmDeleteBroadcaster",u
"removeConfirmDeleteListener"),
492 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XDatabaseParameterBroadcaster",u
"addParameterListener"),
493 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XDatabaseParameterBroadcaster",u
"removeParameterListener"),
494 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XDatabaseParameterBroadcaster2",u
"addDatabaseParameterListener"),
495 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XDatabaseParameterBroadcaster2",u
"removeDatabaseParameterListener"),
496 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XErrorBroadcaster",u
"addErrorListener"),
497 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XErrorBroadcaster",u
"removeErrorListener"),
498 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XFormController",u
"addActivateListener"),
499 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XFormController",u
"removeActivateListener"),
500 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XFormControllerListener",u
"formActivated"),
501 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XFormControllerListener",u
"formDeactivated"),
502 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XGrid",u
"setCurrentColumnPosition"),
503 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XGridPeer",u
"setColumns"),
504 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadListener",u
"loaded"),
505 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadListener",u
"unloading"),
506 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadListener",u
"unloaded"),
507 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadListener",u
"reloading"),
508 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadListener",u
"reloaded"),
509 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadable",u
"load"),
510 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadable",u
"unload"),
511 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadable",u
"reload"),
512 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadable",u
"addLoadListener"),
513 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XLoadable",u
"removeLoadListener"),
514 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XPositioningListener",u
"positioned"),
515 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XReset",u
"reset"),
516 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XReset",u
"addResetListener"),
517 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XReset",u
"removeResetListener"),
518 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XResetListener",u
"resetted"),
519 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XSubmit",u
"submit"),
520 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XSubmit",u
"addSubmitListener"),
521 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XSubmit",u
"removeSubmitListener"),
522 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XUpdateBroadcaster",u
"addUpdateListener"),
523 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.form.XUpdateBroadcaster",u
"removeUpdateListener"),
524 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XBrowseHistoryRegistry",u
"updateViewData"),
525 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XBrowseHistoryRegistry",u
"createNewEntry"),
526 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XConfigManager",u
"addPropertyChangeListener"),
527 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XConfigManager",u
"removePropertyChangeListener"),
528 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XConfigManager",u
"flush"),
529 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDesktop",u
"addTerminateListener"),
530 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDesktop",u
"removeTerminateListener"),
531 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDispatch",u
"dispatch"),
532 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDispatch",u
"addStatusListener"),
533 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDispatch",u
"removeStatusListener"),
534 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XDocumentTemplates",u
"update"),
535 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"setCreator"),
536 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"setName"),
537 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"activate"),
538 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"deactivate"),
539 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"addFrameActionListener"),
540 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrame",u
"removeFrameActionListener"),
541 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrameActionListener",u
"frameAction"),
542 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrameLoader",u
"load"),
543 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XFrameLoader",u
"cancel"),
544 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XLoadEventListener",u
"loadFinished"),
545 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XLoadEventListener",u
"loadCancelled"),
546 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XModel",u
"connectController"),
547 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XModel",u
"disconnectController"),
548 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XModel",u
"lockControllers"),
549 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XModel",u
"unlockControllers"),
550 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XNotifyingDispatch",u
"dispatchWithNotification"),
551 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XRecordableDispatch",u
"dispatchAndRecord"),
552 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerClient",u
"addSessionManagerListener"),
553 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerClient",u
"removeSessionManagerListener"),
554 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerClient",u
"queryInteraction"),
555 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerClient",u
"interactionDone"),
556 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerClient",u
"saveDone"),
557 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerListener",u
"doSave"),
558 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerListener",u
"approveInteraction"),
559 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerListener",u
"shutdownCanceled"),
560 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XSessionManagerListener2",u
"doQuit"),
561 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XStatusListener",u
"statusChanged"),
562 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XTask",u
"tileWindows"),
563 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XTask",u
"arrangeWindowsVertical"),
564 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XTask",u
"arrangeWindowsHorizontal"),
565 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.frame.XWindowArranger",u
"arrange"),
566 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.inspection.XPropertyControlContext",u
"activateNextControl"),
567 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.inspection.XPropertyControlObserver",u
"focusGained"),
568 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.inspection.XPropertyControlObserver",u
"valueChanged"),
569 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XCloseSessionListener",u
"sessionClosed"),
570 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XMenuProxy",u
"addMenuProxyListener"),
571 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XMenuProxy",u
"removeMenuProxyListener"),
572 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"start"),
573 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"stop"),
574 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"destroy"),
575 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"createWindow"),
576 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"newStream"),
577 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstance",u
"newURL"),
578 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstanceNotifySink",u
"notifyURL"),
579 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstancePeer",u
"showStatusMessage"),
580 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstancePeer",u
"enableScripting"),
581 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstancePeer",u
"newStream"),
582 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstancePeer",u
"getURL"),
583 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginInstancePeer",u
"postURL"),
584 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.mozilla.XPluginWindowPeer",u
"setChildWindow"),
585 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.script.vba.XVBACompatibility",u
"addVBAScriptListener"),
586 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.script.vba.XVBACompatibility",u
"removeVBAScriptListener"),
587 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XDatabaseAccess",u
"addDatabaseAccessListener"),
588 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XDatabaseAccess",u
"removeDatabaseAccessListener"),
589 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XDatabaseAccessListener",u
"connectionChanged"),
590 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XDatabaseAccessListener",u
"connectionClosing"),
591 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XRowSetApproveBroadcaster",u
"addRowSetApproveListener"),
592 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XRowSetApproveBroadcaster",u
"removeRowSetApproveListener"),
593 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XRowSetChangeListener",u
"onRowSetChanged"),
594 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XRowSetSupplier",u
"setRowSet"),
595 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XRowsChangeListener",u
"rowsChanged"),
596 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XSQLErrorBroadcaster",u
"addSQLErrorListener"),
597 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdb.XSQLErrorBroadcaster",u
"removeSQLErrorListener"),
598 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdbc.XRowSet",u
"addRowSetListener"),
599 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdbc.XRowSet",u
"removeRowSetListener"),
600 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdbc.XRowSetListener",u
"cursorMoved"),
601 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdbc.XRowSetListener",u
"rowChanged"),
602 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sdbc.XRowSetListener",u
"rowSetChanged"),
603 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sheet.XCalculatable",u
"enableAutomaticCalculation"),
604 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sheet.XVolatileResult",u
"addResultListener"),
605 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.sheet.XVolatileResult",u
"removeResultListener"),
606 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XJobExecutor",u
"trigger"),
607 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XStatusIndicator",u
"start"),
608 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XStatusIndicator",u
"end"),
609 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XStatusIndicator",u
"setText"),
610 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XStatusIndicator",u
"setValue"),
611 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.task.XStatusIndicator",u
"reset"),
612 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.text.XSimpleText",u
"insertString"),
613 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.text.XTextCursor",u
"collapseToStart"),
614 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.text.XTextCursor",u
"collapseToEnd"),
615 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.text.XTextRange",u
"setString"),
616 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.text.XTextViewCursor",u
"setVisible"),
617 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XCommandProcessor",u
"abort"),
618 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XCommandProcessor2",u
"releaseCommandIdentifier"),
619 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XContent",u
"addContentEventListener"),
620 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XContent",u
"removeContentEventListener"),
621 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XContentProviderManager",u
"deregisterContentProvider"),
622 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XContentTransmitter",u
"transmit"),
623 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ucb.XPropertySetRegistry",u
"removePropertySet"),
624 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ui.XUIConfigurationListener",u
"elementInserted"),
625 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ui.XUIConfigurationListener",u
"elementRemoved"),
626 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ui.XUIConfigurationListener",u
"elementReplaced"),
627 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ui.dialogs.XFilePickerNotifier",u
"addFilePickerListener"),
628 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.ui.dialogs.XFilePickerNotifier",u
"removeFilePickerListener"),
629 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XBroadcaster",u
"lockBroadcasts"),
630 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XBroadcaster",u
"unlockBroadcasts"),
631 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XChangesListener",u
"changesOccurred"),
632 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XChangesNotifier",u
"addChangesListener"),
633 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XChangesNotifier",u
"removeChangesListener"),
634 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XCloseBroadcaster",u
"addCloseListener"),
635 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XCloseBroadcaster",u
"removeCloseListener"),
636 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XFlushable",u
"addFlushListener"),
637 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XFlushable",u
"removeFlushListener"),
638 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XModeChangeListener",u
"modeChanged"),
639 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XModifyBroadcaster",u
"addModifyListener"),
640 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XModifyBroadcaster",u
"removeModifyListener"),
641 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XRefreshable",u
"addRefreshListener"),
642 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XRefreshable",u
"removeRefreshListener"),
643 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.util.XSearchDescriptor",u
"setSearchString"),
644 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintJobBroadcaster",u
"addPrintJobListener"),
645 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintJobBroadcaster",u
"removePrintJobListener"),
646 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintJobListener",u
"printJobEvent"),
647 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintableBroadcaster",u
"addPrintableListener"),
648 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintableBroadcaster",u
"removePrintableListener"),
649 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XPrintableListener",u
"stateChanged"),
650 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.view.XSelectionChangeListener",u
"selectionChanged"),
651 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.beans.XMultiPropertySet",u
"addPropertiesChangeListener"),
652 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.beans.XMultiPropertySet",u
"removePropertiesChangeListener"),
653 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.beans.XMultiPropertySet",u
"firePropertiesChangeEvent"),
654 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.beans.XPropertiesChangeNotifier",u
"addPropertiesChangeListener"),
655 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.beans.XPropertiesChangeNotifier",u
"removePropertiesChangeListener"),
656 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XContainer",u
"addContainerListener"),
657 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XContainer",u
"removeContainerListener"),
658 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XContainerListener",u
"elementInserted"),
659 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XContainerListener",u
"elementRemoved"),
660 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XContainerListener",u
"elementReplaced"),
661 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.container.XNamed",u
"setName"),
662 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataExporter",u
"exportData"),
663 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataExporter",u
"cancel"),
664 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataImporter",u
"importData"),
665 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataImporter",u
"cancel"),
666 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataTransferEventListener",u
"finished"),
667 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.io.XDataTransferEventListener",u
"cancelled"),
668 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.lang.XConnectionPointContainer",u
"advise"),
669 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.lang.XConnectionPointContainer",u
"unadvise"),
670 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.script.XAllListener",u
"firing"),
671 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.uno.XInterface",u
"acquire"),
672 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.uno.XInterface",u
"release"),
673 pair
<std::u16string_view
,std::u16string_view
>(u
"com.sun.star.uno.XReference",u
"dispose")};
675 pair
<std::u16string_view
,std::u16string_view
> k(_rListenerType
, _rMethodName
);
676 return delayed_event_listeners
.find(k
) != delayed_event_listeners
.end();
680 void FormScriptListener::impl_doFireScriptEvent_nothrow( std::unique_lock
<std::mutex
>& _rGuard
, const ScriptEvent
& _rEvent
, Any
* _pSynchronousResult
)
682 OSL_PRECOND( m_pScriptExecutor
, "FormScriptListener::impl_doFireScriptEvent_nothrow: this will crash!" );
685 m_pScriptExecutor
->doFireScriptEvent( _rEvent
, _pSynchronousResult
);
689 void SAL_CALL
FormScriptListener::firing( const ScriptEvent
& _rEvent
)
691 if ( _rEvent
.ScriptType
== "VBAInterop" )
692 return; // not handled here
694 std::unique_lock
aGuard( m_aMutex
);
696 if ( impl_isDisposed_nothrow() )
699 if ( !impl_allowAsynchronousCall_nothrow( _rEvent
.ListenerType
.getTypeName(), _rEvent
.MethodName
) )
701 impl_doFireScriptEvent_nothrow( aGuard
, _rEvent
, nullptr );
706 Application::PostUserEvent( LINK( this, FormScriptListener
, OnAsyncScriptEvent
), new ScriptEvent( _rEvent
) );
710 Any SAL_CALL
FormScriptListener::approveFiring( const ScriptEvent
& _rEvent
)
714 std::unique_lock
aGuard( m_aMutex
);
715 if ( !impl_isDisposed_nothrow() )
716 impl_doFireScriptEvent_nothrow( aGuard
, _rEvent
, &aResult
);
722 void SAL_CALL
FormScriptListener::disposing( const EventObject
& /*Source*/ )
728 void FormScriptListener::dispose()
730 std::unique_lock
aGuard( m_aMutex
);
731 m_pScriptExecutor
= nullptr;
734 IMPL_LINK( FormScriptListener
, OnAsyncScriptEvent
, void*, p
, void )
736 ScriptEvent
* _pEvent
= static_cast<ScriptEvent
*>(p
);
737 OSL_PRECOND( _pEvent
!= nullptr, "FormScriptListener::OnAsyncScriptEvent: invalid event!" );
742 std::unique_lock
aGuard( m_aMutex
);
744 if ( !impl_isDisposed_nothrow() )
745 impl_doFireScriptEvent_nothrow( aGuard
, *_pEvent
, nullptr );
749 // we acquired ourself immediately before posting the event
753 FormScriptingEnvironment::FormScriptingEnvironment( FmFormModel
& _rModel
)
754 :m_rFormModel( _rModel
)
755 ,m_bDisposed( false )
757 m_pScriptListener
= new FormScriptListener( this );
758 // note that this is a cyclic reference between the FormScriptListener and the FormScriptingEnvironment
759 // This cycle is broken up when our instance is disposed.
762 void FormScriptingEnvironment::impl_registerOrRevoke_throw( const Reference
< XEventAttacherManager
>& _rxManager
, bool _bRegister
)
764 std::unique_lock
aGuard( m_aMutex
);
766 if ( !_rxManager
.is() )
767 throw IllegalArgumentException();
769 throw DisposedException();
774 _rxManager
->addScriptListener( m_pScriptListener
);
776 _rxManager
->removeScriptListener( m_pScriptListener
);
778 catch( const RuntimeException
& ) { throw; }
779 catch( const Exception
& )
781 DBG_UNHANDLED_EXCEPTION("svx");
786 void FormScriptingEnvironment::registerEventAttacherManager( const Reference
< XEventAttacherManager
>& _rxManager
)
788 impl_registerOrRevoke_throw( _rxManager
, true );
792 void FormScriptingEnvironment::revokeEventAttacherManager( const Reference
< XEventAttacherManager
>& _rxManager
)
794 impl_registerOrRevoke_throw( _rxManager
, false );
797 #if HAVE_FEATURE_SCRIPTING
800 class NewStyleUNOScript
802 SfxObjectShell
& m_rObjectShell
;
803 const OUString m_sScriptCode
;
806 NewStyleUNOScript( SfxObjectShell
& _rObjectShell
, OUString _aScriptCode
)
807 :m_rObjectShell( _rObjectShell
)
808 ,m_sScriptCode(std::move( _aScriptCode
))
812 void invoke( const Sequence
< Any
>& _rArguments
, Any
& _rSynchronousResult
);
816 void NewStyleUNOScript::invoke( const Sequence
< Any
>& _rArguments
, Any
& _rSynchronousResult
)
818 Sequence
< sal_Int16
> aOutArgsIndex
;
819 Sequence
< Any
> aOutArgs
;
822 if ( _rArguments
.hasElements() && ( _rArguments
[ 0 ] >>= aEvent
) )
826 Reference
< XControl
> xControl( aEvent
.Source
, UNO_QUERY_THROW
);
827 Reference
< XPropertySet
> xProps( xControl
->getModel(), UNO_QUERY_THROW
);
828 aCaller
= xProps
->getPropertyValue(u
"Name"_ustr
);
830 catch( Exception
& ) {}
832 m_rObjectShell
.CallXScript( m_sScriptCode
, _rArguments
, _rSynchronousResult
, aOutArgsIndex
, aOutArgs
, true, aCaller
.hasValue() ? &aCaller
: nullptr );
837 void FormScriptingEnvironment::doFireScriptEvent( const ScriptEvent
& _rEvent
, Any
* _pSynchronousResult
)
839 #if !HAVE_FEATURE_SCRIPTING
841 (void) _pSynchronousResult
;
844 SolarMutexClearableGuard aSolarGuard
;
845 std::unique_lock
aGuard( m_aMutex
);
850 // SfxObjectShellRef is good here since the model controls the lifetime of the object
851 SfxObjectShellRef xObjectShell
= m_rFormModel
.GetObjectShell();
852 if( !xObjectShell
.is() )
855 // the script to execute
856 std::shared_ptr
< NewStyleUNOScript
> pScript
;
858 if ( _rEvent
.ScriptType
!= "StarBasic" )
860 pScript
= std::make_shared
<NewStyleUNOScript
>( *xObjectShell
, _rEvent
.ScriptCode
);
864 OUString sScriptCode
= _rEvent
.ScriptCode
;
865 OUString sMacroLocation
;
867 // is there a location in the script name ("application" or "document")?
868 sal_Int32 nPrefixLen
= sScriptCode
.indexOf( ':' );
869 DBG_ASSERT( 0 <= nPrefixLen
, "FormScriptingEnvironment::doFireScriptEvent: Basic script name in old format encountered!" );
871 if ( 0 <= nPrefixLen
)
873 // and it has such a prefix
874 sMacroLocation
= sScriptCode
.copy( 0, nPrefixLen
);
875 DBG_ASSERT( sMacroLocation
== "document"
876 || sMacroLocation
== "application",
877 "FormScriptingEnvironment::doFireScriptEvent: invalid (unknown) prefix!" );
879 // strip the prefix: the SfxObjectShell::CallScript knows nothing about such prefixes
880 sScriptCode
= sScriptCode
.copy( nPrefixLen
+ 1 );
883 if ( sMacroLocation
.isEmpty() )
885 // legacy format: use the app-wide Basic, if it has a respective method, otherwise fall back to the doc's Basic
886 if ( SfxApplication::GetBasicManager()->HasMacro( sScriptCode
) )
887 sMacroLocation
= "application";
889 sMacroLocation
= "document";
892 OUString sScriptURI
= "vnd.sun.star.script:" +
894 "?language=Basic&location=" +
897 pScript
= std::make_shared
<NewStyleUNOScript
>( *xObjectShell
, sScriptURI
);
900 assert(pScript
&& "FormScriptingEnvironment::doFireScriptEvent: no script to execute!");
906 pScript
->invoke( _rEvent
.Arguments
, _pSynchronousResult
? *_pSynchronousResult
: aIgnoreResult
);
910 // object shells are not thread safe, so guard the destruction
911 SolarMutexGuard aSolarGuarsReset
;
912 xObjectShell
= nullptr;
918 void FormScriptingEnvironment::dispose()
920 rtl::Reference
<FormScriptListener
> xListener
;
922 std::unique_lock
aGuard( m_aMutex
);
926 xListener
= std::move(m_pScriptListener
);
928 xListener
->dispose();
934 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */