Update ooo320-m1
[ooovba.git] / chart2 / source / controller / inc / ErrorBarItemConverter.hxx
blob24256a8df87b1790141ab45472012a2db071e77a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ErrorBarItemConverter.hxx,v $
10 * $Revision: 1.3 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef CHART_STATISTICSITEMCONVERTER_HXX
31 #define CHART_STATISTICSITEMCONVERTER_HXX
33 #include "ItemConverter.hxx"
34 #include "GraphicPropertyItemConverter.hxx"
35 #include "chartview/NumberFormatterWrapper.hxx"
37 #include <com/sun/star/frame/XModel.hpp>
38 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
40 #include <vector>
41 #include <boost/shared_ptr.hpp>
43 class SdrModel;
45 namespace chart
47 namespace wrapper
50 class ErrorBarItemConverter :
51 public ::comphelper::ItemConverter
53 public:
54 ErrorBarItemConverter(
55 const ::com::sun::star::uno::Reference<
56 ::com::sun::star::frame::XModel > & xChartModel,
57 const ::com::sun::star::uno::Reference<
58 ::com::sun::star::beans::XPropertySet > & rPropertySet,
59 SfxItemPool& rItemPool,
60 SdrModel& rDrawModel,
61 const ::com::sun::star::uno::Reference<
62 ::com::sun::star::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
63 virtual ~ErrorBarItemConverter();
65 virtual void FillItemSet( SfxItemSet & rOutItemSet ) const;
66 virtual bool ApplyItemSet( const SfxItemSet & rItemSet );
68 protected:
69 virtual const USHORT * GetWhichPairs() const;
70 virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const;
72 virtual void FillSpecialItem( USHORT nWhichId, SfxItemSet & rOutItemSet ) const
73 throw( ::com::sun::star::uno::Exception );
74 virtual bool ApplySpecialItem( USHORT nWhichId, const SfxItemSet & rItemSet )
75 throw( ::com::sun::star::uno::Exception );
77 private:
78 ::boost::shared_ptr< ItemConverter > m_spGraphicConverter;
79 ::com::sun::star::uno::Reference<
80 ::com::sun::star::frame::XModel > m_xModel;
83 } // namespace wrapper
84 } // namespace chart
86 // CHART_STATISTICSITEMCONVERTER_HXX
87 #endif