Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / xmloff / source / chart / contexts.hxx
blobb4b7c0397c49c32e0abf9af1b7ebfb2bd708927b
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 #ifndef INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
20 #define INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
22 #include "SchXMLImport.hxx"
23 #include "SchXMLTableContext.hxx"
24 #include <xmloff/xmlictxt.hxx>
25 #include <xmloff/xmltkmap.hxx>
27 #include <xmloff/xmlmetai.hxx>
29 namespace com { namespace sun { namespace star { namespace xml { namespace sax {
30 class XAttributeList;
31 }}}}}
34 These contexts are only needed by
35 SchXMLImport not by the SchXMLImportHelper
36 that is also used by other applications
39 class SchXMLDocContext : public virtual SvXMLImportContext
41 protected:
42 SchXMLImportHelper& mrImportHelper;
44 public:
45 SchXMLDocContext(
46 SchXMLImportHelper& rImpHelper,
47 SvXMLImport& rImport,
48 sal_uInt16 nPrefix,
49 const OUString& rLName );
50 virtual ~SchXMLDocContext();
53 virtual SvXMLImportContext* CreateChildContext(
54 sal_uInt16 nPrefix,
55 const OUString& rLocalName,
56 const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
59 // context for flat file xml format
60 class SchXMLFlatDocContext_Impl
61 : public SchXMLDocContext, public SvXMLMetaDocumentContext
63 public:
64 SchXMLFlatDocContext_Impl(
65 SchXMLImportHelper& i_rImpHelper,
66 SchXMLImport& i_rImport,
67 sal_uInt16 i_nPrefix, const OUString & i_rLName,
68 const css::uno::Reference<css::document::XDocumentProperties>& i_xDocProps);
70 virtual ~SchXMLFlatDocContext_Impl();
72 virtual SvXMLImportContext *CreateChildContext(
73 sal_uInt16 i_nPrefix, const OUString& i_rLocalName,
74 const css::uno::Reference<css::xml::sax::XAttributeList>& i_xAttrList) override;
77 class SchXMLBodyContext : public SvXMLImportContext
79 private:
80 SchXMLImportHelper& mrImportHelper;
82 public:
83 SchXMLBodyContext(
84 SchXMLImportHelper& rImpHelper,
85 SvXMLImport& rImport,
86 sal_uInt16 nPrefix,
87 const OUString& rLName );
88 virtual ~SchXMLBodyContext();
90 virtual void EndElement() override;
91 virtual SvXMLImportContext* CreateChildContext(
92 sal_uInt16 nPrefix,
93 const OUString& rLocalName,
94 const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
97 #endif // INCLUDED_XMLOFF_SOURCE_CHART_CONTEXTS_HXX
99 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */