1 
2 
3 #ifndef __FRAMEWORK_UIELEMENT_PANELWRAPPER_HXX_
4 #define __FRAMEWORK_UIELEMENT_PANELWRAPPER_HXX_
5 
6 //_________________________________________________________________________________________________________________
7 //	my own includes
8 //_________________________________________________________________________________________________________________
9 
10 #include <helper/uielementwrapperbase.hxx>
11 
12 //_________________________________________________________________________________________________________________
13 //	interface includes
14 //_________________________________________________________________________________________________________________
15 
16 #include <com/sun/star/frame/XFrame.hpp>
17 #include <com/sun/star/lang/XComponent.hpp>
18 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
19 
20 //_________________________________________________________________________________________________________________
21 //	other includes
22 //_________________________________________________________________________________________________________________
23 
24 namespace framework
25 {
26 
27 class PanelWrapper : public UIElementWrapperBase
28 {
29     public:
30 		PanelWrapper( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xServiceManager );
31 		virtual ~PanelWrapper();
32 
33 		// XInterface
34 		virtual void SAL_CALL acquire() throw();
35 		virtual void SAL_CALL release() throw();
36 		virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw( ::com::sun::star::uno::RuntimeException );
37 
38 		// XComponent
39 		virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
40 
41 		// XInitialization
42 		virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw (::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
43 
44 		// XUIElement
45 		virtual ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL getRealInterface() throw (::com::sun::star::uno::RuntimeException);
46 
47 		// XUpdatable
48 		virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
49 
50 		// XEventListener
51 		using cppu::OPropertySetHelper::disposing;
52 		virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw (::com::sun::star::uno::RuntimeException);
53 
54     //-------------------------------------------------------------------------------------------------------------
55     //	protected methods
56     //-------------------------------------------------------------------------------------------------------------
57     protected:
58 		virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const com::sun::star::uno::Any&  aValue ) throw( com::sun::star::uno::Exception );
59 
60     private:
61 		com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >    m_xServiceManager;
62 		com::sun::star::uno::Reference< com::sun::star::awt::XWindow >                  m_xPanelWindow;
63         bool                                                                            m_bNoClose;
64 };
65 
66 }
67 
68 #endif // __FRAMEWORK_UIELEMENT_PANELWRAPPER_HXX_
69