diff options
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/langhelper.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/txtattr.cxx | 8 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index cb96c08527c6..15a225e1997c 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -703,7 +703,7 @@ bool SwTransferable::WriteObject( tools::SvRef<SotTempStream>& xStream, // for the changed pool defaults from drawing layer pool set those // attributes as hard attributes to preserve them for saving const SfxItemPool& rItemPool = pModel->GetItemPool(); - const SvxFontHeightItem& rDefaultFontHeight = rItemPool.GetDefaultItem(EE_CHAR_FONTHEIGHT); + const SvxFontHeightItem& rDefaultFontHeight = rItemPool.GetUserOrPoolDefaultItem(EE_CHAR_FONTHEIGHT); // SW should have no MasterPages OSL_ENSURE(0 == pModel->GetMasterPageCount(), "SW with MasterPages (!)"); diff --git a/sw/source/uibase/shells/langhelper.cxx b/sw/source/uibase/shells/langhelper.cxx index db4c612433ee..f5325f9a68e6 100644 --- a/sw/source/uibase/shells/langhelper.cxx +++ b/sw/source/uibase/shells/langhelper.cxx @@ -377,7 +377,7 @@ namespace SwLangHelper else if (nState == SfxItemState::DEFAULT) { // since the attribute is not set: retrieve the default value - nLang = aSet.GetPool()->GetDefaultItem( nLangWhichId ).GetLanguage(); + nLang = aSet.GetPool()->GetUserOrPoolDefaultItem( nLangWhichId ).GetLanguage(); } else if (nState == SfxItemState::DONTCARE) { diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 1c66f7a5f00f..1716e6183180 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1530,7 +1530,7 @@ void SwTextShell::Execute(SfxRequest &rReq) // Tabulators: Put DefaultTabs into ItemSet const SvxTabStopItem& rDefTabs = - GetPool().GetDefaultItem(RES_PARATR_TABSTOP); + GetPool().GetUserOrPoolDefaultItem(RES_PARATR_TABSTOP); const sal_uInt16 nDefDist = o3tl::narrowing<sal_uInt16>(::GetTabDist( rDefTabs )); SfxUInt16Item aDefDistItem( SID_ATTR_TABSTOP_DEFAULTS, nDefDist ); 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(); |