Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_PLUGIN_XPLUGINCONTEXT_HDL
2 : #define INCLUDED_COM_SUN_STAR_PLUGIN_XPLUGINCONTEXT_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace io { class XActiveDataSource; } } } }
7 : namespace com { namespace sun { namespace star { namespace lang { class XEventListener; } } } }
8 : #include "com/sun/star/plugin/PluginException.hdl"
9 : #include "com/sun/star/plugin/PluginVariable.hdl"
10 : namespace com { namespace sun { namespace star { namespace plugin { class XPlugin; } } } }
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : #include "com/sun/star/uno/XInterface.hdl"
13 : #include "com/sun/star/uno/Reference.h"
14 : #include "com/sun/star/uno/Sequence.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 com { namespace sun { namespace star { namespace plugin {
22 :
23 0 : class SAL_NO_VTABLE XPluginContext : public css::uno::XInterface
24 : {
25 : public:
26 :
27 : // Methods
28 : virtual ::rtl::OUString SAL_CALL getValue( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& xPlugin, css::plugin::PluginVariable aVariable ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual void SAL_CALL getURLNotify( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& url, const ::rtl::OUString& target, const ::com::sun::star::uno::Reference< css::lang::XEventListener >& listener ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual void SAL_CALL getURL( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& url, const ::rtl::OUString& target ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL postURLNotify( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& url, const ::rtl::OUString& target, const ::com::sun::star::uno::Sequence< ::sal_Int8 >& buf, ::sal_Bool file, const ::com::sun::star::uno::Reference< css::lang::XEventListener >& listener ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL postURL( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& url, const ::rtl::OUString& target, const ::com::sun::star::uno::Sequence< ::sal_Int8 >& buf, ::sal_Bool file ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL newStream( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& mimetype, const ::rtl::OUString& target, const ::com::sun::star::uno::Reference< css::io::XActiveDataSource >& aSource ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL displayStatusText( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin, const ::rtl::OUString& message ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::rtl::OUString SAL_CALL getUserAgent( const ::com::sun::star::uno::Reference< css::plugin::XPlugin >& plugin ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 :
37 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
38 :
39 : protected:
40 0 : ~XPluginContext() throw () {} // avoid warnings about virtual members and non-virtual dtor
41 : };
42 :
43 :
44 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::plugin::XPluginContext const *);
45 : } } } }
46 :
47 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::plugin::XPluginContext > *) SAL_THROW(());
48 :
49 : #endif
|