21#include <com/sun/star/beans/XPropertySet.hpp>
22#include <com/sun/star/beans/XPropertyState.hpp>
27using ::com::sun::star::uno::Any;
28using ::com::sun::star::uno::Reference;
34 : m_aOuterName(
std::move( aOuterName ))
35 , m_aInnerName(
std::move( aInnerName ))
58 if(xInnerPropertySet.is())
65 if( xInnerPropertySet.is() )
67 aRet = xInnerPropertySet->getPropertyValue(
getInnerName() );
75 if( xInnerPropertyState.is() && !
getInnerName().isEmpty() )
76 xInnerPropertyState->setPropertyToDefault(
getInnerName());
87 if( xInnerPropertyState.is() )
89 aRet = xInnerPropertyState->getPropertyDefault(
getInnerName() );
97 beans::PropertyState aState = beans::PropertyState_DIRECT_VALUE;
99 if( xInnerPropertyState.is() && !aInnerName.isEmpty() )
100 aState = xInnerPropertyState->getPropertyState( aInnerName );
108 aState = beans::PropertyState_DEFAULT_VALUE;
112 if( aValue == aDefault )
113 aState = beans::PropertyState_DEFAULT_VALUE;
116 catch(
const beans::UnknownPropertyException& )
virtual css::uno::Any convertOuterToInnerValue(const css::uno::Any &rOuterValue) const
virtual css::beans::PropertyState getPropertyState(const css::uno::Reference< css::beans::XPropertyState > &xInnerPropertyState) const
virtual css::uno::Any getPropertyDefault(const css::uno::Reference< css::beans::XPropertyState > &xInnerPropertyState) const
virtual css::uno::Any getPropertyValue(const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const
virtual ~WrappedProperty()
virtual void setPropertyToDefault(const css::uno::Reference< css::beans::XPropertyState > &xInnerPropertyState) const
virtual css::uno::Any convertInnerToOuterValue(const css::uno::Any &rInnerValue) const
virtual void setPropertyValue(const css::uno::Any &rOuterValue, const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const
WrappedProperty(OUString aOuterName, OUString aInnerName)
The property visible to the outer PropertySet in the PropertySetWrapper may have a different name,...
virtual OUString getInnerName() const
#define DBG_UNHANDLED_EXCEPTION(...)