diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-11-16 18:44:42 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-11-17 05:10:59 +0100 |
commit | 9da4b3ee827e83b816514e4eb071e5322cb5ad01 (patch) | |
tree | 30e09e1a6db8cc240094f049081f7b3027def076 /svx | |
parent | 195bd0f8ca8451eb340beafa4072f37782509d33 (diff) |
TSCP: also store the identifier into the recently used XML
Change-Id: I19ccfb8f5118d73535d0e94bf32818d82670d093
Reviewed-on: https://gerrit.libreoffice.org/44847
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/ClassificationDialog.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/svx/source/dialog/ClassificationDialog.cxx b/svx/source/dialog/ClassificationDialog.cxx index f8cebe090042..f7c3edf068cf 100644 --- a/svx/source/dialog/ClassificationDialog.cxx +++ b/svx/source/dialog/ClassificationDialog.cxx @@ -154,6 +154,9 @@ void writeResultToXml(tools::XmlWriter & rXmlWriter, rXmlWriter.startElement("abbreviatedString"); rXmlWriter.content(rResult.msAbbreviatedName); rXmlWriter.endElement(); + rXmlWriter.startElement("identifier"); + rXmlWriter.content(rResult.msIdentifier); + rXmlWriter.endElement(); rXmlWriter.endElement(); } } @@ -333,6 +336,7 @@ void ClassificationDialog::readRecentlyUsed() svx::ClassificationType eType = svx::ClassificationType::TEXT; OUString sString; OUString sAbbreviatedString; + OUString sIdentifier; // Convert string to classification type, but continue only if // conversion was successful. @@ -350,11 +354,15 @@ void ClassificationDialog::readRecentlyUsed() { sAbbreviatedString = OStringToOUString(aWalker.content(), RTL_TEXTENCODING_UTF8); } + else if (aWalker.name() == "identifier") + { + sIdentifier = OStringToOUString(aWalker.content(), RTL_TEXTENCODING_UTF8); + } aWalker.next(); } aWalker.parent(); - aResults.push_back({ eType, sString, sAbbreviatedString, OUString() }); + aResults.push_back({ eType, sString, sAbbreviatedString, sIdentifier }); } } aWalker.next(); |