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 65 protected: 66 67 virtual SvXMLImportContext* CreateContext( 68 sal_uInt16 nPrefix, 69 const ::rtl::OUString& rLocalName, 70 const ::com::sun::star::uno::Reference< 71 ::com::sun::star::xml::sax::XAttributeList > & xAttrList ); 72 73 }; 74 75 76 // global functions to support the component 77 78 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL 79 XMLAutoTextEventImport_getSupportedServiceNames() 80 throw(); 81 82 ::rtl::OUString SAL_CALL XMLAutoTextEventImport_getImplementationName() 83 throw(); 84 85 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL 86 XMLAutoTextEventImport_createInstance( 87 const ::com::sun::star::uno::Reference< 88 ::com::sun::star::lang::XMultiServiceFactory > & ); 89 90 #endif 91