Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / chart2 / source / inc / PopupRequest.hxx
blob0c9af2f50bad13ba2b32f50d131fee64b28be8c6
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/.
8 */
10 #ifndef INCLUDED_CHART2_SOURCE_INC_POPUPREQUEST_HXX
11 #define INCLUDED_CHART2_SOURCE_INC_POPUPREQUEST_HXX
13 #include "MutexContainer.hxx"
14 #include "charttoolsdllapi.hxx"
16 #include <cppuhelper/compbase.hxx>
17 #include <com/sun/star/awt/XRequestCallback.hpp>
19 namespace chart
22 namespace impl
25 typedef cppu::WeakComponentImplHelper<css::awt::XRequestCallback> PopupRequest_Base;
29 class OOO_DLLPUBLIC_CHARTTOOLS PopupRequest : public MutexContainer, public impl::PopupRequest_Base
31 public:
32 explicit PopupRequest();
33 virtual ~PopupRequest() override;
35 css::uno::Reference<css::awt::XCallback> const & getCallback() const
37 return m_xCallback;
40 protected:
41 // ____ XRequestCallback ____
42 virtual void SAL_CALL addCallback(const css::uno::Reference< ::css::awt::XCallback >& xCallback,
43 const css::uno::Any& aData) override;
45 // ____ WeakComponentImplHelperBase ____
46 // is called when dispose() is called at this component
47 virtual void SAL_CALL disposing() override;
49 private:
50 css::uno::Reference<css::awt::XCallback> m_xCallback;
53 } // namespace chart
55 #endif // INCLUDED_CHART2_SOURCE_INC_POPUPREQUEST_HXX
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */