1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 //........................................................................
28 //........................................................................
30 //====================================================================
31 //= OSelectAllDispatcher
32 //====================================================================
33 class OSelectAllDispatcher
: public ORichTextFeatureDispatcher
36 OSelectAllDispatcher( EditView
& _rView
, const ::com::sun::star::util::URL
& _rURL
);
39 ~OSelectAllDispatcher();
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
54 OParagraphDirectionDispatcher(
56 AttributeId _nAttributeId
,
57 const ::com::sun::star::util::URL
& _rURL
,
58 IMultiAttributeDispatcher
* _pMasterDispatcher
62 // ORichTextFeatureDispatcher
63 virtual ::com::sun::star::frame::FeatureStateEvent
buildStatusEvent() const;
66 //====================================================================
67 //= OTextDirectionDispatcher
68 //====================================================================
69 class OTextDirectionDispatcher
: public ORichTextFeatureDispatcher
72 OTextDirectionDispatcher( EditView
& _rView
, const ::com::sun::star::util::URL
& _rURL
);
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
88 OAsianFontLayoutDispatcher(
90 AttributeId _nAttributeId
,
91 const ::com::sun::star::util::URL
& _rURL
,
92 IMultiAttributeDispatcher
* _pMasterDispatcher
96 // OParametrizedAttributeDispatcher
97 virtual const SfxPoolItem
* convertDispatchArgsToItem(
98 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& _rArguments
);
101 //........................................................................
103 //........................................................................
105 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */