diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-21 15:04:19 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-04-29 12:05:40 +0200 |
commit | 1f4a2b698cb5bb987cad5bc2a5503e23dd8a7b9c (patch) | |
tree | 8a25d489e00692b874f61063db742f911741595d /sfx2/source/view | |
parent | 768882d4e9b955ee1b79ad39cb4232789d0d5ee9 (diff) |
[API CHANGE] uitest: make HasInfoBarWithID accessible from API
This is useful for checking in uitests whether the infobar exists
Change-Id: I436c2659abd40756673634f7cd1f8e4846c03836
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92635
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/sfxbasecontroller.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx index 1ad856065b8e..9baebe0be2ff 100644 --- a/sfx2/source/view/sfxbasecontroller.cxx +++ b/sfx2/source/view/sfxbasecontroller.cxx @@ -1535,4 +1535,11 @@ void SAL_CALL SfxBaseController::removeInfobar(const OUString& sId) pViewFrame->RemoveInfoBar(sId); } +sal_Bool SAL_CALL SfxBaseController::hasInfobar(const OUString& sId) +{ + SolarMutexGuard aGuard; + SfxViewFrame* pViewFrame = m_pData->m_pViewShell->GetFrame(); + return pViewFrame->HasInfoBarWithID(sId); +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |