Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_AWT_XPOPUPMENU_HDL
2 : #define INCLUDED_COM_SUN_STAR_AWT_XPOPUPMENU_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/awt/KeyEvent.hdl"
7 : #include "com/sun/star/awt/Rectangle.hdl"
8 : #include "com/sun/star/awt/XMenu.hdl"
9 : namespace com { namespace sun { namespace star { namespace awt { class XWindowPeer; } } } }
10 : namespace com { namespace sun { namespace star { namespace graphic { class XGraphic; } } } }
11 : #include "com/sun/star/uno/RuntimeException.hdl"
12 : #include "com/sun/star/uno/Reference.h"
13 : #include "cppu/macros.hxx"
14 : #include "sal/types.h"
15 :
16 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
17 :
18 : namespace com { namespace sun { namespace star { namespace awt {
19 :
20 7395 : class SAL_NO_VTABLE XPopupMenu : public css::awt::XMenu
21 : {
22 : public:
23 :
24 : // Methods
25 : virtual void SAL_CALL insertSeparator( ::sal_Int16 nItemPos ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
26 : virtual void SAL_CALL setDefaultItem( ::sal_Int16 nItemId ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
27 : virtual ::sal_Int16 SAL_CALL getDefaultItem() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual void SAL_CALL checkItem( ::sal_Int16 nItemId, ::sal_Bool bCheck ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::sal_Bool SAL_CALL isItemChecked( ::sal_Int16 nItemId ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::sal_Int16 SAL_CALL execute( const ::com::sun::star::uno::Reference< css::awt::XWindowPeer >& Parent, const css::awt::Rectangle& Position, ::sal_Int16 Direction ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual ::sal_Bool SAL_CALL isInExecute() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual void SAL_CALL endExecute() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL setAcceleratorKeyEvent( ::sal_Int16 nItemId, const css::awt::KeyEvent& aKeyEvent ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual css::awt::KeyEvent SAL_CALL getAcceleratorKeyEvent( ::sal_Int16 nItemId ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual void SAL_CALL setItemImage( ::sal_Int16 nItemId, const ::com::sun::star::uno::Reference< css::graphic::XGraphic >& xGraphic, ::sal_Bool bScale ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual ::com::sun::star::uno::Reference< css::graphic::XGraphic > SAL_CALL getItemImage( ::sal_Int16 nItemId ) /* throw (::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 7393 : ~XPopupMenu() 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::awt::XPopupMenu const *);
46 : } } } }
47 :
48 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::awt::XPopupMenu > *) SAL_THROW(());
49 :
50 : #endif
|