diff options
author | Jim Raykowski <raykowj@gmail.com> | 2022-02-17 11:01:19 -0900 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2022-02-24 02:35:50 +0100 |
commit | 21b5d6e0dce7c2034aded96d1499da27094e2781 (patch) | |
tree | d3cb8170d6736a4ccfda3d33e9e39ae994e44dfd | |
parent | fa7e58e0bdc1252e164d78e3a35e3210bee70355 (diff) |
SwNavigator: drop unneeded cross reference expanded text
Reduces the time to fill the fields members list for documents with cross
reference fields and corrects the descriptions displayed for cross
reference fields.
Change-Id: I30425640808d0844a96a528341c0bf0382ea75c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130118
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index cea8e84444ea..46394dd0ce24 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -610,34 +610,6 @@ void SwContentType::FillMemberList(bool* pbContentChanged) sText = pField->GetDescription() + u" - " + pField->GetFieldName() + sSubType + sExpandField; } - else if (pField->GetTypeId() == SwFieldTypesEnum::GetRef) - { - OUString sExpandedTextOfReferencedTextNode; - if (const SwGetRefField* pRefField( - dynamic_cast<const SwGetRefField*>(pField)); pRefField) - { - if (pRefField->IsRefToHeadingCrossRefBookmark() || - pRefField->IsRefToNumItemCrossRefBookmark()) - { - sExpandedTextOfReferencedTextNode = u" - " + - pRefField->GetExpandedTextOfReferencedTextNode( - *m_pWrtShell->GetLayout()); - if (sExpandedTextOfReferencedTextNode.getLength() > 80) - { - sExpandedTextOfReferencedTextNode = - OUString::Concat( - sExpandedTextOfReferencedTextNode.subView( - 0, 80)) + u"..."; - } - } - else - { - sExpandedTextOfReferencedTextNode = u" - " + - pRefField->GetSetRefName(); - } - } - sText = pField->GetDescription() + sExpandedTextOfReferencedTextNode; - } auto pCnt(std::make_unique<SwTextFieldContent>(this, sText, pFormatField, pTextField->GetTextNode().GetIndex().get())); if (!pTextField->GetTextNode().getLayoutFrame(m_pWrtShell->GetLayout())) |