diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-01-31 16:19:21 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-31 17:23:19 +0100 |
commit | 04405edc3fac32938b8940bc767656ea6c7820f9 (patch) | |
tree | 3c3f081bcc10f5b597cdf28defb65de7365822b2 /sw/source/ui/config/optpage.cxx | |
parent | 0a6ec034dc8088d9de399142bb193ae7d338e645 (diff) |
tdf#45589 offapi,officecfg,sw: add option to toggle bookmark display
Create specific option to toggle display of the bookmark positions
instead of relying on generic IsViewMetaChars().
Add a Bookmarks checkbox to Writer->Formatting Aids page in Options.
Add property ShowBookmarks to com::sun::star::text::ViewSettings.
Add config setting:
org/openoffice/Office/Writer/Content/NonprintingCharacter/Bookmarks
Change-Id: I998ecdc16d8e4a5baeeb1bbcff0bf5f1f5636692
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87774
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/source/ui/config/optpage.cxx')
-rw-r--r-- | sw/source/ui/config/optpage.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index 0ab4db5e5607..fd5f04d57321 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -1191,6 +1191,7 @@ SwShdwCursorOptionsTabPage::SwShdwCursorOptionsTabPage(weld::Container* pPage, w , m_xTabCB(m_xBuilder->weld_check_button("tabs")) , m_xBreakCB(m_xBuilder->weld_check_button("break")) , m_xCharHiddenCB(m_xBuilder->weld_check_button("hiddentext")) + , m_xBookmarkCB(m_xBuilder->weld_check_button("bookmarks")) , m_xDirectCursorFrame(m_xBuilder->weld_frame("directcrsrframe")) , m_xOnOffCB(m_xBuilder->weld_check_button("cursoronoff")) , m_xDirectCursorFillMode(m_xBuilder->weld_combo_box("cxDirectCursorFillMode")) @@ -1217,6 +1218,7 @@ SwShdwCursorOptionsTabPage::SwShdwCursorOptionsTabPage(weld::Container* pPage, w m_xTabCB->hide(); m_xCharHiddenCB->hide(); + m_xBookmarkCB->hide(); m_xDirectCursorFrame->hide(); m_xOnOffCB->hide(); @@ -1282,6 +1284,7 @@ bool SwShdwCursorOptionsTabPage::FillItemSet( SfxItemSet* rSet ) aDisp.bNonbreakingSpace = m_xHSpacesCB->get_active(); aDisp.bSoftHyphen = m_xSHyphCB->get_active(); aDisp.bCharHiddenText = m_xCharHiddenCB->get_active(); + aDisp.bBookmarks = m_xBookmarkCB->get_active(); aDisp.bManualBreak = m_xBreakCB->get_active(); bRet |= (!pOldAttr || aDisp != *pOldAttr); @@ -1329,6 +1332,7 @@ void SwShdwCursorOptionsTabPage::Reset( const SfxItemSet* rSet ) m_xHSpacesCB->set_active( pDocDisplayAttr->bNonbreakingSpace ); m_xSHyphCB->set_active( pDocDisplayAttr->bSoftHyphen ); m_xCharHiddenCB->set_active( pDocDisplayAttr->bCharHiddenText ); + m_xBookmarkCB->set_active(pDocDisplayAttr->bBookmarks); m_xBreakCB->set_active( pDocDisplayAttr->bManualBreak ); } } |