summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-03-05 11:24:31 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-06 13:12:25 +0100
commitcbd4dba6d6f056f4ffa2e1a199d75a235cb037b0 (patch)
tree20f28a6b7030f6ba6fa7e6bff82254c3b91771c0 /starmath/source
parent1b64713b6cbcc2bf748b199e0c97dfd6d2f262ec (diff)
Add to smviewshell an acces to the docking window
Change-Id: Ib5830ba0fef201cabb4e2589cbc277b72ed6b399 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111999 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/view.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index ee72fb55b40c..b9399656d006 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1276,6 +1276,15 @@ SmEditWindow *SmViewShell::GetEditWindow()
return nullptr;
}
+SmElementsDockingWindow* SmViewShell::GetDockingWindow()
+{
+ auto eldockwinwrap = GetViewFrame()->GetChildWindow(SmElementsDockingWindowWrapper::GetChildWindowId());
+ if(eldockwinwrap)
+ return dynamic_cast<SmElementsDockingWindow*>(eldockwinwrap->GetWindow());
+ else
+ return nullptr;
+}
+
void SmViewShell::SetStatusText(const OUString& rText)
{
maStatusText = rText;