LibreOffice Module extensions (master) 1
genericpropertyhandler.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
22#include "handlerhelper.hxx"
23
24#include <com/sun/star/container/XHierarchicalNameAccess.hpp>
25#include <com/sun/star/lang/NullPointerException.hpp>
26#include <com/sun/star/reflection/XEnumTypeDescription.hpp>
27#include <com/sun/star/beans/theIntrospection.hpp>
28#include <com/sun/star/inspection/PropertyControlType.hpp>
29#include <com/sun/star/inspection/XHyperlinkControl.hpp>
30#include <com/sun/star/awt/XActionListener.hpp>
31#include <com/sun/star/script/Converter.hpp>
32#include <com/sun/star/util/URLTransformer.hpp>
33#include <com/sun/star/util/XURLTransformer.hpp>
34#include <com/sun/star/frame/Desktop.hpp>
35
41#include <comphelper/types.hxx>
42#include <o3tl/safeint.hxx>
43#include <tools/debug.hxx>
45
46#include <algorithm>
47
48namespace pcr
49{
50
51 using namespace ::com::sun::star::uno;
52 using namespace ::com::sun::star::beans;
53 using namespace ::com::sun::star::script;
54 using namespace ::com::sun::star::frame;
55 using namespace ::com::sun::star::lang;
56 using namespace ::com::sun::star::util;
57 using namespace ::com::sun::star::container;
58 using namespace ::com::sun::star::reflection;
59 using namespace ::com::sun::star::inspection;
60 using ::com::sun::star::awt::XActionListener;
61 using ::com::sun::star::awt::ActionEvent;
62
63 namespace {
64
65 class EnumRepresentation : public IPropertyEnumRepresentation
66 {
67 private:
68 Reference< XEnumTypeDescription > m_xTypeDescription;
69 Type m_aEnumType;
70
71 public:
72 EnumRepresentation( const Reference< XComponentContext >& _rxContext, const Type& _rEnumType );
73 EnumRepresentation(const EnumRepresentation&) = delete;
74 EnumRepresentation& operator=(const EnumRepresentation&) = delete;
75
76 // IPropertyEnumRepresentation implementqation
77 virtual std::vector< OUString >
78 getDescriptions() const override;
79 virtual void getValueFromDescription( const OUString& _rDescription, css::uno::Any& _out_rValue ) const override;
80 virtual OUString getDescriptionForValue( const css::uno::Any& _rEnumValue ) const override;
81
82 private:
83 void impl_getValues( Sequence< sal_Int32 >& _out_rValues ) const;
84 };
85
86 }
87
88 EnumRepresentation::EnumRepresentation( const Reference< XComponentContext >& _rxContext, const Type& _rEnumType )
89 :m_aEnumType( _rEnumType )
90 {
91 try
92 {
93 if ( _rxContext.is() )
94 {
95 Reference< XHierarchicalNameAccess > xTypeDescProv(
96 _rxContext->getValueByName("/singletons/com.sun.star.reflection.theTypeDescriptionManager"),
97 UNO_QUERY_THROW );
98
99 m_xTypeDescription.set( xTypeDescProv->getByHierarchicalName( m_aEnumType.getTypeName() ), UNO_QUERY_THROW );
100 }
101 }
102 catch( const Exception& )
103 {
104 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "EnumRepresentation::EnumRepresentation" );
105 }
106 }
107
108 std::vector< OUString > EnumRepresentation::getDescriptions() const
109 {
110 Sequence< OUString > aNames;
111 try
112 {
113 if ( m_xTypeDescription.is() )
114 aNames = m_xTypeDescription->getEnumNames();
115 }
116 catch( const Exception& )
117 {
118 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "EnumRepresentation::getDescriptions" );
119 }
120
121 return std::vector< OUString >( std::cbegin(aNames), std::cend(aNames) );
122 }
123
124 void EnumRepresentation::impl_getValues( Sequence< sal_Int32 >& _out_rValues ) const
125 {
126 _out_rValues.realloc( 0 );
127 try
128 {
129 if ( m_xTypeDescription.is() )
130 _out_rValues = m_xTypeDescription->getEnumValues();
131 }
132 catch( const Exception& )
133 {
134 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "EnumRepresentation::impl_getValues" );
135 }
136 }
137
138 void EnumRepresentation::getValueFromDescription( const OUString& _rDescription, Any& _out_rValue ) const
139 {
140 std::vector< OUString > aDescriptions( getDescriptions() );
141
142 sal_Int32 index = std::find( aDescriptions.begin(), aDescriptions.end(),
143 _rDescription ) - aDescriptions.begin();
144
145 Sequence< sal_Int32 > aValues;
146 impl_getValues( aValues );
147
148 if ( ( index >= 0 ) && ( index < aValues.getLength() ) )
149 _out_rValue = ::cppu::int2enum( aValues[ index ], m_aEnumType );
150 else
151 {
152 OSL_FAIL( "EnumRepresentation::getValueFromDescription: cannot convert!" );
153 _out_rValue.clear();
154 }
155 }
156
157 OUString EnumRepresentation::getDescriptionForValue( const Any& _rEnumValue ) const
158 {
159 OUString sDescription;
160
161 sal_Int32 nAsInt = 0;
162 OSL_VERIFY( ::cppu::enum2int( nAsInt, _rEnumValue ) );
163
164 Sequence< sal_Int32 > aValues;
165 impl_getValues( aValues );
166
167 sal_Int32 index = std::find( std::cbegin(aValues), std::cend(aValues), nAsInt ) - std::cbegin(aValues);
168
169 std::vector< OUString > aDescriptions( getDescriptions() );
170 if ( ( index >= 0 ) && ( o3tl::make_unsigned(index) < aDescriptions.size() ) )
171 sDescription = aDescriptions[ index ];
172 else
173 {
174 OSL_FAIL( "EnumRepresentation::getDescriptionForValue: cannot convert!" );
175 }
176 return sDescription;
177 }
178
179 typedef ::cppu::WeakImplHelper < XActionListener
181
182 namespace {
183
184 class UrlClickHandler : public UrlClickHandler_Base
185 {
186 Reference<XComponentContext> m_xContext;
187 public:
188 UrlClickHandler( const Reference<XComponentContext>& _rContext, const Reference< XHyperlinkControl >& _rxControl );
189
190 protected:
191 virtual ~UrlClickHandler() override;
192
193 // XActionListener
194 virtual void SAL_CALL actionPerformed( const ActionEvent& rEvent ) override;
195
196 // XEventListener
197 virtual void SAL_CALL disposing( const EventObject& Source ) override;
198
199 protected:
200 void impl_dispatch_throw( const OUString& _rURL );
201 };
202
203 }
204
205 UrlClickHandler::UrlClickHandler( const Reference<XComponentContext>& _rContext, const Reference< XHyperlinkControl >& _rxControl )
206 :m_xContext( _rContext )
207 {
208 if ( !_rxControl.is() )
209 throw NullPointerException();
210
211 osl_atomic_increment( &m_refCount );
212 {
213 _rxControl->addActionListener( this );
214 }
215 osl_atomic_decrement( &m_refCount );
216 OSL_ENSURE( m_refCount > 0, "UrlClickHandler::UrlClickHandler: leaking!" );
217
218 }
219
220 UrlClickHandler::~UrlClickHandler()
221 {
222 }
223
224 void SAL_CALL UrlClickHandler::actionPerformed( const ActionEvent& rEvent )
225 {
226 Reference< XPropertyControl > xControl( rEvent.Source, UNO_QUERY_THROW );
227 Any aControlValue( xControl->getValue() );
228
229 OUString sURL;
230 if ( aControlValue.hasValue() && !( aControlValue >>= sURL ) )
231 throw RuntimeException( OUString(), *this );
232
233 if ( sURL.isEmpty() )
234 return;
235
236 impl_dispatch_throw( sURL );
237 }
238
239 void SAL_CALL UrlClickHandler::disposing( const EventObject& /*Source*/ )
240 {
241 // not interested in
242 }
243
244 void UrlClickHandler::impl_dispatch_throw( const OUString& _rURL )
245 {
246 Reference< XURLTransformer > xTransformer( URLTransformer::create(m_xContext) );
247 URL aURL; aURL.Complete = ".uno:OpenHyperlink";
248 xTransformer->parseStrict( aURL );
249
250 Reference< XDesktop2 > xDispProv = Desktop::create( m_xContext );
251 Reference< XDispatch > xDispatch( xDispProv->queryDispatch( aURL, OUString(), 0 ), UNO_SET_THROW );
252
253 Sequence aDispatchArgs{ comphelper::makePropertyValue("URL", _rURL) };
254
255 xDispatch->dispatch( aURL, aDispatchArgs );
256 }
257
258
259 GenericPropertyHandler::GenericPropertyHandler( const Reference< XComponentContext >& _rxContext )
261 ,m_xContext( _rxContext )
262 ,m_aPropertyListeners( m_aMutex )
263 ,m_bPropertyMapInitialized( false )
264 {
265 m_xTypeConverter = Converter::create(_rxContext);
266 }
267
268 GenericPropertyHandler::~GenericPropertyHandler()
269 {
270 }
271
272 OUString SAL_CALL GenericPropertyHandler::getImplementationName( )
273 {
274 return "com.sun.star.comp.extensions.GenericPropertyHandler";
275 }
276
277 sal_Bool SAL_CALL GenericPropertyHandler::supportsService( const OUString& ServiceName )
278 {
280 }
281
282 Sequence< OUString > SAL_CALL GenericPropertyHandler::getSupportedServiceNames( )
283 {
284 return { "com.sun.star.inspection.GenericPropertyHandler" };
285 }
286
287 void SAL_CALL GenericPropertyHandler::inspect( const Reference< XInterface >& _rxIntrospectee )
288 {
289 ::osl::MutexGuard aGuard( m_aMutex );
290
291 if ( !_rxIntrospectee.is() )
292 throw NullPointerException();
293
294 // revoke old property change listeners
295 ::comphelper::OInterfaceIteratorHelper2 iterRemove( m_aPropertyListeners );
296 ::comphelper::OInterfaceIteratorHelper2 iterReAdd( m_aPropertyListeners ); // this holds a copy of the container ...
297 while ( iterRemove.hasMoreElements() )
298 m_xComponent->removePropertyChangeListener( OUString(), static_cast< XPropertyChangeListener* >( iterRemove.next() ) );
299
300 m_xComponentIntrospectionAccess.clear();
301 m_xComponent.clear();
302 m_xPropertyState.clear();
303
304 // create an introspection adapter for the component
305 Reference< XIntrospection > xIntrospection = theIntrospection::get( m_xContext );
306
307 Reference< XIntrospectionAccess > xIntrospectionAccess( xIntrospection->inspect( Any( _rxIntrospectee ) ) );
308 if ( !xIntrospectionAccess.is() )
309 throw RuntimeException("The introspection service could not handle the given component.", *this );
310
311 m_xComponent.set( xIntrospectionAccess->queryAdapter( cppu::UnoType<XPropertySet>::get() ), UNO_QUERY_THROW );
312 // now that we survived so far, remember m_xComponentIntrospectionAccess
313 m_xComponentIntrospectionAccess = xIntrospectionAccess;
314 m_xPropertyState.set(m_xComponent, css::uno::UNO_QUERY);
315
316 m_bPropertyMapInitialized = false;
317 m_aProperties.clear();
318
319 // re-add the property change listeners
320 while ( iterReAdd.hasMoreElements() )
321 m_xComponent->addPropertyChangeListener( OUString(), static_cast< XPropertyChangeListener* >( iterReAdd.next() ) );
322 }
323
324 Any SAL_CALL GenericPropertyHandler::getPropertyValue( const OUString& _rPropertyName )
325 {
326 ::osl::MutexGuard aGuard( m_aMutex );
327 if ( !m_xComponent.is() )
328 throw UnknownPropertyException(_rPropertyName);
329
330 return m_xComponent->getPropertyValue( _rPropertyName );
331 }
332
333 void SAL_CALL GenericPropertyHandler::setPropertyValue( const OUString& _rPropertyName, const Any& _rValue )
334 {
335 ::osl::MutexGuard aGuard( m_aMutex );
336 if ( !m_xComponent.is() )
337 throw UnknownPropertyException(_rPropertyName);
338
339 m_xComponent->setPropertyValue( _rPropertyName, _rValue );
340 }
341
342 ::rtl::Reference< IPropertyEnumRepresentation > GenericPropertyHandler::impl_getEnumConverter( const Type& _rEnumType )
343 {
344 ::rtl::Reference< IPropertyEnumRepresentation >& rConverter = m_aEnumConverters[ _rEnumType ];
345 if ( !rConverter.is() )
346 rConverter = new EnumRepresentation( m_xContext, _rEnumType );
347 return rConverter;
348 }
349
350 Any SAL_CALL GenericPropertyHandler::convertToPropertyValue( const OUString& _rPropertyName, const Any& _rControlValue )
351 {
352 ::osl::MutexGuard aGuard( m_aMutex );
353 impl_ensurePropertyMap();
354
355 PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
356 if ( pos == m_aProperties.end() )
357 throw UnknownPropertyException(_rPropertyName);
358
359 Any aPropertyValue;
360 if ( !_rControlValue.hasValue() )
361 // NULL is converted to NULL
362 return aPropertyValue;
363
364 if ( pos->second.Type.getTypeClass() == TypeClass_ENUM )
365 {
366 OUString sControlValue;
367 OSL_VERIFY( _rControlValue >>= sControlValue );
368 impl_getEnumConverter( pos->second.Type )->getValueFromDescription( sControlValue, aPropertyValue );
369 }
370 else
371 aPropertyValue = PropertyHandlerHelper::convertToPropertyValue( m_xContext, m_xTypeConverter, pos->second, _rControlValue );
372
373 return aPropertyValue;
374 }
375
376 Any SAL_CALL GenericPropertyHandler::convertToControlValue( const OUString& _rPropertyName, const Any& _rPropertyValue, const Type& _rControlValueType )
377 {
378 ::osl::MutexGuard aGuard( m_aMutex );
379 impl_ensurePropertyMap();
380
381 PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
382 if ( pos == m_aProperties.end() )
383 throw UnknownPropertyException(_rPropertyName);
384
385 Any aControlValue;
386 if ( !_rPropertyValue.hasValue() )
387 // NULL is converted to NULL
388 return aControlValue;
389
390 if ( pos->second.Type.getTypeClass() == TypeClass_ENUM )
391 {
392 aControlValue <<= impl_getEnumConverter( pos->second.Type )->getDescriptionForValue( _rPropertyValue );
393 }
394 else
395 aControlValue = PropertyHandlerHelper::convertToControlValue( m_xContext, m_xTypeConverter, _rPropertyValue, _rControlValueType );
396 return aControlValue;
397 }
398
399 PropertyState SAL_CALL GenericPropertyHandler::getPropertyState( const OUString& _rPropertyName )
400 {
401 ::osl::MutexGuard aGuard( m_aMutex );
402 PropertyState eState = PropertyState_DIRECT_VALUE;
403 if ( m_xPropertyState.is() )
404 eState = m_xPropertyState->getPropertyState( _rPropertyName );
405 return eState;
406 }
407
408 void SAL_CALL GenericPropertyHandler::addPropertyChangeListener(const Reference< XPropertyChangeListener >& _rxListener)
409 {
410 if ( !_rxListener.is() )
411 throw NullPointerException();
412
413 ::osl::MutexGuard aGuard( m_aMutex );
414 m_aPropertyListeners.addInterface( _rxListener );
415 if ( m_xComponent.is() )
416 {
417 try
418 {
419 m_xComponent->addPropertyChangeListener( OUString(), _rxListener );
420 }
421 catch( const UnknownPropertyException& )
422 {
423 OSL_FAIL( "GenericPropertyHandler::addPropertyChangeListener:\nThe inspected component does not allow registering for all properties at once! This violates the interface contract!" );
424 }
425 }
426 }
427
428 void SAL_CALL GenericPropertyHandler::removePropertyChangeListener( const Reference< XPropertyChangeListener >& _rxListener )
429 {
430 ::osl::MutexGuard aGuard( m_aMutex );
431 if ( m_xComponent.is() )
432 {
433 try
434 {
435 m_xComponent->removePropertyChangeListener( OUString(), _rxListener );
436 }
437 catch( const UnknownPropertyException& )
438 {
439 OSL_FAIL( "GenericPropertyHandler::removePropertyChangeListener:\nThe inspected component does not allow de-registering for all properties at once! This violates the interface contract!" );
440 }
441 }
442 m_aPropertyListeners.removeInterface( _rxListener );
443 }
444
445 void GenericPropertyHandler::impl_ensurePropertyMap()
446 {
447 if ( m_bPropertyMapInitialized )
448 return;
449
450 m_bPropertyMapInitialized = true;
451 try
452 {
453 Reference< XPropertySetInfo > xPSI;
454 if ( m_xComponent.is() )
455 xPSI = m_xComponent->getPropertySetInfo();
456 Sequence< Property > aProperties;
457 if ( xPSI.is() )
458 aProperties = xPSI->getProperties();
459 DBG_ASSERT( aProperties.hasElements(), "GenericPropertyHandler::getSupportedProperties: no properties!" );
460
461 for ( auto const & property : std::as_const(aProperties) )
462 {
463 switch ( property.Type.getTypeClass() )
464 {
465 case TypeClass_BOOLEAN:
466 case TypeClass_BYTE:
467 case TypeClass_SHORT:
468 case TypeClass_UNSIGNED_SHORT:
469 case TypeClass_LONG:
470 case TypeClass_UNSIGNED_LONG:
471 case TypeClass_HYPER:
472 case TypeClass_UNSIGNED_HYPER:
473 case TypeClass_FLOAT:
474 case TypeClass_DOUBLE:
475 case TypeClass_ENUM:
476 case TypeClass_STRING:
477 // allowed, we can handle this type
478 break;
479
480 case TypeClass_SEQUENCE:
481 {
482 TypeClass eElementTypeClass = ::comphelper::getSequenceElementType( property.Type ).getTypeClass();
483 if ( ( eElementTypeClass != TypeClass_STRING )
484 && ( eElementTypeClass != TypeClass_BYTE )
485 && ( eElementTypeClass != TypeClass_SHORT )
486 && ( eElementTypeClass != TypeClass_UNSIGNED_SHORT )
487 && ( eElementTypeClass != TypeClass_LONG )
488 && ( eElementTypeClass != TypeClass_UNSIGNED_LONG )
489 )
490 // can only handle the above
491 continue;
492 }
493 break;
494
495 default:
496 // next property, we don't support this type
497 continue;
498 }
499
500 m_aProperties.emplace( property.Name, property );
501 }
502 }
503 catch( const Exception& )
504 {
505 TOOLS_WARN_EXCEPTION( "extensions.propctrlr", "GenericPropertyHandler::impl_ensurePropertyMap" );
506 }
507 }
508
509 Sequence< Property > SAL_CALL GenericPropertyHandler::getSupportedProperties()
510 {
511 ::osl::MutexGuard aGuard( m_aMutex );
512 impl_ensurePropertyMap();
513
514 return comphelper::mapValuesToSequence( m_aProperties );
515 }
516
517 Sequence< OUString > SAL_CALL GenericPropertyHandler::getSupersededProperties( )
518 {
519 // no superseded properties at all. This handler offers the very basic PropertyHandler
520 // functionality, so it's much more likely that other handlers want to supersede
521 // *our* properties...
522 return Sequence< OUString >( );
523 }
524
525 Sequence< OUString > SAL_CALL GenericPropertyHandler::getActuatingProperties( )
526 {
527 // This basic PropertyHandler implementation is too dumb^Wgeneric to know
528 // anything about property dependencies
529 return Sequence< OUString >( );
530 }
531
532 LineDescriptor SAL_CALL GenericPropertyHandler::describePropertyLine( const OUString& _rPropertyName,
533 const Reference< XPropertyControlFactory >& _rxControlFactory )
534 {
535 if ( !_rxControlFactory.is() )
536 throw NullPointerException();
537
538 ::osl::MutexGuard aGuard( m_aMutex );
539 impl_ensurePropertyMap();
540
541 PropertyMap::const_iterator pos = m_aProperties.find( _rPropertyName );
542 if ( pos == m_aProperties.end() )
543 throw UnknownPropertyException(_rPropertyName);
544
545 LineDescriptor aDescriptor;
546 aDescriptor.DisplayName = _rPropertyName;
547 switch ( pos->second.Type.getTypeClass() )
548 {
549 case TypeClass_ENUM:
550 aDescriptor.Control = PropertyHandlerHelper::createListBoxControl( _rxControlFactory,
551 impl_getEnumConverter( pos->second.Type )->getDescriptions(),
552 PropertyHandlerHelper::requiresReadOnlyControl( pos->second.Attributes ),
553 false );
554 break;
555 case TypeClass_STRING:
556 {
557 // some special handling for URL properties
558 bool bIsURLProperty = _rPropertyName.endsWith( "URL" );
559 if ( bIsURLProperty )
560 {
561 aDescriptor.Control = _rxControlFactory->createPropertyControl(
562 PropertyControlType::HyperlinkField, PropertyHandlerHelper::requiresReadOnlyControl( pos->second.Attributes ) );
563
564 Reference< XHyperlinkControl > xControl( aDescriptor.Control, UNO_QUERY_THROW );
565 new UrlClickHandler( m_xContext, xControl );
566 }
567 }
568 break;
569 default:
570 break;
571 }
572 // fallback
573 if ( !aDescriptor.Control.is() )
574 PropertyHandlerHelper::describePropertyLine( pos->second, aDescriptor, _rxControlFactory );
575
576 aDescriptor.Category = "General";
577 return aDescriptor;
578 }
579
580 sal_Bool SAL_CALL GenericPropertyHandler::isComposable( const OUString& /*_rPropertyName*/ )
581 {
582 return false;
583 }
584
585 InteractiveSelectionResult SAL_CALL GenericPropertyHandler::onInteractivePropertySelection( const OUString& /*_rPropertyName*/, sal_Bool /*_bPrimary*/, Any& /*_rData*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/ )
586 {
587 OSL_FAIL( "GenericPropertyHandler::onInteractivePropertySelection: I'm too dumb to know anything about property browse buttons!" );
588 return InteractiveSelectionResult_Cancelled;
589 }
590
591 void SAL_CALL GenericPropertyHandler::actuatingPropertyChanged( const OUString& /*_rActuatingPropertyName*/, const Any& /*_rNewValue*/, const Any& /*_rOldValue*/, const Reference< XObjectInspectorUI >& /*_rxInspectorUI*/, sal_Bool /*_bFirstTimeInit*/ )
592 {
593 OSL_FAIL( "GenericPropertyHandler::actuatingPropertyChanged: no no no, I did not register for any actuating properties!" );
594 }
595
596 sal_Bool SAL_CALL GenericPropertyHandler::suspend( sal_Bool /*_bSuspend*/ )
597 {
598 return true;
599 }
600
601 void SAL_CALL GenericPropertyHandler::disposing()
602 {
603 m_aPropertyListeners.clear();
604 // not disposeAndClear: the listeners are (virtually) listeners at our introspectee, not
605 // at this handler instance
606 }
607
609
610} // namespace pcr
611
612extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
614 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any> const&)
615{
616 return cppu::acquire(new pcr::GenericPropertyHandler(context));
617}
618
619/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
PropertiesInfo aProperties
css::uno::XInterface * next()
#define DBG_ASSERT(sCon, aError)
#define TOOLS_WARN_EXCEPTION(area, stream)
Reference< XDispatch > xDispatch
URL aURL
Reference< XComponentContext > m_xContext
Definition: filehandler.cxx:78
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * extensions_propctrlr_GenericPropertyHandler_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
Reference< XIntrospection > xIntrospection
DECL_LISTENERMULTIPLEXER_END void SAL_CALL actionPerformed(const css::awt::ActionEvent &rEvent) override
::osl::Mutex m_aMutex
Definition: logger.cxx:98
@ Exception
css::uno::Sequence< typename M::mapped_type > mapValuesToSequence(M const &map)
css::beans::PropertyValue makePropertyValue(const OUString &rName, T &&rValue)
Type
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
index
constexpr std::enable_if_t< std::is_signed_v< T >, std::make_unsigned_t< T > > make_unsigned(T value)
a property handler for any virtual string properties
Definition: browserline.cxx:39
::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::lang::XServiceInfo > GenericPropertyHandler_Base
::cppu::WeakImplHelper< XActionListener > UrlClickHandler_Base
#define IMPLEMENT_FORWARD_XCOMPONENT(classname, baseclass)
Definition: pcrcommon.hxx:105
unsigned char sal_Bool
size_t pos