[Libreoffice-commits] core.git: starmath/inc starmath/source
dante (via logerrit)
logerrit at kemper.freedesktop.org
Sat Mar 6 12:13:03 UTC 2021
starmath/inc/view.hxx | 3 +++
starmath/source/view.cxx | 9 +++++++++
2 files changed, 12 insertions(+)
New commits:
commit cbd4dba6d6f056f4ffa2e1a199d75a235cb037b0
Author: dante <dante19031999 at gmail.com>
AuthorDate: Fri Mar 5 11:24:31 2021 +0100
Commit: Noel Grandin <noel.grandin at 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.grandin at 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;
More information about the Libreoffice-commits
mailing list