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 .
21 #include <com/sun/star/util/XRefreshable.hpp>
22 #include <com/sun/star/lang/XServiceInfo.hpp>
23 #include <comphelper/interfacecontainer4.hxx>
24 #include <cppuhelper/implbase.hxx>
27 namespace filter::config
{
30 /** @short supports registration of XRefreshListener
31 on the global filter configuration.
33 @descr Such refresh listener will be called in case the
34 type/filter configuration will be changed at runtime.
36 class ConfigFlush final
: public ::cppu::WeakImplHelper
<
37 css::util::XRefreshable
,
38 css::lang::XServiceInfo
42 /** @short holds all listener, which are registered at this instance. */
43 comphelper::OInterfaceContainerHelper4
<css::util::XRefreshListener
> m_aRefreshListeners
;
53 /** @short standard ctor.
58 /** @short standard dtor.
60 virtual ~ConfigFlush() override
;
70 virtual OUString SAL_CALL
getImplementationName() override
;
72 virtual sal_Bool SAL_CALL
supportsService(const OUString
& sServiceName
) override
;
74 virtual css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() override
;
79 virtual void SAL_CALL
refresh() override
;
81 virtual void SAL_CALL
addRefreshListener(const css::uno::Reference
< css::util::XRefreshListener
>& xListener
) override
;
83 virtual void SAL_CALL
removeRefreshListener(const css::uno::Reference
< css::util::XRefreshListener
>& xListener
) override
;
86 } // namespace filter::config
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */