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_XMLAUTOTEXTEVENTIMPORT_HXX
25 #define _XMLOFF_XMLAUTOTEXTEVENTIMPORT_HXX
26 
27 #include <xmloff/xmlimp.hxx>
28 #include <com/sun/star/uno/Reference.hxx>
29 
30 
31 namespace rtl {	class OUString; }
32 namespace com { namespace sun { namespace star {
33 	namespace frame { class XModel; }
34 	namespace lang { class XMultiServiceFactory; }
35 	namespace text { class XAutoTextContainer; }
36 	namespace text { class XAutoTextGroup; }
37 	namespace text { class XAutoTextEntry; }
38 	namespace uno { template<class X> class Reference; }
39 	namespace uno { template<class X> class Sequence; }
40 	namespace uno { class XInterface; }
41 	namespace uno { class Exception; }
42 	namespace xml { namespace sax { class XDocumentHandler; } }
43 } } }
44 
45 
46 class XMLAutoTextEventImport : public SvXMLImport
47 {
48 	::com::sun::star::uno::Reference<
49 		::com::sun::star::container::XNameReplace> xEvents;
50 
51 public:
52 	// #110680#
53 	// XMLAutoTextEventImport() throw();
54 	XMLAutoTextEventImport(
55 		const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
56 		) throw();
57 
58 	~XMLAutoTextEventImport() throw();
59 
60 	// XInitialization
61     virtual void SAL_CALL initialize(
62 		const ::com::sun::star::uno::Sequence<
63 			::com::sun::star::uno::Any> & rArguments )
64 		throw(
65 			::com::sun::star::uno::Exception,
66 			::com::sun::star::uno::RuntimeException);
67 
68 protected:
69 
70 	virtual SvXMLImportContext* CreateContext(
71 		sal_uInt16 nPrefix,
72 		const ::rtl::OUString& rLocalName,
73 		const ::com::sun::star::uno::Reference<
74 			::com::sun::star::xml::sax::XAttributeList > & xAttrList );
75 
76 };
77 
78 
79 // global functions to support the component
80 
81 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
82 	XMLAutoTextEventImport_getSupportedServiceNames()
83 	throw();
84 
85 ::rtl::OUString SAL_CALL XMLAutoTextEventImport_getImplementationName()
86 	throw();
87 
88 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
89 	XMLAutoTextEventImport_createInstance(
90 		const ::com::sun::star::uno::Reference<
91 			::com::sun::star::lang::XMultiServiceFactory > & )
92 	throw( ::com::sun::star::uno::Exception );
93 
94 #endif
95 
96