diff options
author | Noel Grandin <noel@peralex.com> | 2014-10-11 16:01:26 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-11 15:14:52 +0000 |
commit | 8044acf2db9d125d5ed58ed25df5df4a90f37ac6 (patch) | |
tree | 67af1fff3f9bc0d144b80d5ecbe5a078cd08dbd3 /starmath/source | |
parent | cb7ede2d9970a4d162dc71922f578922c0d6235a (diff) |
convert SFX_CALLMODE constants to SfxCallMode enum class
and fix a couple of bugs in SC and SW where the call mode was
being passed to the hints parameter by accident
Change-Id: Ief805410b3f7035e012e229e77f92d5832430f58
Reviewed-on: https://gerrit.libreoffice.org/11916
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/ElementsDockingWindow.cxx | 2 | ||||
-rw-r--r-- | starmath/source/dialog.cxx | 2 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 4 | ||||
-rw-r--r-- | starmath/source/toolbox.cxx | 4 | ||||
-rw-r--r-- | starmath/source/view.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx index 059a1d1c00c7..9ea3b2cebfb7 100644 --- a/starmath/source/ElementsDockingWindow.cxx +++ b/starmath/source/ElementsDockingWindow.cxx @@ -669,7 +669,7 @@ IMPL_LINK( SmElementsDockingWindow, SelectClickHdl, SmElement*, pElement) if (pViewSh) { pViewSh->GetViewFrame()->GetDispatcher()->Execute( - SID_INSERTCOMMANDTEXT, SFX_CALLMODE_STANDARD, + SID_INSERTCOMMANDTEXT, SfxCallMode::RECORD, new SfxStringItem(SID_INSERTCOMMANDTEXT, pElement->getText()), 0L); } return 0; diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index e731fb6bc6d0..272405ba5164 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1439,7 +1439,7 @@ IMPL_LINK_NOARG( SmSymbolDialog, GetClickHdl ) aText.append('%').append(pSym->GetName()).append(' '); rViewSh.GetViewFrame()->GetDispatcher()->Execute( - SID_INSERTSYMBOL, SFX_CALLMODE_STANDARD, + SID_INSERTSYMBOL, SfxCallMode::RECORD, new SfxStringItem(SID_INSERTSYMBOL, aText.makeStringAndClear()), 0L); } diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 9ab5776e9810..f7a751a7b743 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -397,7 +397,7 @@ IMPL_LINK_INLINE_START( SmEditWindow, MenuSelectHdl, Menu *, pMenu ) SmViewShell *pViewSh = rCmdBox.GetView(); if (pViewSh) pViewSh->GetViewFrame()->GetDispatcher()->Execute( - SID_INSERTCOMMAND, SFX_CALLMODE_STANDARD, + SID_INSERTCOMMAND, SfxCallMode::RECORD, new SfxInt16Item(SID_INSERTCOMMAND, pMenu->GetCurItemId()), 0L); return 0; } @@ -1078,7 +1078,7 @@ void SmEditWindow::Flush() if (pViewSh) { pViewSh->GetViewFrame()->GetDispatcher()->Execute( - SID_TEXT, SFX_CALLMODE_STANDARD, + SID_TEXT, SfxCallMode::RECORD, new SfxStringItem(SID_TEXT, GetText()), 0L); } } diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx index 04a93553be68..7b64e3c09516 100644 --- a/starmath/source/toolbox.cxx +++ b/starmath/source/toolbox.cxx @@ -240,7 +240,7 @@ bool SmToolBoxWindow::Close() SmViewShell *pViewSh = GetView(); if (pViewSh) pViewSh->GetViewFrame()->GetDispatcher()->Execute( - SID_TOOLBOX, SFX_CALLMODE_STANDARD, + SID_TOOLBOX, SfxCallMode::RECORD, new SfxBoolItem(SID_TOOLBOX, false), 0L); return true; } @@ -334,7 +334,7 @@ IMPL_LINK( SmToolBoxWindow, CmdSelectHdl, ToolBox*, pToolBox) SmViewShell *pViewSh = GetView(); if (pViewSh) pViewSh->GetViewFrame()->GetDispatcher()->Execute( - SID_INSERTCOMMAND, SFX_CALLMODE_STANDARD, + SID_INSERTCOMMAND, SfxCallMode::RECORD, new SfxInt16Item(SID_INSERTCOMMAND, pToolBox->GetCurItemId()), 0L); return 0; } diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index f9c77ca2b4ca..075941d4d670 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -1603,7 +1603,7 @@ void SmViewShell::Execute(SfxRequest& rReq) if (pWin->IsAllSelected()) { GetViewFrame()->GetDispatcher()->Execute( - SID_COPYOBJECT, SFX_CALLMODE_STANDARD, + SID_COPYOBJECT, SfxCallMode::RECORD, new SfxVoidItem(SID_COPYOBJECT), 0L); } else @@ -1629,7 +1629,7 @@ void SmViewShell::Execute(SfxRequest& rReq) if( bCallExec ) { GetViewFrame()->GetDispatcher()->Execute( - SID_PASTEOBJECT, SFX_CALLMODE_STANDARD, + SID_PASTEOBJECT, SfxCallMode::RECORD, new SfxVoidItem(SID_PASTEOBJECT), 0L); } } |