summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index 53115b6c093e..373d3e8349d7 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -39,6 +39,7 @@
#include <view.hxx>
#include <document.hxx>
#include <cfgitem.hxx>
+#include <smediteng.hxx>
#include "accessibility.hxx"
using namespace com::sun::star::accessibility;
@@ -118,6 +119,10 @@ void SmEditTextWindow::SetDrawingArea(weld::DrawingArea* pDrawingArea)
pEditEngine->SetStatusEventHdl(LINK(this, SmEditTextWindow, EditStatusHdl));
InitAccessible();
+
+ //Apply zoom to smeditwindow text
+ if(GetEditView())
+ static_cast<SmEditEngine*>(GetEditEngine())->executeZoom(GetEditView());
}
SmEditWindow::SmEditWindow(SmCmdBoxWindow &rMyCmdBoxWin, weld::Builder& rBuilder)
@@ -190,7 +195,7 @@ void SmEditTextWindow::StyleUpdated()
//!
const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- pDoc->UpdateEditEngineDefaultFonts(rStyleSettings.GetFieldTextColor());
+ pDoc->UpdateEditEngineDefaultFonts();
pEditEngine->SetBackgroundColor(rStyleSettings.GetFieldColor());
pEditEngine->SetDefTab(sal_uInt16(GetTextWidth("XXXX")));
@@ -203,6 +208,9 @@ void SmEditTextWindow::StyleUpdated()
Resize();
}
+
+ // Apply zoom to smeditwindow text
+ static_cast<SmEditEngine*>(GetEditEngine())->executeZoom(GetEditView());
}
IMPL_LINK_NOARG(SmEditTextWindow, ModifyTimerHdl, Timer *, void)
@@ -522,6 +530,8 @@ void SmEditTextWindow::SetText(const OUString& rText)
// math tasks
aModifyIdle.Start();
+ // Apply zoom to smeditwindow text
+ static_cast<SmEditEngine*>(pEditView->GetEditEngine())->executeZoom(pEditView);
pEditView->SetSelection(eSelection);
}
@@ -704,6 +714,8 @@ void SmEditTextWindow::UpdateStatus(bool bSetDocModified)
SmDocShell* pDoc = bSetDocModified ? mrEditWindow.GetDoc() : nullptr;
if (pDoc)
pDoc->SetModified();
+
+ static_cast<SmEditEngine*>(GetEditEngine())->executeZoom(GetEditView());
}
void SmEditWindow::Cut()