bump product version to 6.4.0.3
[LibreOffice.git] / xmloff / source / script / xmlbasici.hxx
blobac85c18fc372754e6942dd4ecd4cc2d7d1006256
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 #ifndef INCLUDED_XMLOFF_SOURCE_SCRIPT_XMLBASICI_HXX
21 #define INCLUDED_XMLOFF_SOURCE_SCRIPT_XMLBASICI_HXX
23 #include <com/sun/star/frame/XModel.hpp>
24 #include <com/sun/star/document/XXMLOasisBasicImporter.hpp>
25 #include <xmloff/xmlictxt.hxx>
27 // class XMLBasicImportContext
29 class XMLBasicImportContext : public SvXMLImportContext
31 private:
32 css::uno::Reference< css::frame::XModel > m_xModel;
33 css::uno::Reference< css::document::XXMLOasisBasicImporter > m_xHandler;
35 public:
36 XMLBasicImportContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
37 const css::uno::Reference< css::frame::XModel >& rxModel );
39 virtual ~XMLBasicImportContext() override;
41 virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName,
42 const css::uno::Reference< css::xml::sax::XAttributeList >& rxAttrList ) override;
44 virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& rxAttrList ) override;
46 virtual void EndElement() override;
48 virtual void Characters( const OUString& rChars ) override;
51 // class XMLBasicImportChildContext
53 class XMLBasicImportChildContext : public SvXMLImportContext
55 private:
56 css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler;
58 public:
59 XMLBasicImportChildContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const OUString& rLName,
60 const css::uno::Reference< css::xml::sax::XDocumentHandler >& rxHandler );
62 virtual ~XMLBasicImportChildContext() override;
64 virtual SvXMLImportContextRef CreateChildContext( sal_uInt16 nPrefix, const OUString& rLocalName,
65 const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
67 virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
69 virtual void EndElement() override;
71 virtual void Characters( const OUString& rChars ) override;
74 #endif // INCLUDED_XMLOFF_SOURCE_SCRIPT_XMLBASICI_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */