Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / xmloff / source / chart / SchXMLRegressionCurveObjectContext.hxx
blobf111ab2de909b7a567e7b6be254ceca065ff1aee
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_SCHXMLREGRESSIONCURVEOBJECTCONTEXT_HXX
20 #define INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLREGRESSIONCURVEOBJECTCONTEXT_HXX
22 #include "SchXMLImport.hxx"
24 #include <xmloff/xmlictxt.hxx>
25 #include <xmloff/shapeimport.hxx>
26 #include <list>
28 #include "transporttypes.hxx"
30 class SchXMLRegressionCurveObjectContext : public SvXMLImportContext
32 public:
33 SchXMLRegressionCurveObjectContext(
34 SchXMLImportHelper& rImportHelper,
35 SvXMLImport& rImport,
36 sal_uInt16 nPrefix,
37 const OUString& rLocalName,
38 std::list< RegressionStyle >& rRegressionStyleList,
39 const css::uno::Reference< css::chart2::XDataSeries >& xSeries,
40 const css::awt::Size & rChartSize );
42 virtual ~SchXMLRegressionCurveObjectContext();
44 virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
45 virtual SvXMLImportContext* CreateChildContext(
46 sal_uInt16 nPrefix,
47 const OUString& rLocalName,
48 const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
50 private:
52 SchXMLImportHelper& mrImportHelper;
53 css::uno::Reference<css::chart2::XDataSeries > mxSeries;
54 css::awt::Size maChartSize;
55 std::list< RegressionStyle >& mrRegressionStyleList;
58 class SchXMLEquationContext : public SvXMLImportContext
60 public:
61 SchXMLEquationContext(
62 SchXMLImportHelper& rImportHelper,
63 SvXMLImport& rImport,
64 sal_uInt16 nPrefix,
65 const OUString& rLocalName,
66 const css::awt::Size & rChartSize,
67 RegressionStyle & rRegressionStyle );
69 virtual ~SchXMLEquationContext();
71 virtual void StartElement( const css::uno::Reference< css::xml::sax::XAttributeList >& xAttrList ) override;
73 private:
74 SchXMLImportHelper& mrImportHelper;
75 RegressionStyle& mrRegressionStyle;
76 css::awt::Size maChartSize;
79 #endif // INCLUDED_XMLOFF_SOURCE_CHART_SCHXMLREGRESSIONCURVEOBJECTCONTEXT_HXX
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */