summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--starmath/inc/view.hxx3
-rw-r--r--starmath/source/view.cxx9
2 files changed, 12 insertions, 0 deletions
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;