LibreOffice Module sc (master)  1
importcontext.hxx
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 #ifndef INCLUDED_SC_SOURCE_FILTER_XML_IMPORTCONTEXT_HXX
11 #define INCLUDED_SC_SOURCE_FILTER_XML_IMPORTCONTEXT_HXX
12 
13 #include <xmloff/xmlictxt.hxx>
14 
15 class ScXMLImport;
16 
21 {
22 public:
24  ScXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName);
25 
26  ScXMLImportContext( SvXMLImport& rImport );
27 
28  virtual void SAL_CALL startFastElement (sal_Int32 nElement,
29  const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList) override;
30 
31  virtual void SAL_CALL characters(const OUString & aChars) override;
32 
33  virtual void SAL_CALL endFastElement(sal_Int32 nElement) override;
34 
35  virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
36  sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs ) override;
37 
38 
39 protected:
41  const ScXMLImport& GetScImport() const;
42 };
43 
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
45 
46 #endif
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
This class exists only to provide GetScImport() to its derived classes.
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