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_PARAMETRIZEDATTRIBUTEDISPATCHER_HXX
25 #define FORMS_SOURCE_RICHTEXT_PARAMETRIZEDATTRIBUTEDISPATCHER_HXX
26 
27 #include "attributedispatcher.hxx"
28 
29 class SfxPoolItem;
30 //........................................................................
31 namespace frm
32 {
33 //........................................................................
34 
35 	//====================================================================
36 	//= OParametrizedAttributeDispatcher
37 	//====================================================================
38 	class OParametrizedAttributeDispatcher  :public OAttributeDispatcher
39 	{
40     public:
41         OParametrizedAttributeDispatcher(
42             EditView&                           _rView,
43             AttributeId                         _nAttributeId,
44             const ::com::sun::star::util::URL&  _rURL,
45             IMultiAttributeDispatcher*          _pMasterDispatcher
46         );
47 
48     protected:
49         ~OParametrizedAttributeDispatcher();
50 
51         // XDispatch
52         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);
53 
54         // OAttributeDispatcher
55         virtual void    fillFeatureEventFromAttributeState( ::com::sun::star::frame::FeatureStateEvent& _rEvent, const AttributeState& _rState ) const;
56 
57     protected:
58         // own overridables
59         /** convert the arguments as got in a XDispatch::dispatch call into an SfxPoolItem, which can
60             be used with a IMultiAttributeDispatcher::executeAttribute
61         */
62         virtual const SfxPoolItem* convertDispatchArgsToItem(
63             const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
64 	};
65 
66 //........................................................................
67 } // namespace frm
68 //........................................................................
69 
70 #endif // FORMS_SOURCE_RICHTEXT_PARAMETRIZEDATTRIBUTEDISPATCHER_HXX
71 
72