merge the formfield patch from ooo-build
[ooovba.git] / reportdesign / source / ui / inc / statusbarcontroller.hxx
blobedada8f84eddbd511b893366a03563c8644c87e6
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: statusbarcontroller.hxx,v $
10 * $Revision: 1.2 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef RPTUI_STATUSBARCONTROLLER_HXX
31 #define RPTUI_STATUSBARCONTROLLER_HXX
33 #include <svtools/statusbarcontroller.hxx>
34 #include <comphelper/uno3.hxx>
35 #include <com/sun/star/lang/XServiceInfo.hpp>
36 #include <cppuhelper/implbase1.hxx>
37 #include <comphelper/implementationreference.hxx>
39 class SfxStatusBarControl;
40 namespace rptui
42 typedef ::comphelper::ImplementationReference<SfxStatusBarControl,::com::sun::star::frame::XStatusbarController> TStatusbarHelper;
44 typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo> OStatusbarController_BASE;
45 class OStatusbarController : public ::svt::StatusbarController,
46 public OStatusbarController_BASE
48 TStatusbarHelper m_pController;
49 sal_uInt16 m_nSlotId;
50 sal_uInt16 m_nId;
51 public:
52 OStatusbarController(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
54 static ::rtl::OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException );
55 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
56 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
57 create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
59 private:
60 void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
61 // XInterface
62 DECLARE_XINTERFACE( )
63 // XServiceInfo
64 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
65 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
66 // need by registration
68 virtual ::sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
70 // XInitialization
71 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);
73 // XUpdatable
74 virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
76 // XStatusListener
77 virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
79 // XStatusbarController
80 virtual ::sal_Bool SAL_CALL mouseButtonDown( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
81 virtual ::sal_Bool SAL_CALL mouseMove( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
82 virtual ::sal_Bool SAL_CALL mouseButtonUp( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
83 virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
84 ::sal_Int32 nCommand,
85 ::sal_Bool bMouseEvent,
86 const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException);
87 virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics,
88 const ::com::sun::star::awt::Rectangle& rOutputRectangle,
89 ::sal_Int32 nItemId, ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException);
90 virtual void SAL_CALL click() throw (::com::sun::star::uno::RuntimeException);
91 virtual void SAL_CALL doubleClick() throw (::com::sun::star::uno::RuntimeException);
94 #endif // DBAUI_STATUSBARCONTROLLER_HXX