1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: specialdispatchers.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
32 #define FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX
34 #include "parametrizedattributedispatcher.hxx"
36 //........................................................................
39 //........................................................................
41 //====================================================================
42 //= OSelectAllDispatcher
43 //====================================================================
44 class OSelectAllDispatcher
: public ORichTextFeatureDispatcher
47 OSelectAllDispatcher( EditView
& _rView
, const ::com::sun::star::util::URL
& _rURL
);
50 ~OSelectAllDispatcher();
53 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
);
55 // ORichTextFeatureDispatcher
56 virtual ::com::sun::star::frame::FeatureStateEvent
buildStatusEvent() const;
59 //====================================================================
60 //= OParagraphDirectionDispatcher
61 //====================================================================
62 class OParagraphDirectionDispatcher
: public OAttributeDispatcher
65 OParagraphDirectionDispatcher(
67 AttributeId _nAttributeId
,
68 const ::com::sun::star::util::URL
& _rURL
,
69 IMultiAttributeDispatcher
* _pMasterDispatcher
73 // ORichTextFeatureDispatcher
74 virtual ::com::sun::star::frame::FeatureStateEvent
buildStatusEvent() const;
77 //====================================================================
78 //= OTextDirectionDispatcher
79 //====================================================================
80 class OTextDirectionDispatcher
: public ORichTextFeatureDispatcher
83 OTextDirectionDispatcher( EditView
& _rView
, const ::com::sun::star::util::URL
& _rURL
);
87 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
);
89 // ORichTextFeatureDispatcher
90 virtual ::com::sun::star::frame::FeatureStateEvent
buildStatusEvent() const;
93 //====================================================================
94 //= OAsianFontLayoutDispatcher
95 //====================================================================
96 class OAsianFontLayoutDispatcher
: public OParametrizedAttributeDispatcher
99 OAsianFontLayoutDispatcher(
101 AttributeId _nAttributeId
,
102 const ::com::sun::star::util::URL
& _rURL
,
103 IMultiAttributeDispatcher
* _pMasterDispatcher
107 // OParametrizedAttributeDispatcher
108 virtual const SfxPoolItem
* convertDispatchArgsToItem(
109 const ::com::sun::star::uno::Sequence
< ::com::sun::star::beans::PropertyValue
>& _rArguments
);
112 //........................................................................
114 //........................................................................
116 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX