typedef ::cppu::WeakComponentImplHelper < css::inspection::XPropertyHandler
, css::lang::XServiceInfo
> EventHandler_Base; class EventHandler final : public EventHandler_Base
{ private: mutable ::osl::Mutex m_aMutex;
/// the context in which the instance was created
css::uno::Reference< css::uno::XComponentContext > m_xContext; /// the properties of the object we're handling
css::uno::Reference< css::beans::XPropertySet > m_xComponent; /// our XPropertyChangeListener(s)
PropertyChangeListeners m_aPropertyListeners; /// cache of the events we found at our introspectee
EventMap m_aEvents; /// has m_aEvents been initialized? bool m_bEventsMapInitialized; /// is our introspectee a dialog element? bool m_bIsDialogElement; // TODO: move different handling into different derived classes? /// (FormComponent) type of the grid column being inspected, or -1 if we're not inspecting a grid column
sal_Int16 m_nGridColumnType;
/** returns the types of the listeners which can be registered at our introspectee @param_out_rTypes Takes,uponsuccessfulreturn,thetypesofpossiblelistenersattheintrospectee
*/ void impl_getComponentListenerTypes_nothrow(
std::vector< css::uno::Type >& _out_rTypes
) const;
/** returns a secondary component to be used for event inspection
/** returns the event description for the given (programmatic) property name @param_rPropertyName thenamewhoseeventdescriptionshouldbelookedup @return theeventdescriptionforthepropertyname @throwscss::beans::UnknownPropertyException ifourintrospecteedoesnothaveaneventwiththegivenlogicalname(see->getSupportedProperties)
*/ const EventDescription&
impl_getEventForName_throw( const OUString& _rPropertyName ) const;
/** returns the index of our component within its parent, if this parent can be obtained(XChild::getParent)andsupportsan->XIndexAccessinterface
*/
sal_Int32 impl_getComponentIndexInParent_throw() const;
/** sets a given script event as event handler at a form component
/** returns the frame associated with our context document
*/
css::uno::Reference< css::frame::XFrame >
impl_getContextFrame_nothrow() const;
/** approves or denies a certain method to be included in the UI @return <TRUE/>ifandonlyifthegivenmethodisallowed.
*/ bool impl_filterMethod_nothrow( const EventDescription& _rEvent ) const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.