lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / sfx2 / asyncfunc.hxx
blob7d4f409b86b345ab9772d7f9f44544f810bb7422
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_SFX2_ASYNCFUNC_HXX
11 #define INCLUDED_SFX2_ASYNCFUNC_HXX
13 #include <functional>
15 #include <com/sun/star/lang/XUnoTunnel.hpp>
16 #include <comphelper/servicehelper.hxx>
17 #include <cppuhelper/implbase.hxx>
19 class AsyncFunc final : public cppu::WeakImplHelper<css::lang::XUnoTunnel>
21 private:
22 std::function<void()> const m_pAsyncFunc;
24 public:
25 AsyncFunc(const std::function<void()>&);
26 virtual ~AsyncFunc() override;
28 void Execute();
30 //XUnoTunnel
31 UNO3_GETIMPLEMENTATION_DECL(AsyncFunc)
34 #endif
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */