summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorcodewithvk <vivek.javiya@collabora.com>2024-02-04 19:56:55 +0530
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-02-07 21:37:32 +0100
commitb0ea4c567f1bdd1f3f41eda119ea373009cf56ab (patch)
tree91c7d5b4571b419a86b06c1877a868864d96d1e3 /chart2
parent8bad43079758460c0b65455bf9f7a2187d05e27b (diff)
Fix: Convert 'runAsync' class-based calls to static method calls for chart properties
Signed-off-by: codewithvk <vivek.javiya@collabora.com> Change-Id: Ib368c2bbb5657a2dbf1b7f340bc9fb0b6f436713 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162975 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 9e438e7c169f626fb7a5337d645bf92269b52d5e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163019 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController.cxx2
-rw-r--r--chart2/source/controller/main/ChartController_Insert.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index b9e2755a8d8b..29f5d9b6a24d 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -1345,7 +1345,7 @@ void ChartController::executeDispatch_ChartType()
SolarMutexGuard aSolarGuard;
//prepare and open dialog
auto aDlg = std::make_shared<ChartTypeDialog>(GetChartFrame(), getChartModel());
- aDlg->runAsync(aDlg, [this, aUndoGuard](int nResult) {
+ weld::DialogController::runAsync(aDlg, [this, aUndoGuard](int nResult) {
if (nResult == RET_OK)
{
impl_adaptDataSeriesAutoResize();
diff --git a/chart2/source/controller/main/ChartController_Insert.cxx b/chart2/source/controller/main/ChartController_Insert.cxx
index 671baed907a7..5c069235f7b4 100644
--- a/chart2/source/controller/main/ChartController_Insert.cxx
+++ b/chart2/source/controller/main/ChartController_Insert.cxx
@@ -104,7 +104,7 @@ void ChartController::executeDispatch_InsertAxes()
SolarMutexGuard aGuard;
auto aDlg = std::make_shared<SchAxisDlg>(GetChartFrame(), *aDialogInput);
- aDlg->runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult) {
+ weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult) {
if ( nResult == RET_OK )
{
// lock controllers till end of block
@@ -289,7 +289,7 @@ void ChartController::executeDispatch_InsertTitles()
SolarMutexGuard aGuard;
auto aDlg = std::make_shared<SchTitleDlg>(GetChartFrame(), *aDialogInput);
- aDlg->runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult){
+ weld::DialogController::runAsync(aDlg, [this, aDlg, aDialogInput, aUndoGuard](int nResult){
if ( nResult == RET_OK )
{
// lock controllers till end of block
@@ -508,7 +508,7 @@ void ChartController::executeDispatch_InsertTrendline()
// note: when a user pressed "OK" but didn't change any settings in the
// dialog, the SfxTabDialog returns "Cancel"
- aDialog->runAsync(aDialog, [this, aDialog, aItemConverter, aUndoGuard](int nResult) {
+ SfxTabDialogController::runAsync(aDialog, [this, aDialog, aItemConverter, aUndoGuard](int nResult) {
if ( nResult == RET_OK || aDialog->DialogWasClosedWithOK() )
{
const SfxItemSet* pOutItemSet = aDialog->GetOutputItemSet();
@@ -570,7 +570,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError )
// note: when a user pressed "OK" but didn't change any settings in the
// dialog, the SfxTabDialog returns "Cancel"
- aDlg->runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) {
+ SfxTabDialogController::runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) {
if ( nResult == RET_OK || aDlg->DialogWasClosedWithOK() )
{
const SfxItemSet* pOutItemSet = aDlg->GetOutputItemSet();
@@ -609,7 +609,7 @@ void ChartController::executeDispatch_InsertErrorBars( bool bYError )
aDlg->SetAxisMinorStepWidthForErrorBarDecimals(
InsertErrorBarsDialog::getAxisMinorStepWidthForErrorBarDecimals( getChartModel(), m_xChartView, u"" ) );
- aDlg->runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) {
+ weld::DialogController::runAsync(aDlg, [this, aDlg, aItemConverter, aUndoGuard](int nResult) {
if ( nResult == RET_OK )
{
SfxItemSet aOutItemSet = aItemConverter->CreateEmptyItemSet();