xref: /AOO41X/main/reportdesign/source/ui/inc/statusbarcontroller.hxx (revision 47148b3bc50811ceb41802e4cc50a5db21535900)
19ee13d13SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
39ee13d13SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
49ee13d13SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
59ee13d13SAndrew Rist  * distributed with this work for additional information
69ee13d13SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
79ee13d13SAndrew Rist  * to you under the Apache License, Version 2.0 (the
89ee13d13SAndrew Rist  * "License"); you may not use this file except in compliance
99ee13d13SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
119ee13d13SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
139ee13d13SAndrew Rist  * Unless required by applicable law or agreed to in writing,
149ee13d13SAndrew Rist  * software distributed under the License is distributed on an
159ee13d13SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
169ee13d13SAndrew Rist  * KIND, either express or implied.  See the License for the
179ee13d13SAndrew Rist  * specific language governing permissions and limitations
189ee13d13SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
209ee13d13SAndrew Rist  *************************************************************/
219ee13d13SAndrew Rist 
229ee13d13SAndrew Rist 
23cdf0e10cSrcweir #ifndef RPTUI_STATUSBARCONTROLLER_HXX
24cdf0e10cSrcweir #define RPTUI_STATUSBARCONTROLLER_HXX
25cdf0e10cSrcweir 
26cdf0e10cSrcweir #include <svtools/statusbarcontroller.hxx>
27cdf0e10cSrcweir #include <comphelper/uno3.hxx>
28cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp>
29cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class SfxStatusBarControl;
32cdf0e10cSrcweir namespace rptui
33cdf0e10cSrcweir {
34*0c02d14eSAriel Constenla-Haile     typedef com::sun::star::uno::Reference< com::sun::star::frame::XStatusbarController > TStatusbarRef;
35cdf0e10cSrcweir 
36cdf0e10cSrcweir 	typedef ::cppu::ImplHelper1	<	::com::sun::star::lang::XServiceInfo> OStatusbarController_BASE;
37cdf0e10cSrcweir 	class OStatusbarController : public ::svt::StatusbarController,
38cdf0e10cSrcweir 								 public OStatusbarController_BASE
39cdf0e10cSrcweir 	{
40*0c02d14eSAriel Constenla-Haile         TStatusbarRef   m_rController;
41cdf0e10cSrcweir         sal_uInt16      m_nSlotId;
42cdf0e10cSrcweir         sal_uInt16      m_nId;
43cdf0e10cSrcweir 	public:
44cdf0e10cSrcweir 		OStatusbarController(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
45cdf0e10cSrcweir 
46cdf0e10cSrcweir         static ::rtl::OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException );
47cdf0e10cSrcweir 	    static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
48cdf0e10cSrcweir 	    static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
49cdf0e10cSrcweir 		    create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
50cdf0e10cSrcweir 
51cdf0e10cSrcweir     private:
52cdf0e10cSrcweir         void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
53cdf0e10cSrcweir 		// XInterface
54cdf0e10cSrcweir         DECLARE_XINTERFACE( )
55cdf0e10cSrcweir 	    // XServiceInfo
56cdf0e10cSrcweir 	    virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
57cdf0e10cSrcweir 	    virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
58cdf0e10cSrcweir 	    // need by registration
59cdf0e10cSrcweir 
60cdf0e10cSrcweir 	    virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
61cdf0e10cSrcweir 
62cdf0e10cSrcweir         // XInitialization
63cdf0e10cSrcweir         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);
64cdf0e10cSrcweir 
65cdf0e10cSrcweir         // XUpdatable
66cdf0e10cSrcweir         virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
67cdf0e10cSrcweir 
68cdf0e10cSrcweir         // XStatusListener
69cdf0e10cSrcweir 	    virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
70cdf0e10cSrcweir 
71cdf0e10cSrcweir         // XStatusbarController
72cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL mouseButtonDown( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
73cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL mouseMove( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
74cdf0e10cSrcweir         virtual ::sal_Bool SAL_CALL mouseButtonUp( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
75cdf0e10cSrcweir         virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
76cdf0e10cSrcweir                                        ::sal_Int32 nCommand,
77cdf0e10cSrcweir                                        ::sal_Bool bMouseEvent,
78cdf0e10cSrcweir                                        const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException);
79cdf0e10cSrcweir         virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics,
80cdf0e10cSrcweir                                      const ::com::sun::star::awt::Rectangle& rOutputRectangle,
81*0c02d14eSAriel Constenla-Haile                                      ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException);
82*0c02d14eSAriel Constenla-Haile         virtual void SAL_CALL click( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
83*0c02d14eSAriel Constenla-Haile         virtual void SAL_CALL doubleClick( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
84cdf0e10cSrcweir 	};
85cdf0e10cSrcweir }
86cdf0e10cSrcweir #endif // DBAUI_STATUSBARCONTROLLER_HXX
87cdf0e10cSrcweir 
88