Update ooo320-m1
[ooovba.git] / forms / source / richtext / specialdispatchers.hxx
bloba808a53ec8ef70d335b78d433a1f2d022438f1e2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: specialdispatchers.hxx,v $
10 * $Revision: 1.4 $
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 //........................................................................
37 namespace frm
39 //........................................................................
41 //====================================================================
42 //= OSelectAllDispatcher
43 //====================================================================
44 class OSelectAllDispatcher : public ORichTextFeatureDispatcher
46 public:
47 OSelectAllDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
49 protected:
50 ~OSelectAllDispatcher();
52 // XDispatch
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
64 public:
65 OParagraphDirectionDispatcher(
66 EditView& _rView,
67 AttributeId _nAttributeId,
68 const ::com::sun::star::util::URL& _rURL,
69 IMultiAttributeDispatcher* _pMasterDispatcher
72 protected:
73 // ORichTextFeatureDispatcher
74 virtual ::com::sun::star::frame::FeatureStateEvent buildStatusEvent() const;
77 //====================================================================
78 //= OTextDirectionDispatcher
79 //====================================================================
80 class OTextDirectionDispatcher : public ORichTextFeatureDispatcher
82 public:
83 OTextDirectionDispatcher( EditView& _rView, const ::com::sun::star::util::URL& _rURL );
85 protected:
86 // XDispatch
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
98 public:
99 OAsianFontLayoutDispatcher(
100 EditView& _rView,
101 AttributeId _nAttributeId,
102 const ::com::sun::star::util::URL& _rURL,
103 IMultiAttributeDispatcher* _pMasterDispatcher
106 protected:
107 // OParametrizedAttributeDispatcher
108 virtual const SfxPoolItem* convertDispatchArgsToItem(
109 const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& _rArguments );
112 //........................................................................
113 } // namespace frm
114 //........................................................................
116 #endif // FORMS_SOURCE_RICHTEXT_SPECIALDISPATCHERS_HXX