1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
;
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
;
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
);
48 void SAL_CALL
dispose() override
;
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
;
59 virtual void SAL_CALL
initialize( const css::uno::Sequence
< css::uno::Any
>& aArguments
) override
;
62 virtual void SAL_CALL
update() override
;
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
,
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: */