LibreOffice Module framework (master) 1
ContextChangeEventMultiplexerTunnel.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
10#include <framework/fwkdllapi.h>
11#include <functional>
12
13#include <com/sun/star/uno/Reference.hxx>
14
15namespace com::sun::star::ui { class XContextChangeEventListener; }
16namespace com::sun::star::uno { class XInterface; }
17namespace com::sun::star::uno { class XComponentContext; }
18
19namespace framework {
20
21// this is pretty horrible, don't use it!
22FWK_DLLPUBLIC css::uno::Reference<css::ui::XContextChangeEventListener>
24 css::uno::Reference<css::uno::XComponentContext> const & xComponentContext,
25 css::uno::Reference<css::uno::XInterface> const& xEventFocus,
26 std::function<bool (css::uno::Reference<css::ui::XContextChangeEventListener> const&)> const& rPredicate);
27
28}
29
30/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define FWK_DLLPUBLIC
Definition: fwkdllapi.h:19
uno::Reference< ui::XContextChangeEventListener > GetFirstListenerWith(css::uno::Reference< css::uno::XComponentContext > const &xComponentContext, uno::Reference< uno::XInterface > const &xEventFocus, std::function< bool(uno::Reference< ui::XContextChangeEventListener > const &)> const &rPredicate)