From ea21b870f8549d0110ef65187af50694a06458ca Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Apr 2021 15:22:22 +0100 Subject: weld SmGraphicWindow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie163640d6453f30d1cebdaf75ecd41374b2b9ec3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114351 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- starmath/source/document.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'starmath/source/document.cxx') diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index c3faff24b8d1..10fee0c6f39c 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -174,7 +174,7 @@ void SmDocShell::SetText(const OUString& rBuffer) Repaint(); } else - pViewSh->GetGraphicWindow().Invalidate(); + pViewSh->GetGraphicWidget().Invalidate(); } if ( bIsEnabled ) @@ -182,7 +182,7 @@ void SmDocShell::SetText(const OUString& rBuffer) SetModified(); // launch accessible event if necessary - SmGraphicAccessible *pAcc = pViewSh ? pViewSh->GetGraphicWindow().GetAccessible_Impl() : nullptr; + SmGraphicAccessible *pAcc = pViewSh ? pViewSh->GetGraphicWidget().GetAccessible_Impl() : nullptr; if (pAcc) { Any aOldValue, aNewValue; @@ -260,7 +260,7 @@ void SmDocShell::ArrangeFormula() { SmViewShell *pView = SmGetActiveView(); if (pView) - pOutDev = &pView->GetGraphicWindow(); + pOutDev = &pView->GetGraphicWidget().GetDrawingArea()->get_ref_device(); else { pOutDev = &SM_MOD()->GetDefaultVirtualDev(); @@ -622,7 +622,7 @@ void SmDocShell::Repaint() SetVisAreaSize(aVisSize); SmViewShell* pViewSh = SmGetActiveView(); if (pViewSh) - pViewSh->GetGraphicWindow().Invalidate(); + pViewSh->GetGraphicWidget().Invalidate(); if (bIsEnabled) EnableSetModified(bIsEnabled); @@ -1145,7 +1145,7 @@ void SmDocShell::GetState(SfxItemSet &rSet) break; case SID_GRAPHIC_SM: - //! very old (pre UNO) and ugly hack to invalidate the SmGraphicWindow. + //! very old (pre UNO) and ugly hack to invalidate the SmGraphicWidget. //! If mnModifyCount gets changed then the call below will implicitly notify //! SmGraphicController::StateChanged and there the window gets invalidated. //! Thus all the 'mnModifyCount++' before invalidating this slot. -- cgit