diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-12-15 17:30:29 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-02-11 22:06:08 +0100 |
commit | 9a97943aaebf931fd17e4fa18a41926dc5d1e7e3 (patch) | |
tree | ad407a214cd63ffb25333d970e90bdd8be07fe76 /sd | |
parent | 816994a1759e1760e4b55f327a2c957fba3860e0 (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/uitest/uiobject.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
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(); |