tdf#164434 Correct SvgSymbolNode SVG import
[LibreOffice.git] / xmloff / source / core / xmlictxt.cxx
blob5b792ce2debe49cf82e5d7fa4f0aac9c317e2827
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 #include <xmloff/xmlimp.hxx>
21 #include <xmloff/xmlictxt.hxx>
22 #include <cppuhelper/queryinterface.hxx>
24 using namespace ::com::sun::star;
26 SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp )
27 : mrImport(rImp)
28 , m_nRefCount(0)
32 SvXMLImportContext::~SvXMLImportContext()
36 void SvXMLImportContext::endFastElement(sal_Int32 )
40 // css::xml::sax::XFastContextHandler:
41 void SAL_CALL SvXMLImportContext::startFastElement(sal_Int32 /*nElement*/, const uno::Reference< xml::sax::XFastAttributeList > & )
45 void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString & /*rNamespace*/, const OUString & /*rElementName*/,
46 const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
50 void SAL_CALL SvXMLImportContext::endUnknownElement (const OUString & /*rNamespace*/, const OUString & /*rElementName*/)
54 uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createFastChildContext
55 (sal_Int32 /*Element*/, const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
57 return nullptr;
60 uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createUnknownChildContext
61 (const OUString & /*rNamespace*/, const OUString & /*rName*/, const uno::Reference< xml::sax::XFastAttributeList > & /*Attribs*/)
63 return nullptr;
66 void SAL_CALL SvXMLImportContext::characters(const OUString &/*rChars*/)
70 // XInterface
71 css::uno::Any SAL_CALL SvXMLImportContext::queryInterface( const css::uno::Type& aType )
73 css::uno::Any a = ::cppu::queryInterface(
74 aType,
75 static_cast< XFastContextHandler* >(this),
76 static_cast< XTypeProvider* >(this),
77 static_cast< css::uno::XInterface* >(static_cast< XFastContextHandler* >(this)));
79 return a;
82 // XTypeProvider
83 css::uno::Sequence< css::uno::Type > SAL_CALL SvXMLImportContext::getTypes()
85 return { cppu::UnoType<XFastContextHandler>::get(),
86 cppu::UnoType<XTypeProvider>::get() };
89 css::uno::Sequence< sal_Int8 > SAL_CALL SvXMLImportContext::getImplementationId()
91 return css::uno::Sequence<sal_Int8>();
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */