From 5fd90dcf5b12af4bf8ca21866b23209aa4d3d531 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 16 Nov 2017 18:32:14 +0900 Subject: TSCP: resolve identifier to name, abbr. name is for category only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In paragraph classification we store only the identifier and not the name, but for the ClassificationDialog we use the name as an identifier, so we need to resovle the identifier to the name when reading in the input classification results. It might make sense to switch to identifiers in the dialog also as they are language independent. Abbreviated name is only for the classification category and has no effect for other classefication elementslike markers and IP parts, so always fill them with the full name directly. Change-Id: I23bd0e8e92b16807a5b4d3162e503b799aa40718 Reviewed-on: https://gerrit.libreoffice.org/44845 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/sfx2/classificationhelper.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index f535cf4adae9..a2699623c4be 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -67,6 +67,8 @@ public: std::vector GetBACIdentifiers(); /// Get the currently selected category abbreviation for eType. Returns full name if no abbreviation defined. const OUString& GetAbbreviatedBACName(const OUString& sFullName); + /// Get the currently selected category for the identifier. + OUString GetBACNameForIdentifier(const OUString& sIdentifier); /// Return all possible valid abbreviated category names, based on the policy. std::vector GetAbbreviatedBACNames(); /// Setting this sets all the other properties, based on the policy. -- cgit