Avoid potential negative array index access to cached text.
[LibreOffice.git] / xmloff / source / chart / SchXMLPropertyMappingContext.hxx
blobec9010a6c69a9c1bcdb0b726515740044bf137d5
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/.
8 */
10 #pragma once
12 #include "transporttypes.hxx"
13 #include <xmloff/xmlictxt.hxx>
14 #include <xmloff/SchXMLImportHelper.hxx>
16 namespace com::sun::star {
17 namespace chart2 {
18 class XChartDocument;
19 class XDataSeries;
23 class SchXMLPropertyMappingContext : public SvXMLImportContext
25 public:
27 SchXMLPropertyMappingContext(
28 SvXMLImport& rImport,
29 tSchXMLLSequencesPerIndex& rLSequencesPerIndex,
30 css::uno::Reference<
31 css::chart2::XDataSeries > xSeries );
33 virtual ~SchXMLPropertyMappingContext() override;
35 virtual void SAL_CALL startFastElement (sal_Int32 Element,
36 const css::uno::Reference< css::xml::sax::XFastAttributeList >& Attribs) override;
37 private:
39 css::uno::Reference< css::chart2::XDataSeries > mxDataSeries;
41 tSchXMLLSequencesPerIndex& mrLSequencesPerIndex;
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */