Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_XERROBJECT_HDL
2 : #define INCLUDED_OOO_VBA_XERROBJECT_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/XInterface.hdl"
7 : #include "com/sun/star/uno/RuntimeException.hdl"
8 : #include "com/sun/star/uno/Any.h"
9 : #include "com/sun/star/uno/Reference.h"
10 : #include "cppu/macros.hxx"
11 : #include "rtl/ustring.hxx"
12 : #include "sal/types.h"
13 :
14 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
15 :
16 : namespace ooo { namespace vba {
17 :
18 0 : class SAL_NO_VTABLE XErrObject : public css::uno::XInterface
19 : {
20 : public:
21 :
22 : // Attributes
23 : virtual ::sal_Int32 SAL_CALL getNumber() = 0;
24 : virtual void SAL_CALL setNumber( ::sal_Int32 _number ) = 0;
25 : virtual ::sal_Int32 SAL_CALL getHelpContext() = 0;
26 : virtual void SAL_CALL setHelpContext( ::sal_Int32 _helpcontext ) = 0;
27 : virtual ::rtl::OUString SAL_CALL getHelpFile() = 0;
28 : virtual void SAL_CALL setHelpFile( const ::rtl::OUString& _helpfile ) = 0;
29 : virtual ::rtl::OUString SAL_CALL getDescription() = 0;
30 : virtual void SAL_CALL setDescription( const ::rtl::OUString& _description ) = 0;
31 : virtual ::rtl::OUString SAL_CALL getSource() = 0;
32 : virtual void SAL_CALL setSource( const ::rtl::OUString& _source ) = 0;
33 :
34 : // Methods
35 : virtual void SAL_CALL Clear() = 0;
36 : virtual void SAL_CALL Raise( const ::com::sun::star::uno::Any& Number, const ::com::sun::star::uno::Any& Source, const ::com::sun::star::uno::Any& Description, const ::com::sun::star::uno::Any& HelpFile, const ::com::sun::star::uno::Any& HelpContext ) = 0;
37 :
38 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
39 :
40 : protected:
41 0 : ~XErrObject() throw () {} // avoid warnings about virtual members and non-virtual dtor
42 : };
43 :
44 :
45 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::XErrObject const *);
46 : } }
47 :
48 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::XErrObject > *) SAL_THROW(());
49 :
50 : #endif
|