diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-09 16:20:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-02-10 11:48:22 +0100 |
commit | a6eddceda5d376cd73922123a3bb3a5683307c41 (patch) | |
tree | 09a3f37e9a89f8e9a06c263600eb2e8272e5d273 /include | |
parent | c1c9071dd5f578c5773abc00553d2099cad30ced (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 'include')
-rw-r--r-- | include/sfx2/request.hxx | 13 | ||||
-rw-r--r-- | include/sfx2/sfxsids.hrc | 3 |
2 files changed, 11 insertions, 5 deletions
diff --git a/include/sfx2/request.hxx b/include/sfx2/request.hxx index e6411d2d3ec1..5a97cb9e61b8 100644 --- a/include/sfx2/request.hxx +++ b/include/sfx2/request.hxx @@ -83,10 +83,15 @@ public: */ template<class T> const T* GetArg(sal_uInt16 nSlotId) const { - if (pArgs) - return pArgs->GetItem<T>(nSlotId, false); - - return nullptr; + if (!pArgs) + return nullptr; + return pArgs->GetItem<T>(nSlotId, false); + } + template<class T> const T* GetArg(TypedWhichId<T> nSlotId) const + { + if (!pArgs) + return nullptr; + return pArgs->GetItem(nSlotId, false); } void ReleaseArgs(); diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc index 9b36e9c47e4b..a89fbee4c51b 100644 --- a/include/sfx2/sfxsids.hrc +++ b/include/sfx2/sfxsids.hrc @@ -287,7 +287,7 @@ class SvxZoomItem; #define SID_LOCK_EDITDOC TypedWhichId<SfxBoolItem>(SID_SFX_START + 1738) #define SID_REPLACEABLE TypedWhichId<SfxBoolItem>(SID_SFX_START + 1739) #define SID_ADDITIONS_DIALOG (SID_SFX_START + 1740) -#define SID_ADDITIONS_TAG (SID_SFX_START + 1741) +#define FN_PARAM_ADDITIONS_TAG TypedWhichId<SfxStringItem>(SID_SFX_START + 1741) #define SID_TOOLBAR_MODE_UI (SID_SFX_START + 1742) #define SID_TOOLBAR_LOCK (SID_SFX_START + 1743) @@ -416,6 +416,7 @@ class SvxZoomItem; // id for thesaurus entry in context menu #define SID_THES (SID_SFX_START + 698) +#define FN_PARAM_THES_WORD_REPLACE TypedWhichId<SfxStringItem>(SID_SFX_START + 699) // default-ids for editing, cursor travelling and selection #define SID_REDO (SID_SFX_START + 700) |