Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_UI_XIMAGEMANAGER_HDL
2 : #define INCLUDED_COM_SUN_STAR_UI_XIMAGEMANAGER_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/container/ElementExistException.hdl"
7 : namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } }
8 : #include "com/sun/star/lang/IllegalAccessException.hdl"
9 : #include "com/sun/star/lang/IllegalArgumentException.hdl"
10 : #include "com/sun/star/lang/XComponent.hdl"
11 : #include "com/sun/star/lang/XInitialization.hdl"
12 : #include "com/sun/star/ui/XUIConfiguration.hdl"
13 : #include "com/sun/star/ui/XUIConfigurationPersistence.hdl"
14 : #include "com/sun/star/uno/RuntimeException.hdl"
15 : #include "com/sun/star/uno/Reference.h"
16 : #include "com/sun/star/uno/Sequence.h"
17 : #include "cppu/macros.hxx"
18 : #include "rtl/ustring.hxx"
19 : #include "sal/types.h"
20 :
21 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
22 :
23 : namespace com { namespace sun { namespace star { namespace ui {
24 :
25 1135 : class SAL_NO_VTABLE XImageManager : public css::ui::XUIConfigurationPersistence, public css::ui::XUIConfiguration, public css::lang::XComponent, public css::lang::XInitialization
26 : {
27 : public:
28 :
29 : // Methods
30 : virtual void SAL_CALL reset() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAllImageNames( ::sal_Int16 nImageType ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual ::sal_Bool SAL_CALL hasImage( ::sal_Int16 nImageType, const ::rtl::OUString& CommandURL ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::graphic::XGraphic > > SAL_CALL getImages( ::sal_Int16 nImageType, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCommandURLSequence ) /* throw (css::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual void SAL_CALL replaceImages( ::sal_Int16 nImageType, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCommandURLSequence, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::graphic::XGraphic > >& aGraphicsSequence ) /* throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL removeImages( ::sal_Int16 nImageType, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& CommandURLs ) /* throw (css::lang::IllegalArgumentException, css::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL insertImages( ::sal_Int16 nImageType, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aCommandURLSequence, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< css::graphic::XGraphic > >& aGraphicSequence ) /* throw (css::container::ElementExistException, css::lang::IllegalArgumentException, css::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException) */ = 0;
37 :
38 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
39 :
40 : protected:
41 1133 : ~XImageManager() throw () {} // avoid warnings about virtual members and non-virtual dtor
42 : };
43 :
44 :
45 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::ui::XImageManager const *);
46 : } } } }
47 :
48 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::ui::XImageManager > *) SAL_THROW(());
49 :
50 : #endif
|