LibreOffice Module filter (master) 1
configflush.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#pragma once
20
21#include <com/sun/star/util/XRefreshable.hpp>
22#include <com/sun/star/lang/XServiceInfo.hpp>
25
26
27namespace filter::config {
28
29
36class ConfigFlush final : public ::cppu::WeakImplHelper<
37 css::util::XRefreshable,
38 css::lang::XServiceInfo
39 >
40{
41 std::mutex m_aMutex;
44
45
46 // native interface
47
48 public:
49
50
51 // ctor/dtor
52
56
57
60 virtual ~ConfigFlush() override;
61
62
63 // uno interface
64
65 public:
66
67
68 // XServiceInfo
69
70 virtual OUString SAL_CALL getImplementationName() override;
71
72 virtual sal_Bool SAL_CALL supportsService(const OUString& sServiceName) override;
73
74 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
75
76
77 // XRefreshable
78
79 virtual void SAL_CALL refresh() override;
80
81 virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener >& xListener) override;
82
83 virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener >& xListener) override;
84};
85
86} // namespace filter::config
87
88/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
supports registration of XRefreshListener on the global filter configuration.
Definition: configflush.hxx:40
comphelper::OInterfaceContainerHelper4< css::util::XRefreshListener > m_aRefreshListeners
holds all listener, which are registered at this instance.
Definition: configflush.hxx:43
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: configflush.cxx:47
virtual void SAL_CALL refresh() override
Definition: configflush.cxx:52
virtual void SAL_CALL removeRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &xListener) override
Definition: configflush.cxx:74
virtual OUString SAL_CALL getImplementationName() override
Definition: configflush.cxx:36
ConfigFlush()
standard ctor.
Definition: configflush.cxx:28
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Definition: configflush.cxx:42
virtual ~ConfigFlush() override
standard dtor.
Definition: configflush.cxx:32
virtual void SAL_CALL addRefreshListener(const css::uno::Reference< css::util::XRefreshListener > &xListener) override
Definition: configflush.cxx:67
unsigned char sal_Bool