sd/source/ui/uitest/uiobject.cxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
New commits: commit 9a97943aaebf931fd17e4fa18a41926dc5d1e7e3 Author: Xisco Fauli <[email protected]> AuthorDate: Tue Dec 15 17:30:29 2020 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Thu Feb 11 22:06:08 2021 +0100 uitest: sd: Add support for sidebar uiobject Change-Id: I2074afebbb3a6dfe098af0e447807663682b56a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107782 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx index 87e9a137fcaa..afd130ee20cc 100644 --- a/sd/source/ui/uitest/uiobject.cxx +++ b/sd/source/ui/uitest/uiobject.cxx @@ -14,7 +14,10 @@ #include <DrawViewShell.hxx> #include <sdpage.hxx> +#include <sfx2/sidebar/Sidebar.hxx> +#include <sfx2/sfxsids.hrc> #include <svx/uiobject.hxx> +#include <tools/debug.hxx> namespace { @@ -124,6 +127,19 @@ void ImpressWindowUIObject::execute(const OUString& rAction, const StringMap& rP getViewShell(mxWindow)->GetView()->MarkObj(pObj, pPageView); } } + else if (rAction == "SIDEBAR") + { + SfxViewFrame* pViewFrm = SfxViewFrame::Current(); + DBG_ASSERT(pViewFrm, "ImpressWindowUIObject::execute: no viewframe"); + pViewFrm->ShowChildWindow(SID_SIDEBAR); + + auto itr = rParameters.find("PANEL"); + if (itr != rParameters.end()) + { + OUString aVal = itr->second; + ::sfx2::sidebar::Sidebar::ShowPanel(aVal, pViewFrm->GetFrame().GetFrameInterface()); + } + } else if (rAction == "DESELECT") { getViewShell(mxWindow)->GetView()->UnMarkAll(); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
