diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-07-25 11:53:26 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-07-25 15:20:23 +0200 |
commit | 493b62c6805125b7f3ebfbd2b4b73a7d49aa0f67 (patch) | |
tree | 48463a60ab3cb0d012e9086444838a1c3ed6159a /starmath/inc | |
parent | 6cfa03bbfb7397c34fe2ea605a4ef573ae92e4ea (diff) |
Some refactor
Change-Id: I58f315e39e33a09585d6325590998ac8195687db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137401
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/view.hxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 295b029457b7..555beca74c2d 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -113,10 +113,9 @@ public: void SetTotalSize(); - SmViewShell& GetView() - { - return mrViewShell; - } + SmViewShell& GetView() { return mrViewShell; } + SmDocShell* GetDoc(); + SmCursor& GetCursor(); const Point& GetFormulaDrawPos() const { @@ -131,6 +130,12 @@ public: return mxAccessible.get(); } + OutputDevice& GetOutputDevice() + { + assert(GetDrawingArea()); + return GetDrawingArea()->get_ref_device(); + } + private: void SetIsCursorVisible(bool bVis) { |