summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2021-01-21 12:12:53 +0100
committerTamás Zolnai <tamas.zolnai@collabora.com>2021-01-25 14:57:16 +0100
commitce95ce5d871f06da490bbd47e91ce48073128e79 (patch)
treecdd241e218e3de5866a7856197b8d0b3535ac968 /scripting
parentec7ea311671928d0b66989aaa0542be902d85c3c (diff)
tdf#139830: keep the right sidebar context for chart after view switch (calc).
There is a general behavior to switch to the default sidebar context by view deactivation and switch back to the right context by view activation. See SfxShell::Activate() and SfxShell::Deactivate(). By activation, we use the selection to find out the right sidebar context. See GetContextForSelection_SC() method for example. However, for charts, this does not work, because the chart window is a separate environment and the shell does not know what is selected inside the chart window. So let's avoid context switches when we have a chart window active. Let the chart controller handle sidebar context changes. Change-Id: I272ee5c35ac30221eed2930201c4710a9a5877c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109790 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109897 Tested-by: Jenkins
Diffstat (limited to 'scripting')
0 files changed, 0 insertions, 0 deletions