xref: /AOO41X/main/vbahelper/source/msforms/vbalistcontrolhelper.hxx (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir #ifndef SC_VBA_LISTCONTROLHELPER
2*cdf0e10cSrcweir #define SC_VBA_LISTCONTROLHELPER
3*cdf0e10cSrcweir 
4*cdf0e10cSrcweir #include <vbahelper/vbahelper.hxx>
5*cdf0e10cSrcweir 
6*cdf0e10cSrcweir class ListControlHelper
7*cdf0e10cSrcweir {
8*cdf0e10cSrcweir 	css::uno::Reference< css::beans::XPropertySet > m_xProps;
9*cdf0e10cSrcweir 
10*cdf0e10cSrcweir public:
11*cdf0e10cSrcweir 	ListControlHelper( const css::uno::Reference< css::beans::XPropertySet >& rxControl ) : m_xProps( rxControl ){}
12*cdf0e10cSrcweir 	virtual ~ListControlHelper() {}
13*cdf0e10cSrcweir 	virtual void SAL_CALL AddItem( const css::uno::Any& pvargItem, const css::uno::Any& pvargIndex ) throw (css::uno::RuntimeException);
14*cdf0e10cSrcweir 	virtual void SAL_CALL removeItem( const css::uno::Any& index ) throw (css::uno::RuntimeException);
15*cdf0e10cSrcweir     	virtual void SAL_CALL setRowSource( const rtl::OUString& _rowsource ) throw (css::uno::RuntimeException);
16*cdf0e10cSrcweir 	virtual ::sal_Int32 SAL_CALL getListCount() throw (css::uno::RuntimeException);
17*cdf0e10cSrcweir 	virtual css::uno::Any SAL_CALL List( const css::uno::Any& pvargIndex, const css::uno::Any& pvarColumn ) throw (css::uno::RuntimeException);
18*cdf0e10cSrcweir 	virtual void SAL_CALL Clear(  ) throw (css::uno::RuntimeException);
19*cdf0e10cSrcweir };
20*cdf0e10cSrcweir #endif
21