bump product version to 7.6.3.2-android
[LibreOffice.git] / forms / source / richtext / attributedispatcher.hxx
blob9c6769b60122cc62851227bd5c69d67cef027f98
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/.
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 .
19 #pragma once
21 #include "featuredispatcher.hxx"
22 #include "rtattributes.hxx"
23 #include "textattributelistener.hxx"
26 namespace frm
29 class OAttributeDispatcher :public ORichTextFeatureDispatcher
30 ,public ITextAttributeListener
32 protected:
33 IMultiAttributeDispatcher* m_pMasterDispatcher;
34 AttributeId m_nAttributeId;
36 public:
37 /** ctor
38 @param _nAttributeId
39 the id of the attribute which this instance is responsible for
40 @param _rURL
41 the URL of the feature which this instance is responsible for
42 @param _pMasterDispatcher
43 the dispatcher which can execute the given attribute
44 @param _pConverter
45 an instance which is able to convert between SfxPoolItems and XDispatch-Parameters
46 If not <NULL/>, the parametrized version of IMultiAttributeDispatcher::executeAttribute
47 will be used.
49 OAttributeDispatcher(
50 EditView& _rView,
51 AttributeId _nAttributeId,
52 const css::util::URL& _rURL,
53 IMultiAttributeDispatcher* _pMasterDispatcher
56 protected:
57 virtual ~OAttributeDispatcher( ) override;
59 // XDispatch
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;
71 // own overridables
72 virtual void fillFeatureEventFromAttributeState( css::frame::FeatureStateEvent& _rEvent, const AttributeState& _rState ) const;
76 } // namespace frm
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */