starmath/inc/view.hxx | 3 +++ starmath/source/view.cxx | 9 +++++++++ 2 files changed, 12 insertions(+)
New commits: commit cbd4dba6d6f056f4ffa2e1a199d75a235cb037b0 Author: dante <dante19031...@gmail.com> AuthorDate: Fri Mar 5 11:24:31 2021 +0100 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Mar 6 13:12:25 2021 +0100 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.gran...@collabora.co.uk> diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index b3d5b72f4a6d..411904105059 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -35,6 +35,7 @@ class SmViewShell; class SmPrintUIOptions; class SmGraphicAccessible; +class SmElementsDockingWindow; namespace svtools { class ColorConfig; } @@ -274,6 +275,8 @@ public: return *mpGraphic; } + SmElementsDockingWindow* GetDockingWindow(); + void SetStatusText(const OUString& rText); void ShowError( const SmErrorDesc *pErrorDesc ); 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits