summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-28 14:37:39 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-30 20:59:06 +0100
commit350789a2477653d4e7de9acd1be055c755d61b21 (patch)
tree24c9155652accdb52ed107031948aa103bd90e45 /chart2
parent79ff3aa89dbe85d4a648e5fa5953c172b9cd35b5 (diff)
When chart is active pass uno:ChangeTheme through to its parent frame
so theme changes can happen when chart has control of the UI Change-Id: Id7fd17d697d5ff8c03f1f46d80894e4f69cb9b9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162620 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index 666d6b636740..ae09e6813dd5 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -55,6 +55,7 @@
#include <ViewElementListProvider.hxx>
#include <cppuhelper/supportsservice.hxx>
+#include <comphelper/dispatchcommand.hxx>
#include <comphelper/servicehelper.hxx>
#include <BaseCoordinateSystem.hxx>
@@ -1302,6 +1303,8 @@ void SAL_CALL ChartController::dispatch(
}
}
}
+ else if( aCommand == "ChangeTheme" )
+ comphelper::dispatchCommand(".uno:ChangeTheme", getFrame(), rArgs);
}
void SAL_CALL ChartController::addStatusListener(