update dev300-m58
[ooovba.git] / xmloff / source / text / XMLAutoTextEventImport.hxx
blob02cf42608f05c2f0acb303168d552007c8a23e26
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: XMLAutoTextEventImport.hxx,v $
10 * $Revision: 1.7 $
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 _XMLOFF_XMLAUTOTEXTEVENTIMPORT_HXX
32 #define _XMLOFF_XMLAUTOTEXTEVENTIMPORT_HXX
34 #include <xmloff/xmlimp.hxx>
35 #include <com/sun/star/uno/Reference.hxx>
38 namespace rtl { class OUString; }
39 namespace com { namespace sun { namespace star {
40 namespace frame { class XModel; }
41 namespace lang { class XMultiServiceFactory; }
42 namespace text { class XAutoTextContainer; }
43 namespace text { class XAutoTextGroup; }
44 namespace text { class XAutoTextEntry; }
45 namespace uno { template<class X> class Reference; }
46 namespace uno { template<class X> class Sequence; }
47 namespace uno { class XInterface; }
48 namespace uno { class Exception; }
49 namespace xml { namespace sax { class XDocumentHandler; } }
50 } } }
53 class XMLAutoTextEventImport : public SvXMLImport
55 ::com::sun::star::uno::Reference<
56 ::com::sun::star::container::XNameReplace> xEvents;
58 public:
59 // #110680#
60 // XMLAutoTextEventImport() throw();
61 XMLAutoTextEventImport(
62 const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory
63 ) throw();
65 ~XMLAutoTextEventImport() throw();
67 // XInitialization
68 virtual void SAL_CALL initialize(
69 const ::com::sun::star::uno::Sequence<
70 ::com::sun::star::uno::Any> & rArguments )
71 throw(
72 ::com::sun::star::uno::Exception,
73 ::com::sun::star::uno::RuntimeException);
75 protected:
77 virtual SvXMLImportContext* CreateContext(
78 sal_uInt16 nPrefix,
79 const ::rtl::OUString& rLocalName,
80 const ::com::sun::star::uno::Reference<
81 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
86 // global functions to support the component
88 ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL
89 XMLAutoTextEventImport_getSupportedServiceNames()
90 throw();
92 ::rtl::OUString SAL_CALL XMLAutoTextEventImport_getImplementationName()
93 throw();
95 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
96 XMLAutoTextEventImport_createInstance(
97 const ::com::sun::star::uno::Reference<
98 ::com::sun::star::lang::XMultiServiceFactory > & )
99 throw( ::com::sun::star::uno::Exception );
101 #endif