diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-09-28 10:15:03 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-09-28 14:34:22 +0200 |
commit | c7f20a1dad66a7d3241c103546cd268152bc778f (patch) | |
tree | 220a0703ecc5d7622294b9d0fe8b2f3accfb139a /starmath/inc | |
parent | d68cb3beddcf26e0b19101f18bd77a56c53d2009 (diff) |
tdf#142095: Render symbols in Math Symbols Catalogue using document settings
Use the document format to resolve the font and style of the symbol.
This makes the symbols use the current document font, as well as apply
settings like GreekCharStyle.
Change-Id: I668e582704b7e011e032f8b9e1dfb509e0d00d3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157348
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/dialog.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index bed55f9ddabf..66db01d295f4 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -247,6 +247,7 @@ public: class SmShowSymbolSet final : public weld::CustomWidgetController { + SmViewShell &m_rViewShell; Size m_aOldSize; SymbolPtrVec_t aSymbolSet; Link<SmShowSymbolSet&,void> aSelectHdlLink; @@ -268,7 +269,7 @@ class SmShowSymbolSet final : public weld::CustomWidgetController DECL_LINK(ScrollHdl, weld::ScrolledWindow&, void); public: - SmShowSymbolSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWindow); + SmShowSymbolSet(std::unique_ptr<weld::ScrolledWindow> pScrolledWindow, SmViewShell &rViewShell); virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override { @@ -291,6 +292,7 @@ public: class SmShowSymbol final : public weld::CustomWidgetController { private: + SmViewShell &m_rViewShell; vcl::Font m_aFont; OUString m_aText; @@ -302,7 +304,7 @@ private: void setFontSize(vcl::Font &rFont) const; public: - SmShowSymbol(); + SmShowSymbol(SmViewShell &rViewShell); virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override { |