LibreOffice Module forms (master) 1
attributedispatcher.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 "featuredispatcher.hxx"
22#include "rtattributes.hxx"
24
25
26namespace frm
27{
28
31 {
32 protected:
35
36 public:
50 EditView& _rView,
51 AttributeId _nAttributeId,
52 const css::util::URL& _rURL,
53 IMultiAttributeDispatcher* _pMasterDispatcher
54 );
55
56 protected:
57 virtual ~OAttributeDispatcher( ) override;
58
59 // XDispatch
60 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) override;
61
62 // ITextAttributeListener
63 virtual void onAttributeStateChanged( AttributeId _nAttributeId ) override;
64
65 // ORichTextFeatureDispatcher
66 virtual void disposing( ::osl::ClearableMutexGuard& _rClearBeforeNotify ) override;
67
68 // ORichTextFeatureDispatcher
69 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
70
71 // own overridables
72 virtual void fillFeatureEventFromAttributeState( css::frame::FeatureStateEvent& _rEvent, const AttributeState& _rState ) const;
73 };
74
75
76} // namespace frm
77
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void onAttributeStateChanged(AttributeId _nAttributeId) override
virtual void fillFeatureEventFromAttributeState(css::frame::FeatureStateEvent &_rEvent, const AttributeState &_rState) const
OAttributeDispatcher(EditView &_rView, AttributeId _nAttributeId, const css::util::URL &_rURL, IMultiAttributeDispatcher *_pMasterDispatcher)
ctor
IMultiAttributeDispatcher * m_pMasterDispatcher
virtual css::frame::FeatureStateEvent buildStatusEvent() const override
virtual ~OAttributeDispatcher() override
virtual void SAL_CALL dispatch(const css::util::URL &URL, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override
virtual void disposing(::osl::ClearableMutexGuard &_rClearBeforeNotify) override
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25
sal_Int32 AttributeId
the id of an attribute