diff options
-rw-r--r-- | include/sfx2/classificationhelper.hxx | 1 | ||||
-rw-r--r-- | sfx2/source/view/classificationhelper.cxx | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/sfx2/classificationhelper.hxx b/include/sfx2/classificationhelper.hxx index c62ffac7bfc9..613d35e8d1ff 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 9270c4616421..d062eacdc537 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: */ |