[Libreoffice-commits] core.git: include/sfx2 sfx2/source

Miklos Vajna vmiklos at collabora.co.uk
Fri Feb 19 16:01:29 UTC 2016


 include/sfx2/classificationhelper.hxx     |    1 +
 sfx2/source/view/classificationhelper.cxx |    9 +++++++++
 2 files changed, 10 insertions(+)

New commits:
commit 67b14461bfcf4847b83b17535dde9b3efa2ed762
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Fri Feb 19 16:35:23 2016 +0100

    sfx classification: give access to document header/footer and watermark
    
    Change-Id: I07e22f16cfa0229f609e7fc406e98e9f0c843153

diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx
index c62ffac..613d35e 100644
--- a/include/sfx2/classificationhelper.hxx
+++ b/include/sfx2/classificationhelper.hxx
@@ -37,6 +37,7 @@ public:
     /// If GetImpactLevelColor() will return something meaningful.
     bool HasImpactLevel();
     basegfx::BColor GetImpactLevelColor();
+    OUString GetDocumentWatermark();
 };
 
 #endif
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 9270c46..d062eac 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -141,4 +141,13 @@ basegfx::BColor SfxClassificationHelper::GetImpactLevelColor()
     return aRet;
 }
 
+OUString SfxClassificationHelper::GetDocumentWatermark()
+{
+    std::map<OUString, OUString>::iterator it = m_pImpl->m_aLabels.find("urn:bails:IntellectualProperty:Marking:document-watermark");
+    if (it != m_pImpl->m_aLabels.end())
+        return it->second;
+
+    return OUString();
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list