1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 #include <com/sun/star/xml/sax/XAttributeList.hpp>
21 #include <xmloff/xmlimp.hxx>
22 #include <xmloff/xmlictxt.hxx>
23 #include <sax/fastattribs.hxx>
24 #include <comphelper/attributelist.hxx>
25 #include <cppuhelper/queryinterface.hxx>
26 #include <sal/log.hxx>
28 using namespace ::com::sun::star
;
30 SvXMLImportContext::SvXMLImportContext( SvXMLImport
& rImp
)
36 SvXMLImportContext::~SvXMLImportContext()
40 void SvXMLImportContext::endFastElement(sal_Int32
)
44 // css::xml::sax::XFastContextHandler:
45 void SAL_CALL
SvXMLImportContext::startFastElement(sal_Int32
/*nElement*/, const uno::Reference
< xml::sax::XFastAttributeList
> & )
49 void SAL_CALL
SvXMLImportContext::startUnknownElement(const OUString
& /*rNamespace*/, const OUString
& /*rElementName*/,
50 const uno::Reference
< xml::sax::XFastAttributeList
> & /*Attribs*/)
54 void SAL_CALL
SvXMLImportContext::endUnknownElement (const OUString
& /*rNamespace*/, const OUString
& /*rElementName*/)
58 uno::Reference
< xml::sax::XFastContextHandler
> SAL_CALL
SvXMLImportContext::createFastChildContext
59 (sal_Int32
/*Element*/, const uno::Reference
< xml::sax::XFastAttributeList
> & /*Attribs*/)
64 uno::Reference
< xml::sax::XFastContextHandler
> SAL_CALL
SvXMLImportContext::createUnknownChildContext
65 (const OUString
& /*rNamespace*/, const OUString
& /*rName*/, const uno::Reference
< xml::sax::XFastAttributeList
> & /*Attribs*/)
70 void SAL_CALL
SvXMLImportContext::characters(const OUString
&/*rChars*/)
75 css::uno::Any SAL_CALL
SvXMLImportContext::queryInterface( const css::uno::Type
& aType
)
77 css::uno::Any a
= ::cppu::queryInterface(
79 static_cast< XFastContextHandler
* >(this),
80 static_cast< XTypeProvider
* >(this),
81 static_cast< css::uno::XInterface
* >(static_cast< XFastContextHandler
* >(this)));
87 css::uno::Sequence
< css::uno::Type
> SAL_CALL
SvXMLImportContext::getTypes()
89 return { cppu::UnoType
<XFastContextHandler
>::get(),
90 cppu::UnoType
<XTypeProvider
>::get() };
93 css::uno::Sequence
< sal_Int8
> SAL_CALL
SvXMLImportContext::getImplementationId()
95 return css::uno::Sequence
<sal_Int8
>();
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */