Branch data Line data Source code
1 : : #ifndef INCLUDED_OOO_VBA_WORD_XAPPLICATION_HDL
2 : : #define INCLUDED_OOO_VBA_WORD_XAPPLICATION_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 : : #include "sal/types.h"
18 : :
19 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
20 : :
21 : : namespace ooo { namespace vba { namespace word {
22 : :
23 : 3 : class SAL_NO_VTABLE XApplication : public ::com::sun::star::uno::XInterface
24 : : {
25 : : public:
26 : :
27 : : // Attributes
28 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XDocument > SAL_CALL getActiveDocument() throw (::com::sun::star::uno::RuntimeException) = 0;
29 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XWindow > SAL_CALL getActiveWindow() throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::rtl::OUString SAL_CALL getName() throw (::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSystem > SAL_CALL getSystem() throw (::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XOptions > SAL_CALL getOptions() throw (::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSelection > SAL_CALL getSelection() throw (::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::sal_Bool SAL_CALL getDisplayAutoCompleteTips() throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual void SAL_CALL setDisplayAutoCompleteTips( ::sal_Bool _displayautocompletetips ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::sal_Int32 SAL_CALL getEnableCancelKey() throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual void SAL_CALL setEnableCancelKey( ::sal_Int32 _enablecancelkey ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : :
39 : : // Methods
40 : : virtual ::com::sun::star::uno::Any SAL_CALL CommandBars( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::com::sun::star::uno::Any SAL_CALL Documents( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::uno::Any SAL_CALL Addins( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::uno::Any SAL_CALL Dialogs( const ::com::sun::star::uno::Any& Index ) throw (::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::uno::Any SAL_CALL ListGalleries( const ::com::sun::star::uno::Any& aIndex ) throw (::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual float SAL_CALL CentimetersToPoints( float Centimeters ) throw (::com::sun::star::uno::RuntimeException) = 0;
46 : :
47 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 : :
49 : : protected:
50 : 3 : ~XApplication() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : : };
52 : :
53 : :
54 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::ooo::vba::word::XApplication const *);
55 : : } } }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::ooo::vba::word::XApplication > *) SAL_THROW(());
58 : :
59 : : #endif
|