bump product version to 5.0.4.1
[LibreOffice.git] / xmloff / source / text / XMLAutoTextEventImport.hxx
blob29a3d25d778dcfb2b2e33b9174bc04a0c85efaeb
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_XMLOFF_SOURCE_TEXT_XMLAUTOTEXTEVENTIMPORT_HXX
21 #define INCLUDED_XMLOFF_SOURCE_TEXT_XMLAUTOTEXTEVENTIMPORT_HXX
23 #include <xmloff/xmlimp.hxx>
24 #include <com/sun/star/uno/Reference.hxx>
27 namespace com { namespace sun { namespace star {
28 namespace frame { class XModel; }
29 namespace lang { class XMultiServiceFactory; }
30 namespace text { class XAutoTextContainer; }
31 namespace text { class XAutoTextGroup; }
32 namespace text { class XAutoTextEntry; }
33 namespace uno { template<class X> class Reference; }
34 namespace uno { template<class X> class Sequence; }
35 namespace uno { class XInterface; }
36 namespace uno { class Exception; }
37 namespace xml { namespace sax { class XDocumentHandler; } }
38 } } }
41 class XMLAutoTextEventImport : public SvXMLImport
43 ::com::sun::star::uno::Reference<
44 ::com::sun::star::container::XNameReplace> xEvents;
46 public:
47 XMLAutoTextEventImport(
48 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext
49 ) throw();
51 virtual ~XMLAutoTextEventImport() throw();
53 // XInitialization
54 virtual void SAL_CALL initialize(
55 const ::com::sun::star::uno::Sequence<
56 ::com::sun::star::uno::Any> & rArguments )
57 throw(
58 ::com::sun::star::uno::Exception,
59 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 protected:
63 virtual SvXMLImportContext* CreateContext(
64 sal_uInt16 nPrefix,
65 const OUString& rLocalName,
66 const ::com::sun::star::uno::Reference<
67 ::com::sun::star::xml::sax::XAttributeList > & xAttrList ) SAL_OVERRIDE;
72 // global functions to support the component
74 ::com::sun::star::uno::Sequence< OUString > SAL_CALL
75 XMLAutoTextEventImport_getSupportedServiceNames()
76 throw();
78 OUString SAL_CALL XMLAutoTextEventImport_getImplementationName()
79 throw();
81 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL
82 XMLAutoTextEventImport_createInstance(
83 const ::com::sun::star::uno::Reference<
84 ::com::sun::star::lang::XMultiServiceFactory > & )
85 throw( ::com::sun::star::uno::Exception );
87 #endif
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */