From 740a72e66ddf3efd4028d8268239f9a50f759499 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 8 Mar 2016 14:29:15 +0100 Subject: 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 --- include/sfx2/classificationhelper.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') 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 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(); -- cgit