20#include <com/sun/star/awt/XLayoutConstrains.hpp>
21#include <com/sun/star/awt/XTextLayoutConstrains.hpp>
22#include <com/sun/star/beans/XPropertySet.hpp>
23#include <com/sun/star/beans/XMultiPropertySet.hpp>
26#include <helper/property.hxx>
43 css::uno::Reference< css::beans::XPropertySet > xPSet(
mxModel, css::uno::UNO_QUERY );
46 css::uno::Reference< css::beans::XPropertySetInfo > xInfo = xPSet->getPropertySetInfo();
50 return xInfo->hasPropertyByName( aPropertyName );
55 css::uno::Reference< css::beans::XMultiPropertySet > xMPS(
mxModel, css::uno::UNO_QUERY );
59 DBG_ASSERT( xMPS.is(),
"UnoControlBase::ImplSetPropertyValues: no multi property set interface!" );
68 xMPS->setPropertyValues( aPropertyNames, aValues );
70 catch(
const css::uno::Exception& )
85 css::uno::Reference< css::beans::XPropertySet > xPSet(
mxModel, css::uno::UNO_QUERY );
91 xPSet->setPropertyValue( aPropertyName, aValue );
93 catch(
const css::uno::Exception& )
105 css::uno::Reference< css::beans::XPropertySet > xPSet(
mxModel, css::uno::UNO_QUERY );
107 return xPSet->getPropertyValue( aPropertyName );
109 return css::uno::Any();
136 return ImplGetPropertyValuePOD<bool>(nProp);
141 return ImplGetPropertyValuePOD<sal_Int16>(nProp);
146 return ImplGetPropertyValuePOD<sal_Int32>(nProp);
151 return ImplGetPropertyValuePOD<double>(nProp);
156 return ImplGetPropertyValueClass<OUString>(nProp);
161 return ImplGetPropertyValueClass<util::Date>(nProp);
166 return ImplGetPropertyValueClass<util::Time>(nProp);
176 css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
178 aSz = xL->getMinimumSize();
193 css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
195 aSz = xL->getPreferredSize();
210 css::uno::Reference< css::awt::XLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
212 aSz = xL->calcAdjustedSize( rNewSize );
227 css::uno::Reference< css::awt::XTextLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
229 aSz = xL->getMinimumSize( nCols, nLines );
243 css::uno::Reference< css::awt::XTextLayoutConstrains > xL( xP, css::uno::UNO_QUERY );
245 xL->getColumnsAndLines( nCols, nLines );
sal_Int16 ImplGetPropertyValue_INT16(sal_uInt16 nProp)
double ImplGetPropertyValue_DOUBLE(sal_uInt16 nProp)
void Impl_getColumnsAndLines(sal_Int16 &nCols, sal_Int16 &nLines)
bool ImplHasProperty(sal_uInt16 nProp)
css::uno::Any ImplGetPropertyValue(const OUString &aPropertyName) const
void ImplSetPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue, bool bUpdateThis)
sal_Int32 ImplGetPropertyValue_INT32(sal_uInt16 nProp)
OUString ImplGetPropertyValue_UString(sal_uInt16 nProp)
css::awt::Size Impl_getMinimumSize()
void ImplSetPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues, bool bUpdateThis)
css::util::Time ImplGetPropertyValue_Time(sal_uInt16 nProp)
T ImplGetPropertyValuePOD(sal_uInt16 nProp)
T ImplGetPropertyValueClass(sal_uInt16 nProp)
css::awt::Size Impl_calcAdjustedSize(const css::awt::Size &rNewSize)
css::awt::Size Impl_getPreferredSize()
css::util::Date ImplGetPropertyValue_Date(sal_uInt16 nProp)
bool ImplGetPropertyValue_BOOL(sal_uInt16 nProp)
css::uno::Reference< css::awt::XVclWindowPeer > ImplGetCompatiblePeer()
css::uno::Reference< css::awt::XControlModel > mxModel
void ImplLockPropertyChangeNotification(const OUString &rPropertyName, bool bLock)
css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer() override
void ImplLockPropertyChangeNotifications(const css::uno::Sequence< OUString > &rPropertyNames, bool bLock)
#define DBG_ASSERT(sCon, aError)
const OUString & GetPropertyName(sal_uInt16 nPropertyId)