update credits
[LibreOffice.git] / forms / source / richtext / specialdispatchers.hxx
blob6a27b537176dec46f15f13b41ac65260426edfde
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 FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
21 #define FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
23 #include "parametrizedattributedispatcher.hxx"
25 //........................................................................
26 namespace frm
28 //........................................................................
30 //====================================================================
31 //= OSelectAllDispatcher
32 //====================================================================
33 class OSelectAllDispatcher : public ORichTextFeatureDispatcher
35 public:
36 OSelectAllDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
38 protected:
39 ~OSelectAllDispatcher();
41 // XDispatch
42 virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments ) throw (::com::sun::star::uno::RuntimeException);
44 // ORichTextFeatureDispatcher
45 virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const;
48 //====================================================================
49 //= OParagraphDirectionDispatcher
50 //====================================================================
51 class OParagraphDirectionDispatcher : public OAttributeDispatcher
53 public:
54 OParagraphDirectionDispatcher(
55 EditView& _rView,
56 AttributeId _nAttributeId,
57 const ::com::sun::star::util::URL& _rURL,
58 IMultiAttributeDispatcher* _pMasterDispatcher
61 protected:
62 // ORichTextFeatureDispatcher
63 virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const;
66 //====================================================================
67 //= OTextDirectionDispatcher
68 //====================================================================
69 class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
71 public:
72 OTextDirectionDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
74 protected:
75 // XDispatch
76 virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments ) throw (::com::sun::star::uno::RuntimeException);
78 // ORichTextFeatureDispatcher
79 virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const;
82 //====================================================================
83 //= OAsianFontLayoutDispatcher
84 //====================================================================
85 class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
87 public:
88 OAsianFontLayoutDispatcher(
89 EditView& _rView,
90 AttributeId _nAttributeId,
91 const ::com::sun::star::util::URL& _rURL,
92 IMultiAttributeDispatcher* _pMasterDispatcher
95 protected:
96 // OParametrizedAttributeDispatcher
97 virtual const SfxPoolItem* convertDispatchArgsToItem(
98 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
101 //........................................................................
102 } // namespace frm
103 //........................................................................
105 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */