2011-02-14 09:27:42 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-16 17:32:30 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
|
|
|
|
2013-10-23 19:09:35 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_SCHXMLSERIESHELPER_HXX
|
|
|
|
#define INCLUDED_XMLOFF_SCHXMLSERIESHELPER_HXX
|
2010-10-21 17:53:16 +02:00
|
|
|
|
|
|
|
#include <com/sun/star/chart2/data/XDataSequence.hpp>
|
|
|
|
#include <com/sun/star/chart2/data/XDataSource.hpp>
|
|
|
|
#include <com/sun/star/chart2/XDataSeries.hpp>
|
|
|
|
#include <com/sun/star/chart2/XDiagram.hpp>
|
|
|
|
#include <com/sun/star/frame/XModel.hpp>
|
|
|
|
|
2013-11-09 15:30:56 -06:00
|
|
|
#include <xmloff/dllapi.h>
|
2013-03-20 18:08:22 -04:00
|
|
|
|
2010-10-21 17:53:16 +02:00
|
|
|
#include <vector>
|
|
|
|
#include <map>
|
2012-10-25 21:02:50 +02:00
|
|
|
#include <iterator>
|
2010-10-21 17:53:16 +02:00
|
|
|
|
2013-03-20 18:08:22 -04:00
|
|
|
class XMLOFF_DLLPUBLIC SchXMLSeriesHelper
|
2010-10-21 17:53:16 +02:00
|
|
|
{
|
|
|
|
public:
|
2015-10-23 10:32:47 +02:00
|
|
|
static ::std::vector< css::uno::Reference< css::chart2::XDataSeries > >
|
2010-10-21 17:53:16 +02:00
|
|
|
getDataSeriesFromDiagram(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Reference< css::chart2::XDiagram > & xDiagram );
|
|
|
|
static ::std::map< css::uno::Reference< css::chart2::XDataSeries >, sal_Int32 >
|
2010-10-21 17:53:16 +02:00
|
|
|
getDataSeriesIndexMapFromDiagram(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Reference< css::chart2::XDiagram > & xDiagram );
|
2010-10-21 17:53:16 +02:00
|
|
|
|
|
|
|
static bool isCandleStickSeries(
|
2015-10-23 10:32:47 +02:00
|
|
|
const css::uno::Reference< css::chart2::XDataSeries >& xSeries
|
|
|
|
, const css::uno::Reference< css::frame::XModel >& xChartModel );
|
2010-10-21 17:53:16 +02:00
|
|
|
|
2015-10-23 10:32:47 +02:00
|
|
|
static css::uno::Reference< css::beans::XPropertySet > createOldAPISeriesPropertySet(
|
|
|
|
const css::uno::Reference< css::chart2::XDataSeries >& xSeries
|
|
|
|
, const css::uno::Reference< css::frame::XModel >& xChartModel );
|
2010-10-21 17:53:16 +02:00
|
|
|
|
2015-10-23 10:32:47 +02:00
|
|
|
static css::uno::Reference< css::beans::XPropertySet > createOldAPIDataPointPropertySet(
|
|
|
|
const css::uno::Reference< css::chart2::XDataSeries >& xSeries
|
2010-10-21 17:53:16 +02:00
|
|
|
, sal_Int32 nPointIndex
|
2015-10-23 10:32:47 +02:00
|
|
|
, const css::uno::Reference< css::frame::XModel >& xChartModel );
|
2010-10-21 17:53:16 +02:00
|
|
|
};
|
|
|
|
|
2013-10-23 19:09:35 +02:00
|
|
|
// INCLUDED_XMLOFF_SCHXMLSERIESHELPER_HXX
|
2010-10-21 17:53:16 +02:00
|
|
|
#endif
|
2011-02-14 09:27:42 +00:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|