bump product version to 4.1.6.2
[LibreOffice.git] / reportdesign / source / ui / inc / statusbarcontroller.hxx
blob6e6fda959e5d53d85b533b9e9f68c6f69146efb5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef RPTUI_STATUSBARCONTROLLER_HXX
20 #define RPTUI_STATUSBARCONTROLLER_HXX
22 #include <svtools/statusbarcontroller.hxx>
23 #include <comphelper/uno3.hxx>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <cppuhelper/implbase1.hxx>
27 class SfxStatusBarControl;
28 namespace rptui
30 typedef com::sun::star::uno::Reference< com::sun::star::frame::XStatusbarController > TStatusbarRef;
32 typedef ::cppu::ImplHelper1 < ::com::sun::star::lang::XServiceInfo> OStatusbarController_BASE;
33 class OStatusbarController : public ::svt::StatusbarController,
34 public OStatusbarController_BASE
36 TStatusbarRef m_rController;
37 sal_uInt16 m_nSlotId;
38 sal_uInt16 m_nId;
39 public:
40 OStatusbarController(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB);
42 static OUString getImplementationName_Static() throw( ::com::sun::star::uno::RuntimeException );
43 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException );
44 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
45 create(::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > const & xContext);
47 private:
48 void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException);
49 // XInterface
50 DECLARE_XINTERFACE( )
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
53 virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
54 // need by registration
56 virtual ::sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw (::com::sun::star::uno::RuntimeException);
58 // XInitialization
59 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);
61 // XUpdatable
62 virtual void SAL_CALL update() throw (::com::sun::star::uno::RuntimeException);
64 // XStatusListener
65 virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException );
67 // XStatusbarController
68 virtual ::sal_Bool SAL_CALL mouseButtonDown( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
69 virtual ::sal_Bool SAL_CALL mouseMove( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
70 virtual ::sal_Bool SAL_CALL mouseButtonUp( const ::com::sun::star::awt::MouseEvent& aMouseEvent ) throw (::com::sun::star::uno::RuntimeException);
71 virtual void SAL_CALL command( const ::com::sun::star::awt::Point& aPos,
72 ::sal_Int32 nCommand,
73 ::sal_Bool bMouseEvent,
74 const ::com::sun::star::uno::Any& aData ) throw (::com::sun::star::uno::RuntimeException);
75 virtual void SAL_CALL paint( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XGraphics >& xGraphics,
76 const ::com::sun::star::awt::Rectangle& rOutputRectangle,
77 ::sal_Int32 nStyle ) throw (::com::sun::star::uno::RuntimeException);
78 virtual void SAL_CALL click( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
79 virtual void SAL_CALL doubleClick( const ::com::sun::star::awt::Point& aPos ) throw (::com::sun::star::uno::RuntimeException);
82 #endif // DBAUI_STATUSBARCONTROLLER_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */