LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::GenericPropertyHandler Class Referencefinal

#include <genericpropertyhandler.hxx>

Inheritance diagram for pcr::GenericPropertyHandler:
[legend]
Collaboration diagram for pcr::GenericPropertyHandler:
[legend]

Public Member Functions

 GenericPropertyHandler (const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
virtual ~GenericPropertyHandler () override
 

Private Member Functions

virtual void SAL_CALL inspect (const css::uno::Reference< css::uno::XInterface > &_rxIntrospectee) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &_rPropertyName) override
 
virtual void SAL_CALL setPropertyValue (const OUString &_rPropertyName, const css::uno::Any &_rValue) override
 
virtual css::uno::Any SAL_CALL convertToPropertyValue (const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override
 
virtual css::uno::Any SAL_CALL convertToControlValue (const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override
 
virtual css::beans::PropertyState SAL_CALL getPropertyState (const OUString &_rPropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
 
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getSupportedProperties () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupersededProperties () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties () override
 
virtual css::inspection::LineDescriptor SAL_CALL describePropertyLine (const OUString &_rPropertyName, const css::uno::Reference< css::inspection::XPropertyControlFactory > &_rxControlFactory) override
 
virtual sal_Bool SAL_CALL isComposable (const OUString &_rPropertyName) override
 
virtual css::inspection::InteractiveSelectionResult SAL_CALL onInteractivePropertySelection (const OUString &_rPropertyName, sal_Bool _bPrimary, css::uno::Any &_rData, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI) override
 
virtual void SAL_CALL actuatingPropertyChanged (const OUString &_rActuatingPropertyName, const css::uno::Any &_rNewValue, const css::uno::Any &_rOldValue, const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI, sal_Bool _bFirstTimeInit) override
 
virtual sal_Bool SAL_CALL suspend (sal_Bool _bSuspend) override
 
virtual void SAL_CALL disposing () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
void impl_ensurePropertyMap ()
 ensures that ->m_aProperties is initialized @precond our mutex is locked More...
 
::rtl::Reference< IPropertyEnumRepresentationimpl_getEnumConverter (const css::uno::Type &_rEnumType)
 retrieves the enum converter for the given ENUM type More...
 
 GenericPropertyHandler (const GenericPropertyHandler &)=delete
 
GenericPropertyHandleroperator= (const GenericPropertyHandler &)=delete
 

Private Attributes

mutable::osl::Mutex m_aMutex
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 the service factory for creating services More...
 
css::uno::Reference< css::beans::XIntrospectionAccess > m_xComponentIntrospectionAccess
 need this to keep alive as long as m_xComponent lives More...
 
css::uno::Reference< css::beans::XPropertySetm_xComponent
 the properties of the object we're handling More...
 
css::uno::Reference< css::beans::XPropertyState > m_xPropertyState
 cached interface of ->m_xComponent More...
 
css::uno::Reference< css::script::XTypeConverter > m_xTypeConverter
 type converter, needed on various occasions More...
 
PropertyMap m_aProperties
 cache of our supported properties More...
 
::comphelper::OInterfaceContainerHelper2 m_aPropertyListeners
 property change listeners More...
 
std::map< css::uno::Type, ::rtl::Reference< IPropertyEnumRepresentation >, TypeLessm_aEnumConverters
 
bool m_bPropertyMapInitialized: 1
 has ->m_aProperties been initialized? More...
 

Detailed Description

Definition at line 58 of file genericpropertyhandler.hxx.

Constructor & Destructor Documentation

◆ GenericPropertyHandler() [1/2]

pcr::GenericPropertyHandler::GenericPropertyHandler ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext)
explicit

◆ ~GenericPropertyHandler()

pcr::GenericPropertyHandler::~GenericPropertyHandler ( )
overridevirtual

Definition at line 268 of file genericpropertyhandler.cxx.

◆ GenericPropertyHandler() [2/2]

pcr::GenericPropertyHandler::GenericPropertyHandler ( const GenericPropertyHandler )
privatedelete

Member Function Documentation

◆ actuatingPropertyChanged()

void SAL_CALL pcr::GenericPropertyHandler::actuatingPropertyChanged ( const OUString &  _rActuatingPropertyName,
const css::uno::Any &  _rNewValue,
const css::uno::Any &  _rOldValue,
const css::uno::Reference< css::inspection::XObjectInspectorUI > &  _rxInspectorUI,
sal_Bool  _bFirstTimeInit 
)
overrideprivatevirtual

Definition at line 591 of file genericpropertyhandler.cxx.

◆ addPropertyChangeListener()

void SAL_CALL pcr::GenericPropertyHandler::addPropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  _rxListener)
overrideprivatevirtual

Definition at line 408 of file genericpropertyhandler.cxx.

References m_aMutex.

◆ convertToControlValue()

Any SAL_CALL pcr::GenericPropertyHandler::convertToControlValue ( const OUString &  _rPropertyName,
const css::uno::Any &  _rPropertyValue,
const css::uno::Type &  _rControlValueType 
)
overrideprivatevirtual

Definition at line 376 of file genericpropertyhandler.cxx.

References Any, m_aMutex, m_xContext, and pos.

◆ convertToPropertyValue()

Any SAL_CALL pcr::GenericPropertyHandler::convertToPropertyValue ( const OUString &  _rPropertyName,
const css::uno::Any &  _rControlValue 
)
overrideprivatevirtual

Definition at line 350 of file genericpropertyhandler.cxx.

References Any, m_aMutex, m_xContext, and pos.

◆ describePropertyLine()

LineDescriptor SAL_CALL pcr::GenericPropertyHandler::describePropertyLine ( const OUString &  _rPropertyName,
const css::uno::Reference< css::inspection::XPropertyControlFactory > &  _rxControlFactory 
)
overrideprivatevirtual

Definition at line 532 of file genericpropertyhandler.cxx.

References m_aMutex, m_xContext, and pos.

◆ disposing()

void SAL_CALL pcr::GenericPropertyHandler::disposing ( )
overrideprivatevirtual

Definition at line 601 of file genericpropertyhandler.cxx.

◆ getActuatingProperties()

Sequence< OUString > SAL_CALL pcr::GenericPropertyHandler::getActuatingProperties ( )
overrideprivatevirtual

Definition at line 525 of file genericpropertyhandler.cxx.

◆ getImplementationName()

OUString SAL_CALL pcr::GenericPropertyHandler::getImplementationName ( )
overrideprivatevirtual

Definition at line 272 of file genericpropertyhandler.cxx.

◆ getPropertyState()

PropertyState SAL_CALL pcr::GenericPropertyHandler::getPropertyState ( const OUString &  _rPropertyName)
overrideprivatevirtual

Definition at line 399 of file genericpropertyhandler.cxx.

References m_aMutex.

◆ getPropertyValue()

Any SAL_CALL pcr::GenericPropertyHandler::getPropertyValue ( const OUString &  _rPropertyName)
overrideprivatevirtual

Definition at line 324 of file genericpropertyhandler.cxx.

References Any, and m_aMutex.

◆ getSupersededProperties()

Sequence< OUString > SAL_CALL pcr::GenericPropertyHandler::getSupersededProperties ( )
overrideprivatevirtual

Definition at line 517 of file genericpropertyhandler.cxx.

◆ getSupportedProperties()

Sequence< Property > SAL_CALL pcr::GenericPropertyHandler::getSupportedProperties ( )
overrideprivatevirtual

Definition at line 509 of file genericpropertyhandler.cxx.

References m_aMutex, and comphelper::mapValuesToSequence().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL pcr::GenericPropertyHandler::getSupportedServiceNames ( )
overrideprivatevirtual

Definition at line 282 of file genericpropertyhandler.cxx.

◆ impl_ensurePropertyMap()

void pcr::GenericPropertyHandler::impl_ensurePropertyMap ( )
private

ensures that ->m_aProperties is initialized @precond our mutex is locked

Definition at line 445 of file genericpropertyhandler.cxx.

References aProperties, DBG_ASSERT, Exception, and TOOLS_WARN_EXCEPTION.

◆ impl_getEnumConverter()

rtl::Reference< IPropertyEnumRepresentation > pcr::GenericPropertyHandler::impl_getEnumConverter ( const css::uno::Type &  _rEnumType)
private

retrieves the enum converter for the given ENUM type

Definition at line 342 of file genericpropertyhandler.cxx.

References m_xContext.

◆ inspect()

void SAL_CALL pcr::GenericPropertyHandler::inspect ( const css::uno::Reference< css::uno::XInterface > &  _rxIntrospectee)
overrideprivatevirtual

◆ isComposable()

sal_Bool SAL_CALL pcr::GenericPropertyHandler::isComposable ( const OUString &  _rPropertyName)
overrideprivatevirtual

Definition at line 580 of file genericpropertyhandler.cxx.

◆ onInteractivePropertySelection()

InteractiveSelectionResult SAL_CALL pcr::GenericPropertyHandler::onInteractivePropertySelection ( const OUString &  _rPropertyName,
sal_Bool  _bPrimary,
css::uno::Any &  _rData,
const css::uno::Reference< css::inspection::XObjectInspectorUI > &  _rxInspectorUI 
)
overrideprivatevirtual

Definition at line 585 of file genericpropertyhandler.cxx.

◆ operator=()

GenericPropertyHandler & pcr::GenericPropertyHandler::operator= ( const GenericPropertyHandler )
privatedelete

◆ removePropertyChangeListener()

void SAL_CALL pcr::GenericPropertyHandler::removePropertyChangeListener ( const css::uno::Reference< css::beans::XPropertyChangeListener > &  _rxListener)
overrideprivatevirtual

Definition at line 428 of file genericpropertyhandler.cxx.

References m_aMutex.

◆ setPropertyValue()

void SAL_CALL pcr::GenericPropertyHandler::setPropertyValue ( const OUString &  _rPropertyName,
const css::uno::Any &  _rValue 
)
overrideprivatevirtual

Definition at line 333 of file genericpropertyhandler.cxx.

References m_aMutex.

◆ supportsService()

sal_Bool SAL_CALL pcr::GenericPropertyHandler::supportsService ( const OUString &  ServiceName)
overrideprivatevirtual

Definition at line 277 of file genericpropertyhandler.cxx.

References ServiceName, and cppu::supportsService().

◆ suspend()

sal_Bool SAL_CALL pcr::GenericPropertyHandler::suspend ( sal_Bool  _bSuspend)
overrideprivatevirtual

Definition at line 596 of file genericpropertyhandler.cxx.

Member Data Documentation

◆ m_aEnumConverters

std::map< css::uno::Type, ::rtl::Reference< IPropertyEnumRepresentation >, TypeLess > pcr::GenericPropertyHandler::m_aEnumConverters
private

Definition at line 77 of file genericpropertyhandler.hxx.

◆ m_aMutex

mutable::osl::Mutex pcr::GenericPropertyHandler::m_aMutex
private

Definition at line 60 of file genericpropertyhandler.hxx.

◆ m_aProperties

PropertyMap pcr::GenericPropertyHandler::m_aProperties
private

cache of our supported properties

Definition at line 73 of file genericpropertyhandler.hxx.

◆ m_aPropertyListeners

::comphelper::OInterfaceContainerHelper2 pcr::GenericPropertyHandler::m_aPropertyListeners
private

property change listeners

Definition at line 75 of file genericpropertyhandler.hxx.

◆ m_bPropertyMapInitialized

bool pcr::GenericPropertyHandler::m_bPropertyMapInitialized
private

has ->m_aProperties been initialized?

Definition at line 80 of file genericpropertyhandler.hxx.

◆ m_xComponent

css::uno::Reference< css::beans::XPropertySet > pcr::GenericPropertyHandler::m_xComponent
private

the properties of the object we're handling

Definition at line 67 of file genericpropertyhandler.hxx.

◆ m_xComponentIntrospectionAccess

css::uno::Reference< css::beans::XIntrospectionAccess > pcr::GenericPropertyHandler::m_xComponentIntrospectionAccess
private

need this to keep alive as long as m_xComponent lives

Definition at line 65 of file genericpropertyhandler.hxx.

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > pcr::GenericPropertyHandler::m_xContext
private

the service factory for creating services

Definition at line 63 of file genericpropertyhandler.hxx.

◆ m_xPropertyState

css::uno::Reference< css::beans::XPropertyState > pcr::GenericPropertyHandler::m_xPropertyState
private

cached interface of ->m_xComponent

Definition at line 69 of file genericpropertyhandler.hxx.

◆ m_xTypeConverter

css::uno::Reference< css::script::XTypeConverter > pcr::GenericPropertyHandler::m_xTypeConverter
private

type converter, needed on various occasions

Definition at line 71 of file genericpropertyhandler.hxx.


The documentation for this class was generated from the following files: