xref: /aoo41x/main/xmloff/source/forms/callbacks.hxx (revision ecfe53c5)
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 _XMLOFF_FORMS_CALLBACKS_HXX_
25 #define _XMLOFF_FORMS_CALLBACKS_HXX_
26 
27 #include <com/sun/star/container/XIndexAccess.hpp>
28 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
29 #include <com/sun/star/beans/XPropertySet.hpp>
30 #include <com/sun/star/script/ScriptEventDescriptor.hpp>
31 #include <vos/ref.hxx>
32 
33 class SvXMLImport;
34 class SvXMLExport;
35 class SvXMLExportPropertyMapper;
36 class SvXMLStyleContext;
37 
38 //.........................................................................
39 namespace xmloff
40 {
41 //.........................................................................
42 
43 	class OAttribute2Property;
44 
45 	//=====================================================================
46 	//= IFormsExportContext
47 	//=====================================================================
48 	class IFormsExportContext
49 	{
50 	public:
51 		virtual SvXMLExport&								getGlobalContext() = 0;
52 		virtual ::vos::ORef< SvXMLExportPropertyMapper >	getStylePropertyMapper() = 0;
53 
54 		/** steps through a collection and exports all children of this collection
55 		*/
56 		virtual void	exportCollectionElements(
57 			const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& _rxCollection) = 0;
58 
59 		virtual ::rtl::OUString								getObjectStyleName(
60 			const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxObject ) = 0;
61 	};
62 
63 	//=====================================================================
64 	//= IEventAttacherManager
65 	//=====================================================================
66 	class IEventAttacherManager
67 	{
68 	public:
69 		virtual void registerEvents(
70 			const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxElement,
71 			const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
72 			) = 0;
73 	};
74 
75 	//=====================================================================
76 	//= IEventAttacher
77 	//=====================================================================
78 	class IEventAttacher
79 	{
80 	public:
81 		virtual void registerEvents(
82 			const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor >& _rEvents
83 			) = 0;
84 	};
85 
86 //.........................................................................
87 }	// namespace xmloff
88 //.........................................................................
89 
90 #endif // _XMLOFF_FORMS_CALLBACKS_HXX_
91 
92