1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
29 #define FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
30 
31 #include "parametrizedattributedispatcher.hxx"
32 
33 //........................................................................
34 namespace frm
35 {
36 //........................................................................
37 
38 	//====================================================================
39 	//= OSelectAllDispatcher
40 	//====================================================================
41     class OSelectAllDispatcher : public ORichTextFeatureDispatcher
42 	{
43     public:
44         OSelectAllDispatcher( EditView& _rView, const ::com::sun::star::util::URL&  _rURL );
45 
46     protected:
47         ~OSelectAllDispatcher();
48 
49         // XDispatch
50         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);
51 
52         // ORichTextFeatureDispatcher
53         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
54 	};
55 
56 	//====================================================================
57 	//= OParagraphDirectionDispatcher
58 	//====================================================================
59     class OParagraphDirectionDispatcher : public OAttributeDispatcher
60 	{
61     public:
62         OParagraphDirectionDispatcher(
63             EditView&                           _rView,
64             AttributeId                         _nAttributeId,
65             const ::com::sun::star::util::URL&  _rURL,
66             IMultiAttributeDispatcher*          _pMasterDispatcher
67         );
68 
69     protected:
70         // ORichTextFeatureDispatcher
71         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
72 	};
73 
74 	//====================================================================
75 	//= OTextDirectionDispatcher
76 	//====================================================================
77     class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
78 	{
79     public:
80         OTextDirectionDispatcher( EditView& _rView, const ::com::sun::star::util::URL&  _rURL );
81 
82     protected:
83         // XDispatch
84         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);
85 
86         // ORichTextFeatureDispatcher
87         virtual ::com::sun::star::frame::FeatureStateEvent  buildStatusEvent() const;
88 	};
89 
90 	//====================================================================
91 	//= OAsianFontLayoutDispatcher
92 	//====================================================================
93     class OAsianFontLayoutDispatcher : public OParametrizedAttributeDispatcher
94 	{
95     public:
96         OAsianFontLayoutDispatcher(
97             EditView&                           _rView,
98             AttributeId                         _nAttributeId,
99             const ::com::sun::star::util::URL&  _rURL,
100             IMultiAttributeDispatcher*          _pMasterDispatcher
101         );
102 
103     protected:
104         // OParametrizedAttributeDispatcher
105         virtual const SfxPoolItem* convertDispatchArgsToItem(
106             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
107 	};
108 
109 //........................................................................
110 } // namespace frm
111 //........................................................................
112 
113 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
114