merged tag ooo/OOO330_m14
[LibreOffice.git] / chart2 / source / controller / inc / RegressionEquationItemConverter.hxx
blob5fe5313c8d4a597fb78743820fe8908e642853e5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef CHART_REGRESSIONEQUATION_ITEMCONVERTER_HXX
28 #define CHART_REGRESSIONEQUATION_ITEMCONVERTER_HXX
30 #include "ItemConverter.hxx"
31 #include "GraphicPropertyItemConverter.hxx"
33 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 #include <com/sun/star/beans/XPropertySet.hpp>
35 #include <com/sun/star/awt/Size.hpp>
37 #include <memory>
38 #include <vector>
39 #include <boost/shared_ptr.hpp>
41 class SdrModel;
43 namespace chart
45 namespace wrapper
48 class RegressionEquationItemConverter :
49 public ::comphelper::ItemConverter
51 public:
52 RegressionEquationItemConverter(
53 const ::com::sun::star::uno::Reference<
54 ::com::sun::star::beans::XPropertySet > & rPropertySet,
55 SfxItemPool& rItemPool,
56 SdrModel& rDrawModel,
57 const ::com::sun::star::uno::Reference<
58 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory,
59 ::std::auto_ptr< ::com::sun::star::awt::Size > pRefSize =
60 ::std::auto_ptr< ::com::sun::star::awt::Size >() );
61 virtual ~RegressionEquationItemConverter();
63 virtual void FillItemSet( SfxItemSet & rOutItemSet ) const;
64 virtual bool ApplyItemSet( const SfxItemSet & rItemSet );
66 protected:
67 virtual const USHORT * GetWhichPairs() const;
68 virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const;
70 virtual void FillSpecialItem( USHORT nWhichId, SfxItemSet & rOutItemSet ) const
71 throw( ::com::sun::star::uno::Exception );
72 virtual bool ApplySpecialItem( USHORT nWhichId, const SfxItemSet & rItemSet )
73 throw( ::com::sun::star::uno::Exception );
75 private:
76 ::std::vector< ItemConverter * > m_aConverters;
79 } // namespace wrapper
80 } // namespace chart
82 // CHART_REGRESSIONEQUATION_ITEMCONVERTER_HXX
83 #endif