fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / chart2 / source / controller / inc / RegressionCurveItemConverter.hxx
blob4abfa57f4efb97dedff8e617c5c0ec6d3f22c25c
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_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
20 #define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
22 #include "ItemConverter.hxx"
24 #include <com/sun/star/chart2/XRegressionCurveContainer.hpp>
25 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
27 #include <vector>
28 #include <boost/shared_ptr.hpp>
30 class SdrModel;
32 namespace chart
34 namespace wrapper
37 class RegressionCurveItemConverter : public ItemConverter
39 public:
40 RegressionCurveItemConverter(
41 const ::com::sun::star::uno::Reference<
42 ::com::sun::star::beans::XPropertySet > & rPropertySet,
43 const ::com::sun::star::uno::Reference<
44 ::com::sun::star::chart2::XRegressionCurveContainer > & xRegCurveCnt,
45 SfxItemPool& rItemPool,
46 SdrModel& rDrawModel,
47 const ::com::sun::star::uno::Reference<
48 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
49 virtual ~RegressionCurveItemConverter();
51 virtual void FillItemSet( SfxItemSet & rOutItemSet ) const SAL_OVERRIDE;
52 virtual bool ApplyItemSet( const SfxItemSet & rItemSet ) SAL_OVERRIDE;
54 protected:
55 virtual const sal_uInt16 * GetWhichPairs() const SAL_OVERRIDE;
56 virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const SAL_OVERRIDE;
58 virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const
59 throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
60 virtual bool ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet & rItemSet )
61 throw( ::com::sun::star::uno::Exception ) SAL_OVERRIDE;
63 private:
64 ::boost::shared_ptr< ItemConverter > m_spGraphicConverter;
65 ::com::sun::star::uno::Reference<
66 ::com::sun::star::chart2::XRegressionCurveContainer > m_xCurveContainer;
69 } // namespace wrapper
70 } // namespace chart
72 // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_REGRESSIONCURVEITEMCONVERTER_HXX
73 #endif
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */