24#include <com/sun/star/ucb/AlreadyInitializedException.hpp>
25#include <com/sun/star/lang/IllegalArgumentException.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
38 using ::com::sun::star::uno::Reference;
39 using ::com::sun::star::uno::XComponentContext;
40 using ::com::sun::star::inspection::XPropertyControl;
41 using ::com::sun::star::uno::RuntimeException;
42 using ::com::sun::star::uno::Sequence;
43 using ::com::sun::star::uno::Any;
44 using ::com::sun::star::uno::Exception;
45 using ::com::sun::star::inspection::XObjectInspectorUI;
46 using ::com::sun::star::uno::XInterface;
47 using ::com::sun::star::ucb::AlreadyInitializedException;
48 using ::com::sun::star::lang::IllegalArgumentException;
49 using ::com::sun::star::uno::UNO_QUERY;
50 using ::com::sun::star::awt::XWindow;
53 :m_bConstructed( false )
65 return {
"com.sun.star.inspection.DefaultHelpProvider" };
70 return "org.openoffice.comp.extensions.DefaultHelpProvider";
104 throw AlreadyInitializedException();
107 if ( arguments.
size() == 1 )
109 Reference< XObjectInspectorUI > xUI( arguments[0], UNO_QUERY );
114 throw IllegalArgumentException( OUString(), *
this, 0 );
121 throw IllegalArgumentException( OUString(), *
this, 1 );
140 OSL_PRECOND( _rxControl.is(),
"DefaultHelpProvider::impl_getVclControlWindow_nothrow: illegal control!" );
141 if ( !_rxControl.is() )
142 return pControlWindow;
146 Reference< XWindow > xControlWindow( _rxControl->getControlWindow(), css::uno::UNO_SET_THROW );
154 return pControlWindow;
161 OSL_PRECOND( _rxControl.is(),
"DefaultHelpProvider::impl_getHelpText_nothrow: illegal control!" );
162 if ( !_rxControl.is() )
166 OSL_ENSURE( pControlWindow,
"DefaultHelpProvider::impl_getHelpText_nothrow: could not determine the VCL window!" );
167 if ( !pControlWindow )
176extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
178 css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any>
const&)
static vcl::Window * GetWindow(const css::uno::Reference< css::awt::XWindow > &rxWindow)
static vcl::Window * impl_getVclControlWindow_nothrow(const css::uno::Reference< css::inspection::XPropertyControl > &_rxControl)
virtual void SAL_CALL focusGained(const css::uno::Reference< css::inspection::XPropertyControl > &Control) override
virtual OUString SAL_CALL getImplementationName() override
void create(const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxUI)
virtual ~DefaultHelpProvider() override
virtual void SAL_CALL valueChanged(const css::uno::Reference< css::inspection::XPropertyControl > &Control) override
css::uno::Reference< css::inspection::XObjectInspectorUI > m_xInspectorUI
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
static OUString impl_getHelpText_nothrow(const css::uno::Reference< css::inspection::XPropertyControl > &_rxControl)
const OUString & GetHelpText() const
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * extensions_propctrlr_DefaultHelpProvider_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
#define DBG_UNHANDLED_EXCEPTION(...)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
a property handler for any virtual string properties