From a0a287f566e548177847bdb69cba230089b44e54 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Wed, 1 Nov 2017 12:53:03 +0900 Subject: TSCP: read/write recently used in advanced classification dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This implements the reading and writing of the recently used content in the advanced classification dialog. The recently used content is stored to a xml file in the user profile folder under "classification" folder - filename "recentlyUsed.xml". The content is just a reflection of the resulting ClassificationResult vector in a simple xml form. Change-Id: If148ae123a6c826874b86dc1f374cdaab6e8fea9 Reviewed-on: https://gerrit.libreoffice.org/44150 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl --- include/svx/ClassificationDialog.hxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/svx') diff --git a/include/svx/ClassificationDialog.hxx b/include/svx/ClassificationDialog.hxx index 19e869a5f74d..a7825fef4a53 100644 --- a/include/svx/ClassificationDialog.hxx +++ b/include/svx/ClassificationDialog.hxx @@ -51,10 +51,19 @@ private: void insertField(ClassificationType eType, OUString const & rString, OUString const & rFullString); + std::vector> m_aRecentlyUsedValuesCollection; + std::vector m_aInitialValues; + + void readIn(std::vector const & rInput); + void readRecentlyUsed(); + void writeRecentlyUsed(); + public: ClassificationDialog(vcl::Window* pParent, bool bPerParagraph, const std::function& rParagraphSignHandler = [](){}); - virtual ~ClassificationDialog() override; - virtual void dispose() override; + ~ClassificationDialog() override; + + void dispose() override; + short Execute() override; std::vector getResult(); void setupValues(std::vector const & rInput); -- cgit