1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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>
28 #include "transporttypes.hxx"
30 class SchXMLRegressionCurveObjectContext
: public SvXMLImportContext
33 SchXMLRegressionCurveObjectContext(
34 SchXMLImportHelper
& rImportHelper
,
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(
47 const OUString
& rLocalName
,
48 const css::uno::Reference
< css::xml::sax::XAttributeList
>& xAttrList
) override
;
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
61 SchXMLEquationContext(
62 SchXMLImportHelper
& rImportHelper
,
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
;
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: */