Line data Source code
1 : #ifndef INCLUDED_OOO_VBA_XAPPLICATIONBASE_HDL
2 : #define INCLUDED_OOO_VBA_XAPPLICATIONBASE_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/uno/RuntimeException.hdl"
7 : #include "ooo/vba/XHelperInterface.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 1 : class SAL_NO_VTABLE XApplicationBase : public ::ooo::vba::XHelperInterface
19 : {
20 : public:
21 :
22 : // Attributes
23 : virtual ::sal_Bool SAL_CALL getScreenUpdating() = 0;
24 : virtual void SAL_CALL setScreenUpdating( ::sal_Bool _screenupdating ) = 0;
25 : virtual ::sal_Bool SAL_CALL getDisplayStatusBar() = 0;
26 : virtual void SAL_CALL setDisplayStatusBar( ::sal_Bool _displaystatusbar ) = 0;
27 : virtual ::sal_Bool SAL_CALL getInteractive() = 0;
28 : virtual void SAL_CALL setInteractive( ::sal_Bool _interactive ) = 0;
29 : virtual ::sal_Bool SAL_CALL getVisible() = 0;
30 : virtual void SAL_CALL setVisible( ::sal_Bool _visible ) = 0;
31 : virtual ::rtl::OUString SAL_CALL getVersion() = 0;
32 : virtual ::com::sun::star::uno::Any SAL_CALL getVBE() = 0;
33 :
34 : // Methods
35 : virtual void SAL_CALL Quit() = 0;
36 : virtual void SAL_CALL OnKey( const ::rtl::OUString& Key, const ::com::sun::star::uno::Any& Procedure ) = 0;
37 : virtual ::com::sun::star::uno::Any SAL_CALL CommandBars( const ::com::sun::star::uno::Any& Index ) = 0;
38 : virtual ::com::sun::star::uno::Any SAL_CALL Run( const ::rtl::OUString& MacroName, const ::com::sun::star::uno::Any& varg1, const ::com::sun::star::uno::Any& varg2, const ::com::sun::star::uno::Any& varg3, const ::com::sun::star::uno::Any& varg4, const ::com::sun::star::uno::Any& varg5, const ::com::sun::star::uno::Any& varg6, const ::com::sun::star::uno::Any& varg7, const ::com::sun::star::uno::Any& varg8, const ::com::sun::star::uno::Any& varg9, const ::com::sun::star::uno::Any& varg10, const ::com::sun::star::uno::Any& varg11, const ::com::sun::star::uno::Any& varg12, const ::com::sun::star::uno::Any& varg13, const ::com::sun::star::uno::Any& varg14, const ::com::sun::star::uno::Any& varg15, const ::com::sun::star::uno::Any& varg16, const ::com::sun::star::uno::Any& varg17, const ::com::sun::star::uno::Any& varg18, const ::com::sun::star::uno::Any& varg19, const ::com::sun::star::uno::Any& varg20, const ::com::sun::star::uno::Any& varg21, const ::com::sun::star::uno::Any& varg22, const ::com::sun::star::uno::Any& varg23, const ::com::sun::star::uno::Any& varg24, const ::com::sun::star::uno::Any& varg25, const ::com::sun::star::uno::Any& varg26, const ::com::sun::star::uno::Any& varg27, const ::com::sun::star::uno::Any& varg28, const ::com::sun::star::uno::Any& varg29, const ::com::sun::star::uno::Any& varg30 ) = 0;
39 : virtual void SAL_CALL OnTime( const ::com::sun::star::uno::Any& EarliestTime, const ::rtl::OUString& Procedure, const ::com::sun::star::uno::Any& LatestTime, const ::com::sun::star::uno::Any& Schedule ) = 0;
40 : virtual float SAL_CALL CentimetersToPoints( float Centimeters ) = 0;
41 : virtual void SAL_CALL Undo() = 0;
42 :
43 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
44 :
45 : protected:
46 1 : ~XApplicationBase() throw () {} // avoid warnings about virtual members and non-virtual dtor
47 : };
48 :
49 :
50 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::XApplicationBase const *);
51 : } }
52 :
53 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::XApplicationBase > *) SAL_THROW(());
54 :
55 : #endif
|