LibreOffice Module reportdesign (master)  1
statusbarcontroller.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 #ifndef INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STATUSBARCONTROLLER_HXX
20 #define INCLUDED_REPORTDESIGN_SOURCE_UI_INC_STATUSBARCONTROLLER_HXX
21 
23 #include <comphelper/uno3.hxx>
24 #include <com/sun/star/lang/XServiceInfo.hpp>
25 #include <cppuhelper/implbase1.hxx>
26 
28 namespace rptui
29 {
30  typedef ::cppu::ImplHelper1 < css::lang::XServiceInfo> OStatusbarController_BASE;
32  public OStatusbarController_BASE
33  {
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);
39 
40  private:
41  void SAL_CALL dispose() override;
42  // XInterface
44  // XServiceInfo
45  virtual OUString SAL_CALL getImplementationName() override;
46  virtual css::uno::Sequence< OUString> SAL_CALL getSupportedServiceNames() override;
47  // need by registration
48 
49  virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
50 
51  // XInitialization
52  virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
53 
54  // XUpdatable
55  virtual void SAL_CALL update() override;
56 
57  // XStatusListener
58  virtual void SAL_CALL statusChanged( const css::frame::FeatureStateEvent& Event ) override;
59 
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;
73  };
74 }
75 #endif // DBAUI_STATUSBARCONTROLLER_HXX
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL click(const css::awt::Point &aPos) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL update() override
virtual OUString SAL_CALL getImplementationName() override
::cppu::ImplHelper1< css::lang::XServiceInfo > OStatusbarController_BASE
OStatusbarController(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual sal_Bool SAL_CALL mouseButtonDown(const css::awt::MouseEvent &aMouseEvent) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL command(const css::awt::Point &aPos,::sal_Int32 nCommand, sal_Bool bMouseEvent, const css::uno::Any &aData) override
virtual sal_Bool SAL_CALL mouseButtonUp(const css::awt::MouseEvent &aMouseEvent) override
unsigned char sal_Bool
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
virtual void SAL_CALL paint(const css::uno::Reference< css::awt::XGraphics > &xGraphics, const css::awt::Rectangle &rOutputRectangle,::sal_Int32 nStyle) override
virtual void SAL_CALL doubleClick(const css::awt::Point &aPos) override
virtual sal_Bool SAL_CALL mouseMove(const css::awt::MouseEvent &aMouseEvent) override
css::uno::Reference< css::frame::XStatusbarController > m_rController
void SAL_CALL dispose() override
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &Event) override
#define DECLARE_XINTERFACE()