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 "featuredispatcher.hxx"
22 #include "rtattributes.hxx"
23 #include "textattributelistener.hxx"
29 class OAttributeDispatcher
:public ORichTextFeatureDispatcher
30 ,public ITextAttributeListener
33 IMultiAttributeDispatcher
* m_pMasterDispatcher
;
34 AttributeId m_nAttributeId
;
39 the id of the attribute which this instance is responsible for
41 the URL of the feature which this instance is responsible for
42 @param _pMasterDispatcher
43 the dispatcher which can execute the given attribute
45 an instance which is able to convert between SfxPoolItems and XDispatch-Parameters
46 If not <NULL/>, the parametrized version of IMultiAttributeDispatcher::executeAttribute
51 AttributeId _nAttributeId
,
52 const css::util::URL
& _rURL
,
53 IMultiAttributeDispatcher
* _pMasterDispatcher
57 virtual ~OAttributeDispatcher( ) override
;
60 virtual void SAL_CALL
dispatch( const css::util::URL
& URL
, const css::uno::Sequence
< css::beans::PropertyValue
>& Arguments
) override
;
62 // ITextAttributeListener
63 virtual void onAttributeStateChanged( AttributeId _nAttributeId
) override
;
65 // ORichTextFeatureDispatcher
66 virtual void disposing( ::osl::ClearableMutexGuard
& _rClearBeforeNotify
) override
;
68 // ORichTextFeatureDispatcher
69 virtual css::frame::FeatureStateEvent
buildStatusEvent() const override
;
72 virtual void fillFeatureEventFromAttributeState( css::frame::FeatureStateEvent
& _rEvent
, const AttributeState
& _rState
) const;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */