Line data Source code
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 :
20 : #ifndef INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
21 : #define INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
22 :
23 : #include "parametrizedattributedispatcher.hxx"
24 :
25 :
26 : namespace frm
27 : {
28 :
29 : class OSelectAllDispatcher : public ORichTextFeatureDispatcher
30 : {
31 : public:
32 : OSelectAllDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
33 :
34 : protected:
35 : virtual ~OSelectAllDispatcher();
36 :
37 : // XDispatch
38 : virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& URL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& Arguments )
39 : throw (::com::sun::star::uno::RuntimeException,
40 : std::exception) SAL_OVERRIDE;
41 :
42 : // ORichTextFeatureDispatcher
43 : virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const SAL_OVERRIDE;
44 : };
45 :
46 0 : class OParagraphDirectionDispatcher : public OAttributeDispatcher
47 : {
48 : public:
49 : OParagraphDirectionDispatcher(
50 : EditView& _rView,
51 : AttributeId _nAttributeId,
52 : const ::com::sun::star::util::URL& _rURL,
53 : IMultiAttributeDispatcher* _pMasterDispatcher
54 : );
55 :
56 : protected:
57 : // ORichTextFeatureDispatcher
58 : virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const SAL_OVERRIDE;
59 : };
60 :
61 0 : class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
62 : {
63 : public:
64 : OTextDirectionDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
65 :
66 : protected:
67 : // XDispatch
68 : 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, std::exception) SAL_OVERRIDE;
69 :
70 : // ORichTextFeatureDispatcher
71 : virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const SAL_OVERRIDE;
72 : };
73 :
74 0 : class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
75 : {
76 : public:
77 : OAsianFontLayoutDispatcher(
78 : EditView& _rView,
79 : AttributeId _nAttributeId,
80 : const ::com::sun::star::util::URL& _rURL,
81 : IMultiAttributeDispatcher* _pMasterDispatcher
82 : );
83 :
84 : protected:
85 : // OParametrizedAttributeDispatcher
86 : virtual const SfxPoolItem* convertDispatchArgsToItem(
87 : const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments ) SAL_OVERRIDE;
88 : };
89 :
90 :
91 : } // namespace frm
92 :
93 :
94 : #endif // INCLUDED_FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
95 :
96 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|