Use o3tl::convert in Math
[LibreOffice.git] / reportdesign / source / ui / inc / statusbarcontroller.hxx
blob13bfb7706ab67a7239ef2163e1a6c14265de4c8b
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 private:
41 void SAL_CALL dispose() override;
42 // XInterface
43 DECLARE_XINTERFACE( )
44 // XServiceInfo
45 virtual OUString SAL_CALL getImplementationName() override;
46 virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() override;
47 // need by registration
49 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
51 // XInitialization
52 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
54 // XUpdatable
55 virtual void SAL_CALL update() override;
57 // XStatusListener
58 virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
60 // XStatusbarController
61 virtual sal_Bool SAL_CALL mouseButtonDown( const css::awt::MouseEvent& aMouseEvent ) override;
62 virtual sal_Bool SAL_CALL mouseMove( const css::awt::MouseEvent& aMouseEvent ) override;
63 virtual sal_Bool SAL_CALL mouseButtonUp( const css::awt::MouseEvent& aMouseEvent ) override;
64 virtual void SAL_CALL command( const css::awt::Point& aPos,
65 ::sal_Int32 nCommand,
66 sal_Bool bMouseEvent,
67 const css::uno::Any& aData ) override;
68 virtual void SAL_CALL paint( const css::uno::Reference< css::awt::XGraphics >& xGraphics,
69 const css::awt::Rectangle& rOutputRectangle,
70 ::sal_Int32 nStyle ) override;
71 virtual void SAL_CALL click( const css::awt::Point& aPos ) override;
72 virtual void SAL_CALL doubleClick( const css::awt::Point& aPos ) override;
75 #endif // DBAUI_STATUSBARCONTROLLER_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */