26#include <com/sun/star/inspection/XPropertyHandler.hpp>
27#include <com/sun/star/lang/DisposedException.hpp>
42 typedef ::cppu::WeakComponentImplHelper < css::inspection::XPropertyHandler
43 , css::beans::XPropertyChangeListener
53 typedef std::vector< css::uno::Reference< css::inspection::XPropertyHandler > >
70 explicit PropertyComposer( std::vector< css::uno::Reference< css::inspection::XPropertyHandler > >&& _rSlaveHandlers );
74 virtual void SAL_CALL
inspect(
const css::uno::Reference< css::uno::XInterface >& _rxIntrospectee )
override;
75 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& _rPropertyName )
override;
76 virtual void SAL_CALL
setPropertyValue(
const OUString& _rPropertyName,
const css::uno::Any& _rValue )
override;
77 virtual css::uno::Any SAL_CALL
convertToPropertyValue(
const OUString& _rPropertyName,
const css::uno::Any& _rControlValue )
override;
78 virtual css::uno::Any SAL_CALL
convertToControlValue(
const OUString& _rPropertyName,
const css::uno::Any& _rPropertyValue,
const css::uno::Type& _rControlValueType )
override;
79 virtual css::beans::PropertyState
81 virtual void SAL_CALL
addPropertyChangeListener(
const css::uno::Reference< css::beans::XPropertyChangeListener >& _rxListener )
override;
82 virtual void SAL_CALL
removePropertyChangeListener(
const css::uno::Reference< css::beans::XPropertyChangeListener >& _rxListener )
override;
83 virtual css::uno::Sequence< css::beans::Property >
85 virtual css::uno::Sequence< OUString >
87 virtual css::uno::Sequence< OUString >
89 virtual css::inspection::LineDescriptor
90 SAL_CALL
describePropertyLine(
const OUString& _rPropertyName,
const css::uno::Reference< css::inspection::XPropertyControlFactory >& _rxControlFactory )
override;
92 virtual css::inspection::InteractiveSelectionResult
93 SAL_CALL
onInteractivePropertySelection(
const OUString& _rPropertyName,
sal_Bool _bPrimary, css::uno::Any& _rData,
const css::uno::Reference< css::inspection::XObjectInspectorUI >& _rxInspectorUI )
override;
94 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;
99 virtual
void SAL_CALL
disposing() override;
102 virtual
void SAL_CALL
propertyChange( const css::
beans::PropertyChangeEvent& evt ) override;
105 virtual
void SAL_CALL
disposing( const css::lang::EventObject& Source ) override;
119 css::beans::Property aDummy; aDummy.Name = _rPropertyName;
133 throw css::lang::DisposedException( OUString(), _rInstance );
mutable::osl::Mutex m_aMutex
callback for a ComposedPropertyUIUpdate checking a given property for existence
MethodGuard(PropertyComposer &_rInstance)
implements an <type>XPropertyHandler</type> which composes its information from a set of other proper...
std::unique_ptr< ComposedPropertyUIUpdate > m_pUIRequestComposer
virtual void SAL_CALL inspect(const css::uno::Reference< css::uno::XInterface > &_rxIntrospectee) override
bool m_bSupportedPropertiesAreKnown
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::uno::Sequence< OUString > SAL_CALL getSupersededProperties() override
HandlerArray m_aSlaveHandlers
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &evt) override
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &_rPropertyName) override
std::vector< css::uno::Reference< css::inspection::XPropertyHandler > > HandlerArray
virtual css::uno::Any SAL_CALL convertToPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rControlValue) override
virtual void SAL_CALL setPropertyValue(const OUString &_rPropertyName, const css::uno::Any &_rValue) override
virtual css::uno::Sequence< OUString > SAL_CALL getActuatingProperties() override
bool impl_isSupportedProperty_nothrow(const OUString &_rPropertyName)
checks whether a given property exists in <member>m_aSupportedProperties</member>
PropertyBag m_aSupportedProperties
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 void SAL_CALL addPropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
void impl_ensureUIRequestComposer(const css::uno::Reference< css::inspection::XObjectInspectorUI > &_rxInspectorUI)
ensures that m_pUIRequestComposer exists
PropertyChangeListeners m_aPropertyListeners
virtual void SAL_CALL removePropertyChangeListener(const css::uno::Reference< css::beans::XPropertyChangeListener > &_rxListener) override
virtual bool hasPropertyByName(const OUString &_rName) 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 disposing() override
virtual sal_Bool SAL_CALL suspend(sal_Bool _bSuspend) override
virtual css::uno::Any SAL_CALL convertToControlValue(const OUString &_rPropertyName, const css::uno::Any &_rPropertyValue, const css::uno::Type &_rControlValueType) override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &_rPropertyName) override
PropertyComposer(std::vector< css::uno::Reference< css::inspection::XPropertyHandler > > &&_rSlaveHandlers)
constructs an <type>XPropertyHandler</type> which composes its information from a set of other proper...
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getSupportedProperties() override
a property handler for any virtual string properties
std::set< css::beans::Property, PropertyLessByName > PropertyBag
::cppu::WeakComponentImplHelper< css::inspection::XPropertyHandler, css::beans::XPropertyChangeListener > PropertyComposer_Base
#define DECLARE_XCOMPONENT()