bump product version to 6.3.0.0.beta1
[LibreOffice.git] / reportdesign / source / ui / inc / statusbarcontroller.hxx
blobbe539ec25e3c5f9eb996712e936fc5e4b51b4be2
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 INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STATUSBARCONTROLLER_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_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 ::cppu::ImplHelper1 < css::lang::XServiceInfo> OStatusbarController_BASE;
31 class OStatusbarController : public ::svt::StatusbarController,
32 public OStatusbarController_BASE
34 css::uno::Reference< css::frame::XStatusbarController > m_rController;
35 sal_uInt16 m_nSlotId;
36 sal_uInt16 m_nId;
37 public:
38 OStatusbarController(const css::uno::Reference< css::uno::XComponentContext >& _rxORB);
40 /// @throws css::uno::RuntimeException
41 static OUString getImplementationName_Static();
42 /// @throws css::uno::RuntimeException
43 static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
44 static css::uno::Reference< css::uno::XInterface >
45 create(css::uno::Reference< css::uno::XComponentContext > const & xContext);
47 private:
48 void SAL_CALL dispose() override;
49 // XInterface
50 DECLARE_XINTERFACE( )
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() override;
53 virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() override;
54 // need by registration
56 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
58 // XInitialization
59 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
61 // XUpdatable
62 virtual void SAL_CALL update() override;
64 // XStatusListener
65 virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
67 // XStatusbarController
68 virtual sal_Bool SAL_CALL mouseButtonDown( const css::awt::MouseEvent& aMouseEvent ) override;
69 virtual sal_Bool SAL_CALL mouseMove( const css::awt::MouseEvent& aMouseEvent ) override;
70 virtual sal_Bool SAL_CALL mouseButtonUp( const css::awt::MouseEvent& aMouseEvent ) override;
71 virtual void SAL_CALL command( const css::awt::Point& aPos,
72 ::sal_Int32 nCommand,
73 sal_Bool bMouseEvent,
74 const css::uno::Any& aData ) override;
75 virtual void SAL_CALL paint( const css::uno::Reference< css::awt::XGraphics >& xGraphics,
76 const css::awt::Rectangle& rOutputRectangle,
77 ::sal_Int32 nStyle ) override;
78 virtual void SAL_CALL click( const css::awt::Point& aPos ) override;
79 virtual void SAL_CALL doubleClick( const css::awt::Point& aPos ) override;
82 #endif // DBAUI_STATUSBARCONTROLLER_HXX
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */