diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2024-01-27 15:04:06 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2024-01-27 19:02:54 +0100 |
commit | 4790ef5cb574650c418591566eeb0babc69db59e (patch) | |
tree | bdca4156b1da8bb3efc06cebcee77fa541866ca7 /sw/source/uibase/shells/txtattr.cxx | |
parent | d2d8f8bf82558d9aa548fb9f13bed410e0baf79b (diff) |
ITEM: Cleanup some Pool stuff with Defaults
Sorted out some methods at ItemPool which process
Defaults to make more clear what is going on and
what which method is doing.
Change-Id: I2568d3e03d0a56a14b6fe4e04521e1a8e22c000b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162643
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.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/shells/txtattr.cxx b/sw/source/uibase/shells/txtattr.cxx index 68f4197f5437..d53f498e1e2c 100644 --- a/sw/source/uibase/shells/txtattr.cxx +++ b/sw/source/uibase/shells/txtattr.cxx @@ -552,7 +552,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet) SfxItemState eState = aCoreSet.GetItemState(RES_PARATR_ADJUST, false, &pItem); if( SfxItemState::DEFAULT == eState ) - pItem = &rPool.GetDefaultItem(RES_PARATR_ADJUST); + pItem = &rPool.GetUserOrPoolDefaultItem(RES_PARATR_ADJUST); if( SfxItemState::DEFAULT <= eState ) { eAdjust = static_cast<const SvxAdjustItem* >( pItem)->GetAdjust(); @@ -562,14 +562,14 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet) short nEsc = 0; eState = aCoreSet.GetItemState(RES_CHRATR_ESCAPEMENT, false, &pItem); if( SfxItemState::DEFAULT == eState ) - pItem = &rPool.GetDefaultItem(RES_CHRATR_ESCAPEMENT); + pItem = &rPool.GetUserOrPoolDefaultItem(RES_CHRATR_ESCAPEMENT); if( eState >= SfxItemState::DEFAULT ) nEsc = static_cast<const SvxEscapementItem* >(pItem)->GetEsc(); sal_uInt16 nLineSpace = 0; eState = aCoreSet.GetItemState(RES_PARATR_LINESPACING, false, &pItem); if( SfxItemState::DEFAULT == eState ) - pItem = &rPool.GetDefaultItem(RES_PARATR_LINESPACING); + pItem = &rPool.GetUserOrPoolDefaultItem(RES_PARATR_LINESPACING); if( SfxItemState::DEFAULT <= eState && static_cast<const SvxLineSpacingItem* >(pItem)->GetLineSpaceRule() == SvxLineSpaceRule::Auto ) { @@ -583,7 +583,7 @@ void SwTextShell::GetAttrState(SfxItemSet &rSet) SvxCaseMap eCaseMap = SvxCaseMap::NotMapped; eState = aCoreSet.GetItemState(RES_CHRATR_CASEMAP, false, &pItem); if (eState == SfxItemState::DEFAULT) - pItem = &rPool.GetDefaultItem(RES_CHRATR_CASEMAP); + pItem = &rPool.GetUserOrPoolDefaultItem(RES_CHRATR_CASEMAP); if (eState >= SfxItemState::DEFAULT) eCaseMap = static_cast<const SvxCaseMapItem*>(pItem)->GetCaseMap(); |