diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-20 13:27:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-20 15:56:36 +0200 |
commit | de90d47410164a663230f5b881190f10d0269311 (patch) | |
tree | 82163dff044b938af590d780648344cc6a20c439 /starmath/source | |
parent | b9f0060b943fa765646ff575ad725c9e7c5a2475 (diff) |
SID_GAPHIC_SM->SID_GRAPHIC_SM
Change-Id: Ie5446fc349778ad6dc50ac5f622ddb45ee18eefa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114335
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/document.cxx | 12 | ||||
-rw-r--r-- | starmath/source/view.cxx | 8 |
2 files changed, 10 insertions, 10 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 0b908d00fc76..c3faff24b8d1 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -123,7 +123,7 @@ void SmDocShell::Notify(SfxBroadcaster&, const SfxHint& rHint) { SetFormulaArranged(false); - mnModifyCount++; //! see comment for SID_GAPHIC_SM in SmDocShell::GetState + mnModifyCount++; //! see comment for SID_GRAPHIC_SM in SmDocShell::GetState Repaint(); } @@ -203,14 +203,14 @@ void SmDocShell::SetFormat(SmFormat const & rFormat) SetFormulaArranged( false ); SetModified(); - mnModifyCount++; //! see comment for SID_GAPHIC_SM in SmDocShell::GetState + mnModifyCount++; //! see comment for SID_GRAPHIC_SM in SmDocShell::GetState // don't use SmGetActiveView since the view shell might not be active (0 pointer) // if for example the Basic Macro dialog currently has the focus. Thus: SfxViewFrame* pFrm = SfxViewFrame::GetFirst( this ); while (pFrm) { - pFrm->GetBindings().Invalidate(SID_GAPHIC_SM); + pFrm->GetBindings().Invalidate(SID_GRAPHIC_SM); pFrm = SfxViewFrame::GetNext( *pFrm, this ); } } @@ -236,7 +236,7 @@ void SmDocShell::Parse() mpTree.reset(); ReplaceBadChars(); mpTree = maParser->Parse(maText); - mnModifyCount++; //! see comment for SID_GAPHIC_SM in SmDocShell::GetState + mnModifyCount++; //! see comment for SID_GRAPHIC_SM in SmDocShell::GetState SetFormulaArranged( false ); InvalidateCursor(); maUsedSymbols = maParser->GetUsedSymbols(); @@ -1144,12 +1144,12 @@ void SmDocShell::GetState(SfxItemSet &rSet) rSet.Put(SfxStringItem(SID_TEXT, GetText())); break; - case SID_GAPHIC_SM: + case SID_GRAPHIC_SM: //! very old (pre UNO) and ugly hack to invalidate the SmGraphicWindow. //! 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. - rSet.Put(SfxInt16Item(SID_GAPHIC_SM, mnModifyCount)); + rSet.Put(SfxInt16Item(SID_GRAPHIC_SM, mnModifyCount)); break; case SID_UNDO: diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 3a177f6276cb..73b52e9c2750 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1346,7 +1346,7 @@ void SmViewShell::Insert( SfxMedium& rMedium ) pDoc->SetModified(); SfxBindings &rBnd = GetViewFrame()->GetBindings(); - rBnd.Invalidate(SID_GAPHIC_SM); + rBnd.Invalidate(SID_GRAPHIC_SM); rBnd.Invalidate(SID_TEXT); } @@ -1381,7 +1381,7 @@ void SmViewShell::InsertFrom(SfxMedium &rMedium) pDoc->SetModified(); SfxBindings& rBnd = GetViewFrame()->GetBindings(); - rBnd.Invalidate(SID_GAPHIC_SM); + rBnd.Invalidate(SID_GRAPHIC_SM); rBnd.Invalidate(SID_TEXT); } @@ -1890,7 +1890,7 @@ void SmViewShell::GetState(SfxItemSet &rSet) SmViewShell::SmViewShell(SfxViewFrame *pFrame_, SfxViewShell *) : SfxViewShell(pFrame_, SfxViewShellFlags::HAS_PRINTOPTIONS) , mpGraphic(VclPtr<SmGraphicWindow>::Create(this)) - , maGraphicController(*mpGraphic, SID_GAPHIC_SM, pFrame_->GetBindings()) + , maGraphicController(*mpGraphic, SID_GRAPHIC_SM, pFrame_->GetBindings()) , mbPasteState(false) , mbInsertIntoEditWindow(false) { @@ -1962,7 +1962,7 @@ IMPL_LINK( SmViewShell, DialogClosedHdl, sfx2::FileDialogHelper*, _pFileDlg, voi pDoc->ArrangeFormula(); pDoc->Repaint(); // adjust window, repaint, increment ModifyCount,... - GetViewFrame()->GetBindings().Invalidate(SID_GAPHIC_SM); + GetViewFrame()->GetBindings().Invalidate(SID_GRAPHIC_SM); } } |