1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _XMLOFF_XMLAUTOTEXTEVENTIMPORT_HXX
30 #define _XMLOFF_XMLAUTOTEXTEVENTIMPORT_HXX
32 #include <xmloff/xmlimp.hxx>
33 #include <com/sun/star/uno/Reference.hxx>
36 namespace rtl
{ class OUString
; }
37 namespace com
{ namespace sun
{ namespace star
{
38 namespace frame
{ class XModel
; }
39 namespace lang
{ class XMultiServiceFactory
; }
40 namespace text
{ class XAutoTextContainer
; }
41 namespace text
{ class XAutoTextGroup
; }
42 namespace text
{ class XAutoTextEntry
; }
43 namespace uno
{ template<class X
> class Reference
; }
44 namespace uno
{ template<class X
> class Sequence
; }
45 namespace uno
{ class XInterface
; }
46 namespace uno
{ class Exception
; }
47 namespace xml
{ namespace sax
{ class XDocumentHandler
; } }
51 class XMLAutoTextEventImport
: public SvXMLImport
53 ::com::sun::star::uno::Reference
<
54 ::com::sun::star::container::XNameReplace
> xEvents
;
58 // XMLAutoTextEventImport() throw();
59 XMLAutoTextEventImport(
60 const ::com::sun::star::uno::Reference
< ::com::sun::star::lang::XMultiServiceFactory
>& xServiceFactory
63 ~XMLAutoTextEventImport() throw();
66 virtual void SAL_CALL
initialize(
67 const ::com::sun::star::uno::Sequence
<
68 ::com::sun::star::uno::Any
> & rArguments
)
70 ::com::sun::star::uno::Exception
,
71 ::com::sun::star::uno::RuntimeException
);
75 virtual SvXMLImportContext
* CreateContext(
77 const ::rtl::OUString
& rLocalName
,
78 const ::com::sun::star::uno::Reference
<
79 ::com::sun::star::xml::sax::XAttributeList
> & xAttrList
);
84 // global functions to support the component
86 ::com::sun::star::uno::Sequence
< ::rtl::OUString
> SAL_CALL
87 XMLAutoTextEventImport_getSupportedServiceNames()
90 ::rtl::OUString SAL_CALL
XMLAutoTextEventImport_getImplementationName()
93 ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
> SAL_CALL
94 XMLAutoTextEventImport_createInstance(
95 const ::com::sun::star::uno::Reference
<
96 ::com::sun::star::lang::XMultiServiceFactory
> & )
97 throw( ::com::sun::star::uno::Exception
);
101 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */