Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / forms / source / richtext / specialdispatchers.hxx
blobdf56daffa464fe2b663b9263fb0d42d6cc918159
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 #ifndef INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
21 #define INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
23 #include "parametrizedattributedispatcher.hxx"
26 namespace frm
29 class OSelectAllDispatcher : public ORichTextFeatureDispatcher
31 public:
32 OSelectAllDispatcher( EditView& _rView, const css::util::URL& _rURL );
34 protected:
35 virtual ~OSelectAllDispatcher();
37 // XDispatch
38 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments )
39 throw (css::uno::RuntimeException,
40 std::exception) override;
42 // ORichTextFeatureDispatcher
43 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
46 class OParagraphDirectionDispatcher : public OAttributeDispatcher
48 public:
49 OParagraphDirectionDispatcher(
50 EditView& _rView,
51 AttributeId _nAttributeId,
52 const css::util::URL& _rURL,
53 IMultiAttributeDispatcher* _pMasterDispatcher
56 protected:
57 // ORichTextFeatureDispatcher
58 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
61 class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
63 public:
64 OTextDirectionDispatcher( EditView& _rView, const css::util::URL& _rURL );
66 protected:
67 // XDispatch
68 virtual void SAL_CALL dispatch( const css::util::URL& URL, const css::uno::Sequence< css::beans::PropertyValue >& Arguments ) throw (css::uno::RuntimeException, std::exception) override;
70 // ORichTextFeatureDispatcher
71 virtual css::frame::FeatureStateEvent buildStatusEvent() const override;
74 class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
76 public:
77 OAsianFontLayoutDispatcher(
78 EditView& _rView,
79 AttributeId _nAttributeId,
80 const css::util::URL& _rURL,
81 IMultiAttributeDispatcher* _pMasterDispatcher
84 protected:
85 // OParametrizedAttributeDispatcher
86 virtual const SfxPoolItem* convertDispatchArgsToItem(
87 const css::uno::Sequence< css::beans::PropertyValue >& _rArguments ) override;
91 } // namespace frm
94 #endif // INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */