diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 09:14:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-02-17 10:04:54 +0100 |
commit | 823e8d658759ba5ea3c63b20dbe9ffd79f2f5c23 (patch) | |
tree | 66e1bfb0ace45bac71ade7d3b0c4d1a97b70a30a /sfx2 | |
parent | 89b928d43a5db1ad3bf761cdb24013c6bcf32e8b (diff) |
sfx2: add initial classification infobar
Change-Id: Idd4b886e246cb41d3a3b871eeb368c0620b110ae
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 5eb776a3378e..55b525d0b8e3 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -21,6 +21,7 @@ #include <osl/file.hxx> #include <sfx2/infobar.hxx> #include <sfx2/viewfrm.hxx> +#include <sfx2/classificationhelper.hxx> #include <com/sun/star/document/MacroExecMode.hpp> #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/DispatchRecorder.hpp> @@ -1343,6 +1344,16 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) } } + if (SfxClassificationHelper::IsClassified(*xObjSh.get())) + { + // Document has BAILS properties, display an infobar accordingly. + SfxClassificationHelper aHelper(*xObjSh.get()); + OUString aBACName = aHelper.GetBACName(); + OUString aImpactLevel = aHelper.GetImpactLevel(); + if (!aBACName.isEmpty() && !aImpactLevel.isEmpty()) + AppendInfoBar("classification", aBACName); + } + break; } |