23#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/beans/XPropertyState.hpp>
25#include <osl/diagnose.h>
28using ::com::sun::star::uno::Reference;
29using ::com::sun::star::uno::Any;
34 const OUString& rOuterEqualsInnerName
37 , m_pRefSizePropProvider( pRefSizePropProvider )
54 if(xInnerPropertySet.is())
58 xInnerPropertySet->setPropertyValue(
m_aInnerName, rOuterValue );
65 if( xInnerPropertySet.is() )
67 aRet = xInnerPropertySet->getPropertyValue(
m_aInnerName );
69 if( aRet >>= fHeight )
73 awt::Size aReferenceSize;
77 aRet <<= static_cast< float >(
89 if( xInnerPropertyState.is() )
91 aRet = xInnerPropertyState->getPropertyDefault(
m_aInnerName );
98 return beans::PropertyState_DIRECT_VALUE;
103 OSL_FAIL(
"should not be used: WrappedCharacterHeightProperty_Base::convertInnerToOuterValue - check if you miss data");
108 OSL_FAIL(
"should not be used: WrappedCharacterHeightProperty_Base::convertOuterToInnerValue - check if you miss data");
static double calculate(double fValue, const css::awt::Size &rOldReferenceSize, const css::awt::Size &rNewReferenceSize)
virtual css::awt::Size getCurrentSizeForReference()=0
virtual void updateReferenceSize()=0
virtual css::uno::Any getReferenceSize()=0
WrappedAsianCharacterHeightProperty(ReferenceSizePropertyProvider *pRefSizePropProvider)
virtual ~WrappedAsianCharacterHeightProperty() override
WrappedCharacterHeightProperty_Base(const OUString &rOuterEqualsInnerName, ReferenceSizePropertyProvider *pRefSizePropProvider)
ReferenceSizePropertyProvider * m_pRefSizePropProvider
virtual css::uno::Any convertOuterToInnerValue(const css::uno::Any &rOuterValue) const override
virtual ~WrappedCharacterHeightProperty_Base() override
virtual css::uno::Any getPropertyDefault(const css::uno::Reference< css::beans::XPropertyState > &xInnerPropertyState) const override
virtual css::uno::Any convertInnerToOuterValue(const css::uno::Any &rInnerValue) const override
virtual void setPropertyValue(const css::uno::Any &rOuterValue, const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
virtual css::beans::PropertyState getPropertyState(const css::uno::Reference< css::beans::XPropertyState > &xInnerPropertyState) const override
virtual css::uno::Any getPropertyValue(const css::uno::Reference< css::beans::XPropertySet > &xInnerPropertySet) const override
WrappedCharacterHeightProperty(ReferenceSizePropertyProvider *pRefSizePropProvider)
virtual ~WrappedCharacterHeightProperty() override
static void addWrappedProperties(std::vector< std::unique_ptr< WrappedProperty > > &rList, ReferenceSizePropertyProvider *pRefSizePropProvider)
virtual ~WrappedComplexCharacterHeightProperty() override
WrappedComplexCharacterHeightProperty(ReferenceSizePropertyProvider *pRefSizePropProvider)