diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-11-01 12:53:03 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2017-11-02 07:29:28 +0100 |
commit | a0a287f566e548177847bdb69cba230089b44e54 (patch) | |
tree | d38bce991de8dc1a13000862e37eff5382a36e5f /include/svx | |
parent | da5be4f3d78e2665a1d3c7443f24adecbb0940cf (diff) |
TSCP: read/write recently used in advanced classification dialog
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 <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/ClassificationDialog.hxx | 13 |
1 files changed, 11 insertions, 2 deletions
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<std::vector<ClassificationResult>> m_aRecentlyUsedValuesCollection; + std::vector<ClassificationResult> m_aInitialValues; + + void readIn(std::vector<ClassificationResult> const & rInput); + void readRecentlyUsed(); + void writeRecentlyUsed(); + public: ClassificationDialog(vcl::Window* pParent, bool bPerParagraph, const std::function<void()>& rParagraphSignHandler = [](){}); - virtual ~ClassificationDialog() override; - virtual void dispose() override; + ~ClassificationDialog() override; + + void dispose() override; + short Execute() override; std::vector<ClassificationResult> getResult(); void setupValues(std::vector<ClassificationResult> const & rInput); |