Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_WORD_XGLOBALS_HDL
2 : : #define INCLUDED_OOO_VBA_WORD_XGLOBALS_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : namespace ooo { namespace vba { namespace word { class XSelection; } } }
7 : : #include "com/sun/star/uno/RuntimeException.hdl"
8 : : namespace ooo { namespace vba { namespace word { class XOptions; } } }
9 : : namespace ooo { namespace vba { namespace word { class XSystem; } } }
10 : : namespace ooo { namespace vba { namespace word { class XDocument; } } }
11 : : namespace ooo { namespace vba { namespace word { class XWindow; } } }
12 : : #include "com/sun/star/uno/XInterface.hdl"
13 : : #include "com/sun/star/uno/Any.h"
14 : : #include "com/sun/star/uno/Reference.h"
15 : : #include "cppu/macros.hxx"
16 : : #include "rtl/ustring.hxx"
17 : :
18 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
19 : :
20 : : namespace ooo { namespace vba { namespace word {
21 : :
22 : 3 : class SAL_NO_VTABLE XGlobals : public ::com::sun::star::uno::XInterface
23 : : {
24 : : public:
25 : :
26 : : // Attributes
27 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XDocument > SAL_CALL getActiveDocument() throw (::com::sun::star::uno::RuntimeException) = 0;
28 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XWindow > SAL_CALL getActiveWindow() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::rtl::OUString SAL_CALL getName() throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSystem > SAL_CALL getSystem() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XOptions > SAL_CALL getOptions() throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSelection > SAL_CALL getSelection() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : :
34 : : // Methods
35 : : virtual ::com::sun::star::uno::Any SAL_CALL CommandBars( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::com::sun::star::uno::Any SAL_CALL Documents( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::com::sun::star::uno::Any SAL_CALL Addins( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::com::sun::star::uno::Any SAL_CALL Dialogs( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::com::sun::star::uno::Any SAL_CALL ListGalleries( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual float SAL_CALL CentimetersToPoints( float Centimeters ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : :
42 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
43 : :
44 : : protected:
45 : 3 : ~XGlobals() throw () {} // avoid warnings about virtual members and non-virtual dtor
46 : : };
47 : :
48 : :
49 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XGlobals const *);
50 : : } } }
51 : :
52 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XGlobals > *) SAL_THROW(());
53 : :
54 : : #endif
|