Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_MSFORMS_XCONTROL_HDL
2 : : #define INCLUDED_OOO_VBA_MSFORMS_XCONTROL_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : namespace com { namespace sun { namespace star { namespace uno { class XInterface; } } } }
7 : : #include "com/sun/star/uno/RuntimeException.hdl"
8 : : #include "ooo/vba/XHelperInterface.hdl"
9 : : #include "com/sun/star/uno/Any.h"
10 : : #include "com/sun/star/uno/Reference.h"
11 : : #include "cppu/macros.hxx"
12 : : #include "rtl/ustring.hxx"
13 : : #include "sal/types.h"
14 : :
15 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
16 : :
17 : : namespace ooo { namespace vba { namespace msforms {
18 : :
19 : 0 : class SAL_NO_VTABLE XControl : public ::ooo::vba::XHelperInterface
20 : : {
21 : : public:
22 : :
23 : : // Attributes
24 : : virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getObject() throw (::com::sun::star::uno::RuntimeException) = 0;
25 : : virtual ::rtl::OUString SAL_CALL getControlSource() throw (::com::sun::star::uno::RuntimeException) = 0;
26 : : virtual void SAL_CALL setControlSource( const ::rtl::OUString& _controlsource ) throw (::com::sun::star::uno::RuntimeException) = 0;
27 : : virtual ::rtl::OUString SAL_CALL getRowSource() throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual void SAL_CALL setRowSource( const ::rtl::OUString& _rowsource ) throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::sal_Bool SAL_CALL getEnabled() throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual void SAL_CALL setEnabled( ::sal_Bool _enabled ) throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::sal_Bool SAL_CALL getVisible() throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual void SAL_CALL setVisible( ::sal_Bool _visible ) throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::sal_Int32 SAL_CALL getMousePointer() throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual void SAL_CALL setMousePointer( ::sal_Int32 _mousepointer ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual double SAL_CALL getHeight() throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual void SAL_CALL setHeight( double _height ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual double SAL_CALL getWidth() throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual void SAL_CALL setWidth( double _width ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual double SAL_CALL getLeft() throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual void SAL_CALL setLeft( double _left ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual double SAL_CALL getTop() throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual void SAL_CALL setTop( double _top ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::rtl::OUString SAL_CALL getName() throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual void SAL_CALL setName( const ::rtl::OUString& _name ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::rtl::OUString SAL_CALL getControlTipText() throw (::com::sun::star::uno::RuntimeException) = 0;
46 : : virtual void SAL_CALL setControlTipText( const ::rtl::OUString& _controltiptext ) throw (::com::sun::star::uno::RuntimeException) = 0;
47 : : virtual ::rtl::OUString SAL_CALL getTag() throw (::com::sun::star::uno::RuntimeException) = 0;
48 : : virtual void SAL_CALL setTag( const ::rtl::OUString& _tag ) throw (::com::sun::star::uno::RuntimeException) = 0;
49 : : virtual ::sal_Int32 SAL_CALL getTabIndex() throw (::com::sun::star::uno::RuntimeException) = 0;
50 : : virtual void SAL_CALL setTabIndex( ::sal_Int32 _tabindex ) throw (::com::sun::star::uno::RuntimeException) = 0;
51 : :
52 : : // Methods
53 : : virtual void SAL_CALL SetFocus( ) throw (::com::sun::star::uno::RuntimeException) = 0;
54 : : virtual void SAL_CALL Move( double Left, double Top, const ::com::sun::star::uno::Any& Width, const ::com::sun::star::uno::Any& Height ) throw (::com::sun::star::uno::RuntimeException) = 0;
55 : :
56 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
57 : :
58 : : protected:
59 : 0 : ~XControl() throw () {} // avoid warnings about virtual members and non-virtual dtor
60 : : };
61 : :
62 : :
63 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::msforms::XControl const *);
64 : : } } }
65 : :
66 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::msforms::XControl > *) SAL_THROW(());
67 : :
68 : : #endif
|