diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-10-24 16:07:05 +0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-10-28 15:52:07 +0200 |
commit | b480d5e4c03438487b645ae10347c5c22f36bb25 (patch) | |
tree | f2f71844ff7a8d0f66d076e3165d3015c474e642 /include/sfx2/classificationhelper.hxx | |
parent | 7a2e7c32d38db02aaa5d78d5e8aaf86cabfde586 (diff) |
TSCP: bump the doc classification if lower than paragraph
The document classification should not be lower than
the highest-classificed paragraph. This insures that
the document classification is as high as the highest
classified paragraph upon saving.
Change-Id: Ic838b886ecf97da2eca56870f68aa3e51c7291f6
Reviewed-on: https://gerrit.libreoffice.org/43772
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'include/sfx2/classificationhelper.hxx')
-rw-r--r-- | include/sfx2/classificationhelper.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index 036951fa0ab1..2672c51c167e 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -64,11 +64,13 @@ public: /// Return all possible valid category names, based on the policy. std::vector<OUString> GetBACNames(); /// Get the currently selected category abbreviation for eType. Returns full name if no abbreviation defined. - const OUString& GetAbbreviatedBACName(SfxClassificationPolicyType eType); + const OUString& GetAbbreviatedBACName(const OUString& sFullName); /// Return all possible valid abbreviated category names, based on the policy. std::vector<OUString> GetAbbreviatedBACNames(); /// Setting this sets all the other properties, based on the policy. void SetBACName(const OUString& rName, SfxClassificationPolicyType eType); + /// Returns the class with the higher priority (based on sensitivity). + OUString GetHigherClass(const OUString& first, const OUString& second); /// If GetImpactScale() and GetImpactLevel*() will return something meaningful. bool HasImpactLevel(); InfoBarType GetImpactLevelType(); |