diff options
author | Heiko Tietze <tietze.heiko@gmail.com> | 2024-10-30 14:58:37 +0100 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2024-10-30 17:34:33 +0100 |
commit | 1de5fc4671f789d1a9d0b5679a52349b9913a2f4 (patch) | |
tree | ffe33657d81d3ba108d9c766e0a7f141fdc1de9d /sw/source/uibase/config | |
parent | f9e2bc8d84fe729d7a501dc3acc6325e246f0b7d (diff) |
Resolves tdf#74386 - Make Text Boundaries independent from non-printable chars
New option introduced under Formatting Aids to switch between full
and crop marks, which was done before via NPC
Change-Id: I920f68b571da740e47ae367ba1e8d28e03a131e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175828
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sw/source/uibase/config')
-rw-r--r-- | sw/source/uibase/config/cfgitems.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/config/cfgitems.cxx b/sw/source/uibase/config/cfgitems.cxx index a041169dbba4..27a3690f9b99 100644 --- a/sw/source/uibase/config/cfgitems.cxx +++ b/sw/source/uibase/config/cfgitems.cxx @@ -34,6 +34,7 @@ SwDocDisplayItem::SwDocDisplayItem() : m_bCharHiddenText = m_bBookmarks = m_bManualBreak = true; + m_bTextBoundariesFull = true; m_xDefaultAnchor = 1; //FLY_TO_CHAR }; @@ -49,6 +50,7 @@ SwDocDisplayItem::SwDocDisplayItem(const SwViewOption& rVOpt ) : m_bCharHiddenText = rVOpt.IsShowHiddenChar(true); m_bBookmarks = rVOpt.IsShowBookmarks(true); m_bManualBreak = rVOpt.IsLineBreak(true); + m_bTextBoundariesFull = rVOpt.IsTextBoundariesFull(); m_xDefaultAnchor = rVOpt.GetDefaultAnchor(); } @@ -71,6 +73,7 @@ bool SwDocDisplayItem::operator==( const SfxPoolItem& rAttr ) const m_bCharHiddenText == rItem.m_bCharHiddenText && m_bBookmarks == rItem.m_bBookmarks && m_bManualBreak == rItem.m_bManualBreak && + m_bTextBoundariesFull == rItem.m_bTextBoundariesFull && m_xDefaultAnchor == rItem.m_xDefaultAnchor); } @@ -84,6 +87,7 @@ void SwDocDisplayItem::FillViewOptions( SwViewOption& rVOpt) const rVOpt.SetShowHiddenChar(m_bCharHiddenText ); rVOpt.SetShowBookmarks(m_bBookmarks ); rVOpt.SetLineBreak (m_bManualBreak ); + rVOpt.SetTextBoundariesFull(m_bTextBoundariesFull); rVOpt.SetDefaultAnchor( m_xDefaultAnchor ); } |