1*9ee13d13SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9ee13d13SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9ee13d13SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9ee13d13SAndrew Rist * distributed with this work for additional information 6*9ee13d13SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9ee13d13SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9ee13d13SAndrew Rist * "License"); you may not use this file except in compliance 9*9ee13d13SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9ee13d13SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9ee13d13SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9ee13d13SAndrew Rist * software distributed under the License is distributed on an 15*9ee13d13SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9ee13d13SAndrew Rist * KIND, either express or implied. See the License for the 17*9ee13d13SAndrew Rist * specific language governing permissions and limitations 18*9ee13d13SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9ee13d13SAndrew Rist *************************************************************/ 21*9ee13d13SAndrew Rist 22*9ee13d13SAndrew 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 #include <comphelper/implementationreference.hxx> 31cdf0e10cSrcweir 32cdf0e10cSrcweir class SfxStatusBarControl; 33cdf0e10cSrcweir namespace rptui 34cdf0e10cSrcweir { 35cdf0e10cSrcweir typedef ::comphelper::ImplementationReference<SfxStatusBarControl,::com::sun::star::frame::XStatusbarController> TStatusbarHelper; 36cdf0e10cSrcweir 37cdf0e10cSrcweir typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo> OStatusbarController_BASE; 38cdf0e10cSrcweir class OStatusbarController : public ::svt::StatusbarController, 39cdf0e10cSrcweir public OStatusbarController_BASE 40cdf0e10cSrcweir { 41cdf0e10cSrcweir TStatusbarHelper m_pController; 42cdf0e10cSrcweir sal_uInt16 m_nSlotId; 43cdf0e10cSrcweir sal_uInt16 m_nId; 44cdf0e10cSrcweir public: 45cdf0e10cSrcweir OStatusbarController(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB); 46cdf0e10cSrcweir 47cdf0e10cSrcweir static ::rtl::OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException ); 48cdf0e10cSrcweir static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException ); 49cdf0e10cSrcweir static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL 50cdf0e10cSrcweir create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext); 51cdf0e10cSrcweir 52cdf0e10cSrcweir private: 53cdf0e10cSrcweir void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException); 54cdf0e10cSrcweir // XInterface 55cdf0e10cSrcweir DECLARE_XINTERFACE( ) 56cdf0e10cSrcweir // XServiceInfo 57cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException); 59cdf0e10cSrcweir // need by registration 60cdf0e10cSrcweir 61cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException); 62cdf0e10cSrcweir 63cdf0e10cSrcweir // XInitialization 64cdf0e10cSrcweir 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); 65cdf0e10cSrcweir 66cdf0e10cSrcweir // XUpdatable 67cdf0e10cSrcweir virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException); 68cdf0e10cSrcweir 69cdf0e10cSrcweir // XStatusListener 70cdf0e10cSrcweir virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException ); 71cdf0e10cSrcweir 72cdf0e10cSrcweir // XStatusbarController 73cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL mouseButtonDown( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException); 74cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL mouseMove( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException); 75cdf0e10cSrcweir virtual ::sal_Bool SAL_CALL mouseButtonUp( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException); 76cdf0e10cSrcweir virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos, 77cdf0e10cSrcweir ::sal_Int32 nCommand, 78cdf0e10cSrcweir ::sal_Bool bMouseEvent, 79cdf0e10cSrcweir const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException); 80cdf0e10cSrcweir virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics, 81cdf0e10cSrcweir const ::com::sun::star::awt::Rectangle& rOutputRectangle, 82cdf0e10cSrcweir ::sal_Int32 nItemId, ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException); 83cdf0e10cSrcweir virtual void SAL_CALL click() throw (::com::sun::star::uno::RuntimeException); 84cdf0e10cSrcweir virtual void SAL_CALL doubleClick() throw (::com::sun::star::uno::RuntimeException); 85cdf0e10cSrcweir }; 86cdf0e10cSrcweir } 87cdf0e10cSrcweir #endif // DBAUI_STATUSBARCONTROLLER_HXX 88cdf0e10cSrcweir 89