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 1 : class SAL_NO_VTABLE XApplication : public css::uno::XInterface
24 : {
25 : public:
26 :
27 : // Attributes
28 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XDocument > SAL_CALL getActiveDocument() = 0;
29 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XWindow > SAL_CALL getActiveWindow() = 0;
30 : virtual ::rtl::OUString SAL_CALL getName() = 0;
31 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSystem > SAL_CALL getSystem() = 0;
32 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XOptions > SAL_CALL getOptions() = 0;
33 : virtual ::com::sun::star::uno::Reference< ::ooo::vba::word::XSelection > SAL_CALL getSelection() = 0;
34 : virtual ::sal_Bool SAL_CALL getDisplayAutoCompleteTips() = 0;
35 : virtual void SAL_CALL setDisplayAutoCompleteTips( ::sal_Bool _displayautocompletetips ) = 0;
36 : virtual ::sal_Int32 SAL_CALL getEnableCancelKey() = 0;
37 : virtual void SAL_CALL setEnableCancelKey( ::sal_Int32 _enablecancelkey ) = 0;
38 :
39 : // Methods
40 : virtual ::com::sun::star::uno::Any SAL_CALL CommandBars( const ::com::sun::star::uno::Any& Index ) = 0;
41 : virtual ::com::sun::star::uno::Any SAL_CALL Documents( const ::com::sun::star::uno::Any& Index ) = 0;
42 : virtual ::com::sun::star::uno::Any SAL_CALL Addins( const ::com::sun::star::uno::Any& Index ) = 0;
43 : virtual ::com::sun::star::uno::Any SAL_CALL Dialogs( const ::com::sun::star::uno::Any& Index ) = 0;
44 : virtual ::com::sun::star::uno::Any SAL_CALL ListGalleries( const ::com::sun::star::uno::Any& aIndex ) = 0;
45 : virtual float SAL_CALL CentimetersToPoints( float Centimeters ) = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 1 : ~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
|