summaryrefslogtreecommitdiff
path: root/chart2/source/controller/inc/dlg_InsertErrorBars.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/inc/dlg_InsertErrorBars.hxx')
-rw-r--r--chart2/source/controller/inc/dlg_InsertErrorBars.hxx29
1 files changed, 15 insertions, 14 deletions
diff --git a/chart2/source/controller/inc/dlg_InsertErrorBars.hxx b/chart2/source/controller/inc/dlg_InsertErrorBars.hxx
index 60cbaac65856..4f8e8d094a34 100644
--- a/chart2/source/controller/inc/dlg_InsertErrorBars.hxx
+++ b/chart2/source/controller/inc/dlg_InsertErrorBars.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_INSERTERRORBARS_HXX
-#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_DLG_INSERTERRORBARS_HXX
+#pragma once
#include <memory>
#include <vcl/weld.hxx>
@@ -25,33 +24,35 @@
#include "res_ErrorBar.hxx"
-namespace com::sun::star::frame { class XModel; }
+namespace com::sun::star::frame
+{
+class XModel;
+}
namespace chart
{
+class ChartView;
-class InsertErrorBarsDialog : public weld::GenericDialogController
+class InsertErrorBarsDialog final : public weld::GenericDialogController
{
public:
InsertErrorBarsDialog(weld::Window* pParent, const SfxItemSet& rMyAttrs,
- const css::uno::Reference< css::chart2::XChartDocument > & xChartDocument,
+ const rtl::Reference<::chart::ChartModel>& xChartDocument,
ErrorBarResources::tErrorBarType eType);
- void SetAxisMinorStepWidthForErrorBarDecimals( double fMinorStepWidth );
+ void SetAxisMinorStepWidthForErrorBarDecimals(double fMinorStepWidth);
- static double getAxisMinorStepWidthForErrorBarDecimals(
- const css::uno::Reference< css::frame::XModel >& xChartModel,
- const css::uno::Reference< css::uno::XInterface >& xChartView,
- const OUString& rSelectedObjectCID );
+ static double
+ getAxisMinorStepWidthForErrorBarDecimals(const rtl::Reference<::chart::ChartModel>& xChartModel,
+ const rtl::Reference<::chart::ChartView>& xChartView,
+ std::u16string_view rSelectedObjectCID);
- void FillItemSet( SfxItemSet& rOutAttrs );
+ void FillItemSet(SfxItemSet& rOutAttrs);
private:
- std::unique_ptr< ErrorBarResources > m_apErrorBarResources;
+ std::unique_ptr<ErrorBarResources> m_apErrorBarResources;
};
} //namespace chart
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */