17#include <com/sun/star/frame/XDispatch.hpp>
25using ::com::sun::star::uno::RuntimeException;
34 return SidebarController::GetSidebarControllerForFrame(
xFrame);
43 if (pSidebarController)
46 pSidebarController->RequestOpenDeck();
48 pSidebarController->RequestCloseDeck();
60 const util::URL
aURL(Tools::GetURL(
".uno:Sidebar"));
63 xDispatch->dispatch(
aURL, uno::Sequence<beans::PropertyValue>());
73 return pSidebarController !=
nullptr;
81 throw uno::RuntimeException();
Reference< XDispatch > xDispatch
Reference< XFrame > xFrame