Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_PLUGIN_XPLUGINMANAGER_HDL
2 : #define INCLUDED_COM_SUN_STAR_PLUGIN_XPLUGINMANAGER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : namespace com { namespace sun { namespace star { namespace awt { class XToolkit; } } } }
7 : namespace com { namespace sun { namespace star { namespace awt { class XWindowPeer; } } } }
8 : #include "com/sun/star/plugin/PluginDescription.hdl"
9 : #include "com/sun/star/plugin/PluginException.hdl"
10 : namespace com { namespace sun { namespace star { namespace plugin { class XPlugin; } } } }
11 : namespace com { namespace sun { namespace star { namespace plugin { class XPluginContext; } } } }
12 : #include "com/sun/star/uno/RuntimeException.hdl"
13 : #include "com/sun/star/uno/XInterface.hdl"
14 : #include "com/sun/star/uno/Reference.h"
15 : #include "com/sun/star/uno/Sequence.h"
16 : #include "cppu/macros.hxx"
17 : #include "rtl/ustring.hxx"
18 : #include "sal/types.h"
19 :
20 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 :
22 : namespace com { namespace sun { namespace star { namespace plugin {
23 :
24 0 : class SAL_NO_VTABLE XPluginManager : public css::uno::XInterface
25 : {
26 : public:
27 :
28 : // Methods
29 : virtual ::com::sun::star::uno::Reference< css::plugin::XPluginContext > SAL_CALL createPluginContext() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::com::sun::star::uno::Sequence< css::plugin::PluginDescription > SAL_CALL getPluginDescriptions() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Reference< css::plugin::XPlugin > SAL_CALL createPlugin( const ::com::sun::star::uno::Reference< css::plugin::XPluginContext >& acontext, ::sal_Int16 mode, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& argn, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& argv, const css::plugin::PluginDescription& plugintype ) /* throw (css::plugin::PluginException, ::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::com::sun::star::uno::Reference< css::plugin::XPlugin > SAL_CALL createPluginFromURL( const ::com::sun::star::uno::Reference< css::plugin::XPluginContext >& acontext, ::sal_Int16 mode, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& argn, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& argv, const ::com::sun::star::uno::Reference< css::awt::XToolkit >& toolkit, const ::com::sun::star::uno::Reference< css::awt::XWindowPeer >& parent, const ::rtl::OUString& url ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 :
34 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
35 :
36 : protected:
37 0 : ~XPluginManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
38 : };
39 :
40 :
41 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::plugin::XPluginManager const *);
42 : } } } }
43 :
44 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::plugin::XPluginManager > *) SAL_THROW(());
45 :
46 : #endif
|