Update git submodules
[LibreOffice.git] / forms / source / richtext / specialdispatchers.hxx
blobcca2b75ccac654e8f5365d6c6476a26e3a82bf3c
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 .
20 #pragma once
22 #include "parametrizedattributedispatcher.hxx"
25 namespace frm
28 class OSelectAllDispatcher : public ORichTextFeatureDispatcher
30 public:
31 OSelectAllDispatcher( EditView& _rView, const css::util::URL& _rURL );
33 protected:
34 virtual ~OSelectAllDispatcher() override;
36 // XDispatch
37 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) override;
39 // ORichTextFeatureDispatcher
40 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
43 class OParagraphDirectionDispatcher : public OAttributeDispatcher
45 public:
46 OParagraphDirectionDispatcher(
47 EditView& _rView,
48 AttributeId _nAttributeId,
49 const css::util::URL& _rURL,
50 IMultiAttributeDispatcher* _pMasterDispatcher
53 protected:
54 // ORichTextFeatureDispatcher
55 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
58 class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
60 public:
61 OTextDirectionDispatcher( EditView& _rView, const css::util::URL& _rURL );
63 protected:
64 // XDispatch
65 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) override;
67 // ORichTextFeatureDispatcher
68 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
71 class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
73 public:
74 OAsianFontLayoutDispatcher(
75 EditView& _rView,
76 AttributeId _nAttributeId,
77 const css::util::URL& _rURL,
78 IMultiAttributeDispatcher* _pMasterDispatcher
81 protected:
82 // OParametrizedAttributeDispatcher
83 virtual SfxPoolItemHolder convertDispatchArgsToItem(
84 const css::uno::Sequence< css::beans::PropertyValue >& _rArguments ) override;
88 } // namespace frm
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */