diff options
-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; } |