1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: ErrorBarItemConverter.hxx,v $
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>
41 #include <boost/shared_ptr.hpp>
50 class ErrorBarItemConverter
:
51 public ::comphelper::ItemConverter
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
,
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
);
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
);
78 ::boost::shared_ptr
< ItemConverter
> m_spGraphicConverter
;
79 ::com::sun::star::uno::Reference
<
80 ::com::sun::star::frame::XModel
> m_xModel
;
83 } // namespace wrapper
86 // CHART_STATISTICSITEMCONVERTER_HXX