31#include <sfx2/sidebar/Tools.hxx>
35#include <com/sun/star/ui/XToolPanel.hpp>
36#include <com/sun/star/ui/XSidebarPanel.hpp>
37#include <com/sun/star/ui/XUIElement.hpp>
43using namespace css::uno;
49 const bool bIsInitiallyExpanded,
51 std::function<
Context()> aContextAccess,
52 const css::uno::Reference<css::frame::XFrame>& rxFrame)
53 : mxBuilder(
Application::CreateBuilder(pParentWindow,
"sfx/ui/panel.ui", false, reinterpret_cast<sal_uInt64>(
SfxViewShell::Current())))
54 , msPanelId(rPanelDescriptor.msId)
55 , msTitle(rPanelDescriptor.msTitle)
56 , mbIsTitleBarOptional(rPanelDescriptor.mbIsTitleBarOptional)
57 , mbWantsAWT(rPanelDescriptor.mbWantsAWT)
58 , mbIsExpanded(bIsInitiallyExpanded)
60 , maContextAccess(
std::move(aContextAccess))
62 , mpParentWindow(pParentWindow)
65 , mxTitleBar(new
PanelTitleBar(rPanelDescriptor.msTitle, *mxBuilder, this))
66 , mxContents(mxBuilder->weld_box(
"contents"))
75 int x,
y, width, height;
113 rJsonWriter.put(
"type",
"panel");
121 Reference<lang::XComponent> xComponent (
mxElement, UNO_QUERY);
124 xComponent->dispose();
130 xComponent->dispose();
169 assert(pPanelBase &&
"internal panels are all expected to inherit from SidebarPanelBase");
180 return mxDeck->GetFrameWeld();
219 Reference<ui::XToolPanel> xToolPanel(
mxElement->getRealInterface(), UNO_QUERY);
221 return xToolPanel->getWindow();
One SfxViewShell more or less represents one edit window for a document, there can be multiple ones f...
#define LINK(Instance, Class, Member)