2010-10-27 12:43:08 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +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 22:48:59 +02:00
|
|
|
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
|
|
|
|
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
|
2007-11-23 10:50:59 +00:00
|
|
|
|
|
|
|
#include "ItemConverter.hxx"
|
|
|
|
|
2008-02-18 14:56:00 +00:00
|
|
|
#include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
|
2007-11-23 10:50:59 +00:00
|
|
|
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
|
|
|
|
|
2015-09-14 14:43:18 +01:00
|
|
|
#include <memory>
|
2007-11-23 10:50:59 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class SdrModel;
|
|
|
|
|
|
|
|
namespace chart
|
|
|
|
{
|
|
|
|
namespace wrapper
|
|
|
|
{
|
|
|
|
|
2014-07-21 23:53:23 -04:00
|
|
|
class RegressionCurveItemConverter : public ItemConverter
|
2007-11-23 10:50:59 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
RegressionCurveItemConverter(
|
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::beans::XPropertySet > & rPropertySet,
|
2008-02-18 14:56:00 +00:00
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::chart2::XRegressionCurveContainer > & xRegCurveCnt,
|
2007-11-23 10:50:59 +00:00
|
|
|
SfxItemPool& rItemPool,
|
|
|
|
SdrModel& rDrawModel,
|
|
|
|
const ::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
|
|
|
|
virtual ~RegressionCurveItemConverter();
|
|
|
|
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual void FillItemSet( SfxItemSet & rOutItemSet ) const SAL_OVERRIDE;
|
|
|
|
virtual bool ApplyItemSet( const SfxItemSet & rItemSet ) SAL_OVERRIDE;
|
2007-11-23 10:50:59 +00:00
|
|
|
|
|
|
|
protected:
|
2014-03-27 18:12:18 +01:00
|
|
|
virtual const sal_uInt16 * GetWhichPairs() const SAL_OVERRIDE;
|
|
|
|
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
|
2007-11-23 10:50:59 +00:00
|
|
|
|
2011-01-14 15:18:08 +01:00
|
|
|
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
|
2011-01-14 15:18:08 +01:00
|
|
|
virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
|
2014-03-27 18:12:18 +01:00
|
|
|
throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
|
2007-11-23 10:50:59 +00:00
|
|
|
|
|
|
|
private:
|
2015-09-14 14:43:18 +01:00
|
|
|
std::shared_ptr< ItemConverter > m_spGraphicConverter;
|
2008-02-18 14:56:00 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::chart2::XRegressionCurveContainer > m_xCurveContainer;
|
2007-11-23 10:50:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace wrapper
|
|
|
|
} // namespace chart
|
|
|
|
|
2013-10-23 22:48:59 +02:00
|
|
|
// INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
|
2007-11-23 10:50:59 +00:00
|
|
|
#endif
|
2010-10-27 12:43:08 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|