Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / xmloff / source / core / xmlictxt.cxx
blob9629143ae44bee3ca273b72b41db494a3fa6984a
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 <com/sun/star/xml/sax/SAXParseException.hpp>
21 #include <com/sun/star/xml/sax/XExtendedDocumentHandler.hpp>
22 #include <com/sun/star/xml/sax/SAXException.hpp>
23 #include <com/sun/star/xml/sax/XDocumentHandler.hpp>
24 #include <com/sun/star/xml/sax/XAttributeList.hpp>
25 #include <com/sun/star/xml/sax/XLocator.hpp>
26 #include <xmloff/xmlimp.hxx>
27 #include <xmloff/xmlictxt.hxx>
29 using namespace ::com::sun::star;
31 SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp, sal_uInt16 nPrfx,
32 const OUString& rLName )
33 : mrImport(rImp)
34 , mnPrefix(nPrfx)
35 , maLocalName(rLName)
39 SvXMLImportContext::SvXMLImportContext( SvXMLImport& rImp )
40 : mrImport(rImp)
41 , mnPrefix(0)
45 SvXMLImportContext::~SvXMLImportContext()
49 SvXMLImportContext *SvXMLImportContext::CreateChildContext( sal_uInt16 nPrefix,
50 const OUString& rLocalName,
51 const uno::Reference< xml::sax::XAttributeList >& xAttrList )
53 return mrImport.CreateContext( nPrefix, rLocalName, xAttrList );
56 void SvXMLImportContext::StartElement( const uno::Reference< xml::sax::XAttributeList >& )
60 void SvXMLImportContext::EndElement()
64 void SvXMLImportContext::Characters( const OUString& )
68 // css::xml::sax::XFastContextHandler:
69 void SAL_CALL SvXMLImportContext::startFastElement(sal_Int32, const uno::Reference< xml::sax::XFastAttributeList > &)
70 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
74 void SAL_CALL SvXMLImportContext::startUnknownElement(const OUString &, const OUString &,
75 const uno::Reference< xml::sax::XFastAttributeList > &)
76 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
80 void SAL_CALL SvXMLImportContext::endFastElement(sal_Int32)
81 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
85 void SAL_CALL SvXMLImportContext::endUnknownElement (const OUString & , const OUString & )
86 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
90 uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createFastChildContext
91 (sal_Int32 Element, const uno::Reference< xml::sax::XFastAttributeList > & Attribs)
92 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
94 return mrImport.CreateFastContext( Element, Attribs );
97 uno::Reference< xml::sax::XFastContextHandler > SAL_CALL SvXMLImportContext::createUnknownChildContext
98 (const OUString &, const OUString &, const uno::Reference< xml::sax::XFastAttributeList > &)
99 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
101 return nullptr;
104 void SAL_CALL SvXMLImportContext::characters(const OUString &)
105 throw (uno::RuntimeException, xml::sax::SAXException, std::exception)
109 void SvXMLImportContext::onDemandRescueUsefulDataFromTemporary( const SvXMLImportContext& )
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */