diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-10 08:58:00 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-10 14:31:54 +0100 |
commit | e75f6e549eb825c310d16d11babf0fba5ee7fd7a (patch) | |
tree | 288931d9af316722f730b9909e2d9cda37da2625 /include | |
parent | b84f5a0efa4a24a3e8074bc27fb21529b9c4d3a6 (diff) |
sfx2: make SfxClassificationHelper not require a full doc shell
So that input filters can build their own doc properties and can also
use CheckPaste() without having the full original document around.
Change-Id: I0b8a63702f73ce04e8728a360b56ab9d1ca67af1
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/classificationhelper.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index 5a58fccd6afa..9ce8933d9449 100644 --- a/include/sfx2/classificationhelper.hxx +++ b/include/sfx2/classificationhelper.hxx @@ -13,6 +13,8 @@ #include <memory> #include <vector> +#include <com/sun/star/document/XDocumentProperties.hpp> + #include <rtl/ustring.hxx> #include <sfx2/dllapi.h> @@ -39,11 +41,12 @@ 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); + static bool IsClassified(const css::uno::Reference<css::document::XDocumentProperties>& xDocumentProperties); + /// Checks if pasting from xSource to xDestination would leak information. + static SfxClassificationCheckPasteResult CheckPaste(const css::uno::Reference<css::document::XDocumentProperties>& xSource, + const css::uno::Reference<css::document::XDocumentProperties>& xDestination); - SfxClassificationHelper(SfxObjectShell& rObjectShell); + SfxClassificationHelper(const css::uno::Reference<css::document::XDocumentProperties>& xDocumentProperties); ~SfxClassificationHelper(); const OUString& GetBACName(); /// Return all possible valid category names, based on the policy. |