summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-03-09 10:58:25 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-03-09 14:18:28 +0100
commit76e2cede5a415df8d3e7a874f56be7a0b5953e12 (patch)
treee7eafef3b01fad3fd36f1dc97484d9f414102941 /include
parent644ace4143fe2576bfd71c8ab3da9d666d6523bb (diff)
Move copy/paste classification check from sw to sfx2
So that it's easy to unit test it and other apps can use it as well in the future. Change-Id: I38d601924b7fbb17615ff6e9c031a71b40777c4c
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/classificationhelper.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx
index 5c49db700e13..5a58fccd6afa 100644
--- a/include/sfx2/classificationhelper.hxx
+++ b/include/sfx2/classificationhelper.hxx
@@ -23,6 +23,14 @@ namespace basegfx
class BColor;
}
+/// Return code of SfxClassificationHelper::CheckPaste().
+enum class SfxClassificationCheckPasteResult
+{
+ None = 1,
+ TargetDocNotClassified = 2,
+ DocClassificationTooLow = 3
+};
+
/// Shared code to handle Business Authorization Identification and Labeling Scheme (BAILS) properties.
class SFX2_DLLPUBLIC SfxClassificationHelper
{
@@ -32,6 +40,8 @@ class SFX2_DLLPUBLIC SfxClassificationHelper
public:
/// Does the document have any BAILS properties?
static bool IsClassified(SfxObjectShell& rObjectShell);
+ /// Checks if pasting from rSource to rDestination would leak information.
+ static SfxClassificationCheckPasteResult CheckPaste(SfxObjectShell& rSource, SfxObjectShell& rDestination);
SfxClassificationHelper(SfxObjectShell& rObjectShell);
~SfxClassificationHelper();