summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-02-09 16:20:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-02-10 11:48:22 +0100
commita6eddceda5d376cd73922123a3bb3a5683307c41 (patch)
tree09a3f37e9a89f8e9a06c263600eb2e8272e5d273 /sc
parentc1c9071dd5f578c5773abc00553d2099cad30ced (diff)
rename some SID to FN_PARAM
because they are not slots, they are only being used as parameters Change-Id: I539f4832b884d1ea7dc14ce4ef6c79feec6681cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129732 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/drtxtob.cxx4
-rw-r--r--sc/source/ui/view/editsh.cxx4
-rw-r--r--sc/source/ui/view/tabvwshb.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx
index e3ec1fabd97b..065f08bdcdbd 100644
--- a/sc/source/ui/drawfunc/drtxtob.cxx
+++ b/sc/source/ui/drawfunc/drtxtob.cxx
@@ -342,7 +342,7 @@ void ScDrawTextObjectBar::Execute( SfxRequest &rReq )
case SID_THES:
{
OUString aReplaceText;
- const SfxStringItem* pItem2 = rReq.GetArg<SfxStringItem>(SID_THES);
+ const SfxStringItem* pItem2 = rReq.GetArg(FN_PARAM_THES_WORD_REPLACE);
if (pItem2)
aReplaceText = pItem2->GetValue();
if (!aReplaceText.isEmpty())
@@ -454,7 +454,7 @@ void ScDrawTextObjectBar::GetState( SfxItemSet& rSet )
EditView& rEditView = pOutView->GetEditView();
bIsLookUpWord = GetStatusValueForThesaurusFromContext( aStatusVal, nLang, rEditView );
}
- rSet.Put( SfxStringItem( SID_THES, aStatusVal ) );
+ rSet.Put( SfxStringItem( FN_PARAM_THES_WORD_REPLACE, aStatusVal ) );
// disable thesaurus main menu and context menu entry if there is nothing to look up
bool bCanDoThesaurus = ScModule::HasThesaurusLanguage( nLang );
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index 30df7ebea5c0..14f21eb2190a 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -197,7 +197,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
case SID_THES:
{
OUString aReplaceText;
- const SfxStringItem* pItem2 = rReq.GetArg<SfxStringItem>(SID_THES);
+ const SfxStringItem* pItem2 = rReq.GetArg(FN_PARAM_THES_WORD_REPLACE);
if (pItem2)
aReplaceText = pItem2->GetValue();
if (!aReplaceText.isEmpty())
@@ -819,7 +819,7 @@ void ScEditShell::GetState( SfxItemSet& rSet )
LanguageType nLang = LANGUAGE_NONE;
bool bIsLookUpWord = pActiveView &&
GetStatusValueForThesaurusFromContext(aStatusVal, nLang, *pActiveView);
- rSet.Put( SfxStringItem( SID_THES, aStatusVal ) );
+ rSet.Put( SfxStringItem( FN_PARAM_THES_WORD_REPLACE, aStatusVal ) );
// disable thesaurus context menu entry if there is nothing to look up
bool bCanDoThesaurus = ScModule::HasThesaurusLanguage( nLang );
diff --git a/sc/source/ui/view/tabvwshb.cxx b/sc/source/ui/view/tabvwshb.cxx
index f2ae3b56a55e..c7265cab1e3b 100644
--- a/sc/source/ui/view/tabvwshb.cxx
+++ b/sc/source/ui/view/tabvwshb.cxx
@@ -433,7 +433,7 @@ void ScTabViewShell::ExecDrawIns(SfxRequest& rReq)
{
OUString sAdditionsTag = "";
- const SfxStringItem* pStringArg = rReq.GetArg<SfxStringItem>(SID_ADDITIONS_TAG);
+ const SfxStringItem* pStringArg = rReq.GetArg<SfxStringItem>(FN_PARAM_ADDITIONS_TAG);
if (pStringArg)
sAdditionsTag = pStringArg->GetValue();