15#include <com/sun/star/view/XSelectionSupplier.hpp>
21#include <sfx2/strings.hrc>
31 "sfx/ui/developmenttool.ui")
33 , mpDocumentModelTreeView(m_xBuilder->weld_tree_view(
"leftside_treeview_id"))
34 , mpDomToolbar(m_xBuilder->weld_toolbar(
"dom_toolbar"))
35 , maDocumentModelTreeHandler(
36 mpDocumentModelTreeView,
37 pInputBindings->
GetDispatcher()->GetFrame()->GetObjectShell()->GetBaseModel())
38 , maObjectInspectorTreeHandler(mpObjectInspectorWidgets)
47 uno::Reference<frame::XController>
xController = pViewFrame->GetFrame().GetController();
63 if (mpDomToolbar->get_item_active(
"dom_current_selection_toggle"))
66 OUString sID = rView.get_selected_id();
69 maObjectInspectorTreeHandler.introspect(xObject);
75 if (rSelectionId ==
"dom_refresh_button")
77 maDocumentModelTreeHandler.inspectDocument();
79 else if (rSelectionId ==
"dom_current_selection_toggle")
90 auto* pSelectionChangeHandler
92 if (pSelectionChangeHandler)
111 bool bActive =
mpDomToolbar->get_item_active(
"dom_current_selection_toggle");
134 uno::Reference<uno::XInterface>
const& xInterface)
147 auto xInterface = aAny.get<css::uno::Reference<css::uno::XInterface>>();
151 mpDomToolbar->set_item_active(
"dom_current_selection_toggle",
true);
156 mpDomToolbar->set_item_active(
"dom_current_selection_toggle",
false);
virtual void SetText(const OUString &rStr) override
SystemWindow * GetFloatingWindow() const
static css::uno::Reference< css::uno::XInterface > getObjectByID(OUString const &rID)
void selectObject(css::uno::Reference< css::uno::XInterface > const &xInterface)
void introspect(css::uno::Reference< css::uno::XInterface > const &xInterface)
Selection change handler to listen to document selection changes.
SfxDispatcher * GetDispatcher() const
SfxViewFrame * GetFrame() const
Returns a pointer to the <SfxViewFrame> instance, which belongs to this SfxDispatcher.
virtual void ToggleFloatingMode() override
virtual void dispose() override
css::uno::Reference< css::frame::XModel3 > GetBaseModel() const
virtual SfxObjectShell * GetObjectShell() override
void SetMinOutputSizePixel(const Size &rSize)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
#define LINK(Instance, Class, Member)
SfxDispatcher * GetDispatcher()
OUString SfxResId(TranslateId aId)
Reference< XController > xController