summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2017-11-17 18:38:49 +0900
committerTomaž Vajngerl <quikee@gmail.com>2017-11-18 01:16:38 +0100
commit7d469172132ba5a1d11eb1200e996019ce645f0c (patch)
tree4151e7d144a2b2d60d6187bdfa8bbd51f1eec53f /svx/source
parent08404bbb90a8978b70698ef057a4a46ad4fceae3 (diff)
TSCP: allow to add multiple markings in the document
Change-Id: Iae8fd98b678acdd3667eeb35b110b4e405c1167b Reviewed-on: https://gerrit.libreoffice.org/44878 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/dialog/ClassificationDialog.cxx17
1 files changed, 0 insertions, 17 deletions
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);
}