diff options
author | Skyler Grey <skyler.grey@collabora.com> | 2023-10-20 09:02:57 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-10-27 08:07:21 +0200 |
commit | 4bb1a7836abb49a9b0513958239f3998305201fd (patch) | |
tree | 5966014878733f6cc724b03c14b1635e51d2c4c9 /sw/source/uibase/wrtsh | |
parent | 8ad82fc115a337604c064d37adfffcc81440248e (diff) |
Add flags to STYLEREF
This commit is part of an implementation for the following STYLEREF flags
- Search from bottom to top, which sets the STYLEREF field to search
downwards first, or from the bottom of the page in marginals
- Hide non numerical, which hides all characters that are not either
numbers or punctuation commonly used as delimiters. For example, if
your STYLEREF said "Chapter 2.1", this setting would make it say "2.1"
This commit implements:
- The document model
- The layout
- The UI
Change-Id: I7d8f455ffe90cface4f3b1acf6b9bef6a045ed19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158349
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r-- | sw/source/uibase/wrtsh/move.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/wrtsh/wrtsh2.cxx | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/uibase/wrtsh/move.cxx b/sw/source/uibase/wrtsh/move.cxx index c50740354928..cda2b32112ce 100644 --- a/sw/source/uibase/wrtsh/move.cxx +++ b/sw/source/uibase/wrtsh/move.cxx @@ -708,10 +708,10 @@ bool SwWrtShell::GotoRegion( std::u16string_view rName ) } bool SwWrtShell::GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType, - sal_uInt16 nSeqNo ) + sal_uInt16 nSeqNo, sal_uInt16 nFlags ) { SwPosition aPos = *GetCursor()->GetPoint(); - bool bRet = SwCursorShell::GotoRefMark(rRefMark, nSubType, nSeqNo); + bool bRet = SwCursorShell::GotoRefMark(rRefMark, nSubType, nSeqNo, nFlags); if (bRet) m_aNavigationMgr.addEntry(aPos); return bRet; diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx b/sw/source/uibase/wrtsh/wrtsh2.cxx index f4881304f95c..3bf614370b97 100644 --- a/sw/source/uibase/wrtsh/wrtsh2.cxx +++ b/sw/source/uibase/wrtsh/wrtsh2.cxx @@ -475,7 +475,8 @@ void SwWrtShell::ClickToField(const SwField& rField, bool bExecHyperlinks) StartAllAction(); SwCursorShell::GotoRefMark( static_cast<const SwGetRefField&>(rField).GetSetRefName(), static_cast<const SwGetRefField&>(rField).GetSubType(), - static_cast<const SwGetRefField&>(rField).GetSeqNo() ); + static_cast<const SwGetRefField&>(rField).GetSeqNo(), + static_cast<const SwGetRefField&>(rField).GetFlags() ); EndAllAction(); break; |