21#include <com/sun/star/util/XCloneable.hpp>
40 Reference< XCloneable > xAggregateCloneable;
41 Reference< XAggregation > xAggregateClone;
45 xAggregateClone.set(xAggregateCloneable->createClone(), css::uno::UNO_QUERY);
46 DBG_ASSERT( xAggregateClone.is(),
"OCloneableAggregation::createAggregateClone: invalid clone returned by the aggregate!" );
49 DBG_ASSERT( !_pOriginal->
m_xAggregate.is(),
"OCloneableAggregation::createAggregateClone: aggregate is not cloneable!" );
52 return xAggregateClone;
static css::uno::Reference< css::uno::XAggregation > createAggregateClone(const OCloneableAggregation *_pOriginal)
css::uno::Reference< css::uno::XAggregation > m_xAggregate
#define DBG_ASSERT(sCon, aError)
bool query_aggregation(const css::uno::Reference< css::uno::XAggregation > &_rxAggregate, css::uno::Reference< iface > &_rxOut)
ListBox is a bit confusing / different from other form components, so here are a few notes: