LibreOffice Module sc (master)  1
importcontext.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  */
9 
10 #include "importcontext.hxx"
11 #include "xmlimprt.hxx"
12 
13 ScXMLImportContext::ScXMLImportContext(ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName) :
14  SvXMLImportContext(rImport, nPrefix, rLocalName)
15 {
16 }
17 
19  SvXMLImportContext( rImport )
20 {
21 }
22 
24 {
25  return static_cast<ScXMLImport&>(GetImport());
26 }
27 
29 {
30  return static_cast<const ScXMLImport&>(GetImport());
31 }
32 
33 void SAL_CALL ScXMLImportContext::startFastElement(sal_Int32 /*nElement*/, const css::uno::Reference< css::xml::sax::XFastAttributeList > & /*xAttrList*/)
34 {
35 }
36 
37 void SAL_CALL ScXMLImportContext::endFastElement(sal_Int32 /*nElement*/)
38 {
39 }
40 
41 void SAL_CALL ScXMLImportContext::characters(const OUString &)
42 {
43 }
44 
45 css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL ScXMLImportContext::createFastChildContext(
46  sal_Int32/* nElement */, const css::uno::Reference< css::xml::sax::XFastAttributeList >&/* xAttrList */ )
47 {
48  return nullptr;
49 }
50 
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvXMLImport & GetImport()
ScXMLImportContext(ScXMLImport &rImport, sal_uInt16 nPrefix, const OUString &rLocalName)
virtual void SAL_CALL startFastElement(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
virtual void SAL_CALL characters(const OUString &aChars) override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
ScXMLImport & GetScImport()
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &Attribs) override