1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
25 #define FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
26 
27 #include "parametrizedattributedispatcher.hxx"
28 
29 //........................................................................
30 namespace frm
31 {
32 //........................................................................
33 
34 	//====================================================================
35 	//= OSelectAllDispatcher
36 	//====================================================================
37     class OSelectAllDispatcher : public ORichTextFeatureDispatcher
38 	{
39     public:
40         OSelectAllDispatcher( EditView& _rView, const ::com::sun::star::util::URL&  _rURL );
41 
42     protected:
43         ~OSelectAllDispatcher();
44 
45         // XDispatch
46         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);
47 
48         // ORichTextFeatureDispatcher
49         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
50 	};
51 
52 	//====================================================================
53 	//= OParagraphDirectionDispatcher
54 	//====================================================================
55     class OParagraphDirectionDispatcher : public OAttributeDispatcher
56 	{
57     public:
58         OParagraphDirectionDispatcher(
59             EditView&                           _rView,
60             AttributeId                         _nAttributeId,
61             const ::com::sun::star::util::URL&  _rURL,
62             IMultiAttributeDispatcher*          _pMasterDispatcher
63         );
64 
65     protected:
66         // ORichTextFeatureDispatcher
67         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
68 	};
69 
70 	//====================================================================
71 	//= OTextDirectionDispatcher
72 	//====================================================================
73     class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
74 	{
75     public:
76         OTextDirectionDispatcher( EditView& _rView, const ::com::sun::star::util::URL&  _rURL );
77 
78     protected:
79         // XDispatch
80         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);
81 
82         // ORichTextFeatureDispatcher
83         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
84 	};
85 
86 	//====================================================================
87 	//= OAsianFontLayoutDispatcher
88 	//====================================================================
89     class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
90 	{
91     public:
92         OAsianFontLayoutDispatcher(
93             EditView&                           _rView,
94             AttributeId                         _nAttributeId,
95             const ::com::sun::star::util::URL&  _rURL,
96             IMultiAttributeDispatcher*          _pMasterDispatcher
97         );
98 
99     protected:
100         // OParametrizedAttributeDispatcher
101         virtual const SfxPoolItem* convertDispatchArgsToItem(
102             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
103 	};
104 
105 //........................................................................
106 } // namespace frm
107 //........................................................................
108 
109 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
110