22#include <com/sun/star/container/XChild.hpp>
33 using ::com::sun::star::frame::XModel;
34 using ::com::sun::star::uno::XInterface;
35 using ::com::sun::star::uno::Reference;
36 using ::com::sun::star::uno::UNO_QUERY;
37 using ::com::sun::star::container::XChild;
88 Reference< XModel >
getXModel(
const Reference< XInterface >& _rxComponent )
90 Reference< XInterface > xParent = _rxComponent;
91 Reference< XModel >
xModel( xParent, UNO_QUERY );
92 while ( xParent.is() && !
xModel.is() )
94 Reference< XChild > xChild( xParent, UNO_QUERY );
95 xParent.set( xChild.is() ? xChild->getParent() : Reference< XInterface >(), UNO_QUERY );
96 xModel.set( xParent, UNO_QUERY );
css::uno::Sequence< css::uno::Type > TypeSequence
void addTypes(const TypeSequence &_rTypes)
void removeType(const css::uno::Type &i_rType)
TypeBag(const TypeSequence &_rTypes1)
void addType(const css::uno::Type &i_rType)
TypeSequence getTypes() const
returns the types represented by this bag
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
ListBox is a bit confusing / different from other form components, so here are a few notes:
css::uno::Reference< css::frame::XModel > getXModel(const css::uno::Reference< css::uno::XInterface > &_rxComponent)
Reference< XModel > xModel