summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells/txtattr.cxx
diff options
context:
space:
mode:
authorArmin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de>2024-02-18 19:17:48 +0100
committerArmin Le Grand <Armin.Le.Grand@me.com>2024-02-18 21:37:52 +0100
commitcebbd5795d6256fb346ac8d70c15daceca48c554 (patch)
tree40e5c20c2728c67a64f1156b1ca6099e4d16a081 /sw/source/uibase/shells/txtattr.cxx
parentd367142731f09c7be03ce1707e3aeab3c55b4f21 (diff)
ITEM: Rename for more control over SlotID usages
Change-Id: I51585f1c15984a066262023184f668662853d20f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163556 Tested-by: Jenkins Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'sw/source/uibase/shells/txtattr.cxx')
-rw-r--r--sw/source/uibase/shells/txtattr.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx
index d53f498e1e2c..1fee6fde1987 100644
--- a/sw/source/uibase/shells/txtattr.cxx
+++ b/sw/source/uibase/shells/txtattr.cxx
@@ -213,7 +213,7 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq)
pColl = nullptr;
}
SfxItemPool& rPool = GetPool();
- sal_uInt16 nWhich = rPool.GetWhich( nSlot );
+ sal_uInt16 nWhich = rPool.GetWhichIDFromSlotID( nSlot );
switch (nSlot)
{
case FN_TXTATR_INET:
@@ -346,15 +346,15 @@ void SwTextShell::ExecParaAttr(SfxRequest &rReq)
SET_ADJUST:
{
aSet.Put(SvxAdjustItem(eAdjst,RES_PARATR_ADJUST));
- rReq.AppendItem( SfxBoolItem( GetPool().GetWhich(nSlot), true ) );
+ rReq.AppendItem( SfxBoolItem( GetPool().GetWhichIDFromSlotID(nSlot), true ) );
}
break;
case SID_ATTR_PARA_LINESPACE:
- if(pArgs && SfxItemState::SET == pArgs->GetItemState( GetPool().GetWhich(nSlot) ))
+ if(pArgs && SfxItemState::SET == pArgs->GetItemState( GetPool().GetWhichIDFromSlotID(nSlot) ))
{
SvxLineSpacingItem aLineSpace = static_cast<const SvxLineSpacingItem&>( pArgs->Get(
- GetPool().GetWhich(nSlot)));
+ GetPool().GetWhichIDFromSlotID(nSlot)));
aSet.Put( aLineSpace );
}
break;
@@ -457,7 +457,7 @@ void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq)
sal_uInt16 nSlot = rReq.GetSlot();
if(pArgs)
- pArgs->GetItemState(GetPool().GetWhich(nSlot), false, &pItem);
+ pArgs->GetItemState(GetPool().GetWhichIDFromSlotID(nSlot), false, &pItem);
switch ( nSlot )
{
case FN_DROP_CHAR_STYLE_NAME:
@@ -803,7 +803,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet)
case SID_ATTR_CHAR_KERNING:
case RES_PARATR_DROP:
{
- rSet.Put(aCoreSet.Get( GetPool().GetWhich(nSlot)));
+ rSet.Put(aCoreSet.Get( GetPool().GetWhichIDFromSlotID(nSlot)));
nSlot = 0;
}
break;