bump product version to 7.6.3.2-android
[LibreOffice.git] / xmloff / source / chart / contexts.hxx
blob4a710bcc55dfa839ad9641160c99f915080cf14c
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 .
19 #pragma once
21 #include <SchXMLImport.hxx>
22 #include <xmloff/xmlictxt.hxx>
24 #include <xmloff/xmlmetai.hxx>
26 namespace com::sun::star::xml::sax {
27 class XAttributeList;
31 These contexts are only needed by
32 SchXMLImport not by the SchXMLImportHelper
33 that is also used by other applications
36 class SchXMLDocContext : public virtual SvXMLImportContext
38 protected:
39 SchXMLImportHelper& mrImportHelper;
41 public:
42 SchXMLDocContext(
43 SchXMLImportHelper& rImpHelper,
44 SvXMLImport& rImport,
45 sal_Int32 nElement );
47 virtual ~SchXMLDocContext() override;
49 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
50 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
53 // context for flat file xml format
54 class SchXMLFlatDocContext_Impl
55 : public SchXMLDocContext, public SvXMLMetaDocumentContext
57 public:
58 SchXMLFlatDocContext_Impl(
59 SchXMLImportHelper& i_rImpHelper,
60 SchXMLImport& i_rImport,
61 sal_Int32 i_nElement,
62 const css::uno::Reference<css::document::XDocumentProperties>& i_xDocProps);
64 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
65 sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& xAttrList ) override;
68 class SchXMLBodyContext : public SvXMLImportContext
70 private:
71 SchXMLImportHelper& mrImportHelper;
73 public:
74 SchXMLBodyContext(
75 SchXMLImportHelper& rImpHelper,
76 SvXMLImport& rImport,
77 sal_Int32 nElement );
78 virtual ~SchXMLBodyContext() override;
80 virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(
81 sal_Int32 nElement,
82 const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override;
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */