20#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
28#include <com/sun/star/beans/PropertyAttribute.hpp>
38 =
u"Type must be css::uno::Sequence< css::beans::PropertyValue >";
62 xPropSet->getPropertyValue(
"UIName") >>=
m_aUIName;
65 catch (
const Exception& )
69 if ( !rSourceContainer.is() )
72 sal_Int32
nCount = rSourceContainer->getCount();
75 for ( sal_Int32 i = 0;
i <
nCount;
i++ )
78 if ( rSourceContainer->getByIndex( i ) >>= aPropSeq )
80 sal_Int32 nContainerIndex = -1;
82 for ( sal_Int32 j = 0; j < aPropSeq.getLength(); j++ )
84 if ( aPropSeq[j].Name ==
"ItemDescriptorContainer" )
86 aPropSeq[j].Value >>= xIndexAccess;
92 if ( xIndexAccess.is() && nContainerIndex >= 0 )
99 catch (
const IndexOutOfBoundsException& )
110 Any aRet = RootItemContainer_BASE::queryInterface( _rType );
111 if ( !aRet.hasValue() )
112 aRet = OPropertySetHelper::queryInterface( _rType );
119 RootItemContainer_BASE::getTypes(),
127 if ( rSubContainer.is() )
135 xReturn = pSubContainer;
159 throw IndexOutOfBoundsException( OUString(),
static_cast<OWeakObject *
>(
this) );
168 if ( !(aItem >>=
aSeq) )
176 std::vector< Sequence< PropertyValue > >::iterator aIter =
m_aItemVector.begin();
181 throw IndexOutOfBoundsException( OUString(),
static_cast<OWeakObject *
>(
this) );
188 throw IndexOutOfBoundsException( OUString(),
static_cast<OWeakObject *
>(
this) );
196 if ( !(aItem >>=
aSeq) )
201 throw IndexOutOfBoundsException( OUString(),
static_cast<OWeakObject *
>(
this) );
224 bool bReturn =
false;
242 const css::uno::Any& aValue )
253 sal_Int32 nHandle )
const
270 return ourInfoHelper;
295 css::beans::PropertyAttribute::TRANSIENT )
static css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL createPropertySetInfo(IPropertyArrayHelper &rProperties)
css::uno::Sequence< css::uno::Type > getTypes()
static bool willPropertyBeChanged(const css::uno::Any &aCurrentValue, const css::uno::Any &aNewValue, css::uno::Any &aOldValue, css::uno::Any &aChangedValue)
checks if given property will be changed by this settings.
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &aValue, sal_Int32 nHandle) const override
virtual void SAL_CALL replaceByIndex(sal_Int32 Index, const css::uno::Any &Element) override
virtual sal_Bool SAL_CALL hasElements() override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &aValue) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual css::uno::Any SAL_CALL getByIndex(sal_Int32 Index) override
std::vector< css::uno::Sequence< css::beans::PropertyValue > > m_aItemVector
virtual void SAL_CALL removeByIndex(sal_Int32 Index) override
virtual void SAL_CALL insertByIndex(sal_Int32 Index, const css::uno::Any &Element) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArgumentsAndContext(const css::uno::Sequence< css::uno::Any > &Arguments, const css::uno::Reference< css::uno::XComponentContext > &Context) override
static css::uno::Sequence< css::beans::Property > impl_getStaticPropertyDescriptor()
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &aConvertedValue, css::uno::Any &aOldValue, sal_Int32 nHandle, const css::uno::Any &aValue) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
css::uno::Reference< css::container::XIndexAccess > deepCopyContainer(const css::uno::Reference< css::container::XIndexAccess > &rSubContainer)
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &type) override
virtual sal_Int32 SAL_CALL getCount() override
ShareableMutex m_aShareMutex
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithContext(const css::uno::Reference< css::uno::XComponentContext > &Context) override
virtual ~RootItemContainer() override
Sequence< sal_Int8 > aSeq
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
constexpr OUStringLiteral WRONG_TYPE_EXCEPTION
constexpr OUStringLiteral PROPNAME_UINAME
const int PROPHANDLE_UINAME