summaryrefslogtreecommitdiff
path: root/chart2/source/controller/inc/ErrorBarItemConverter.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/inc/ErrorBarItemConverter.hxx')
-rw-r--r--chart2/source/controller/inc/ErrorBarItemConverter.hxx23
1 files changed, 9 insertions, 14 deletions
diff --git a/chart2/source/controller/inc/ErrorBarItemConverter.hxx b/chart2/source/controller/inc/ErrorBarItemConverter.hxx
index 691ca508a172..50b2fbe3f73b 100644
--- a/chart2/source/controller/inc/ErrorBarItemConverter.hxx
+++ b/chart2/source/controller/inc/ErrorBarItemConverter.hxx
@@ -17,37 +17,35 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_ERRORBARITEMCONVERTER_HXX
-#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_ERRORBARITEMCONVERTER_HXX
+#pragma once
#include "ItemConverter.hxx"
+#include <rtl/ref.hxx>
namespace com::sun::star::frame { class XModel; }
namespace com::sun::star::lang { class XMultiServiceFactory; }
class SdrModel;
+namespace chart { class ChartModel; }
-namespace chart
-{
-namespace wrapper
+namespace chart::wrapper
{
-class ErrorBarItemConverter : public ItemConverter
+class ErrorBarItemConverter final : public ItemConverter
{
public:
ErrorBarItemConverter(
- const css::uno::Reference< css::frame::XModel > & xChartModel,
+ const rtl::Reference< ChartModel > & xChartModel,
const css::uno::Reference< css::beans::XPropertySet > & rPropertySet,
SfxItemPool& rItemPool,
- SdrModel& rDrawModel,
- const css::uno::Reference< css::lang::XMultiServiceFactory > & xNamedPropertyContainerFactory );
+ SdrModel& rDrawModel );
virtual ~ErrorBarItemConverter() override;
virtual void FillItemSet( SfxItemSet & rOutItemSet ) const override;
virtual bool ApplyItemSet( const SfxItemSet & rItemSet ) override;
protected:
- virtual const sal_uInt16 * GetWhichPairs() const override;
+ virtual const WhichRangesContainer& GetWhichPairs() const override;
virtual bool GetItemProperty( tWhichIdType nWhichId, tPropertyNameWithMemberId & rOutProperty ) const override;
virtual void FillSpecialItem( sal_uInt16 nWhichId, SfxItemSet & rOutItemSet ) const override;
@@ -58,9 +56,6 @@ private:
css::uno::Reference< css::frame::XModel > m_xModel;
};
-} // namespace wrapper
-} // namespace chart
-
-#endif // INCLUDED_CHART2_SOURCE_CONTROLLER_INC_ERRORBARITEMCONVERTER_HXX
+} // namespace chart::wrapper
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */