svx/source/dialog/ClassificationDialog.cxx | 17 ----------------- 1 file changed, 17 deletions(-)
New commits: commit 7d469172132ba5a1d11eb1200e996019ce645f0c Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Fri Nov 17 18:38:49 2017 +0900 TSCP: allow to add multiple markings in the document Change-Id: Iae8fd98b678acdd3667eeb35b110b4e405c1167b Reviewed-on: https://gerrit.libreoffice.org/44878 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index fa4ef3e03084..4484d765d0bf 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -630,23 +630,6 @@ IMPL_LINK(ClassificationDialog, SelectMarkingHdl, ListBox&, rBox, void) sal_Int32 nSelected = rBox.GetSelectedEntryPos(); if (nSelected >= 0) { - std::unique_ptr<EditTextObject> pEditText(m_pEditWindow->pEdEngine->CreateTextObject()); - std::vector<editeng::Section> aSections; - pEditText->GetAllSections(aSections); - - for (editeng::Section const & rSection : aSections) - { - const SvxFieldItem* pFieldItem = findField(rSection); - if (pFieldItem) - { - const ClassificationField* pClassificationField = dynamic_cast<const ClassificationField*>(pFieldItem->GetField()); - if (pClassificationField && pClassificationField->meType == ClassificationType::MARKING) - { - m_pEditWindow->pEdView->SetSelection(ESelection(rSection.mnParagraph, rSection.mnStart, rSection.mnParagraph, rSection.mnEnd)); - } - } - } - const OUString aString = maHelper.GetMarkings()[nSelected]; insertField(ClassificationType::MARKING, aString, aString); }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits