summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-08 14:29:15 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-08 18:19:12 +0100
commit740a72e66ddf3efd4028d8268239f9a50f759499 (patch)
tree996ff3cf8f54f0fca46101c0ec6690831528bde7 /include
parent1316543eb89a8c30edf547c76852f3e0f8ae848e (diff)
sfx2 classification: expose impact scale and level
This allows application code to prevent copypaste from a more confidential to a less confidential document. Change-Id: I121c7566c948340e7b41d3f8462b0d65a2441b0f
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/classificationhelper.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx
index 5b0070203b69..5c49db700e13 100644
--- a/include/sfx2/classificationhelper.hxx
+++ b/include/sfx2/classificationhelper.hxx
@@ -40,9 +40,13 @@ public:
std::vector<OUString> GetBACNames();
/// Setting this sets all the other properties, based on the policy.
void SetBACName(const OUString& rName);
- /// If GetImpactLevelColor() will return something meaningful.
+ /// If GetImpactScale() and GetImpactLevel*() will return something meaningful.
bool HasImpactLevel();
basegfx::BColor GetImpactLevelColor();
+ /// Larger value means more confidential.
+ sal_Int32 GetImpactLevel();
+ /// Comparing the GetImpactLevel() result is only meaningful when the impact scale is the same.
+ OUString GetImpactScale();
OUString GetDocumentWatermark();
/// The selected category has some content for the document header.
bool HasDocumentHeader();