30using ::sd::framework::FrameworkHelper;
33 const sal_Int32 gnConfigurationUpdateStartEvent(0);
34 const sal_Int32 gnConfigurationUpdateEndEvent(1);
35 const sal_Int32 gnResourceActivationRequestEvent(2);
36 const sal_Int32 gnResourceDeactivationRequestEvent(3);
46 mbMainViewSwitchUpdatePending(false)
49 if (rxController !=
nullptr)
50 mpBase = rxController->GetViewShellBase();
52 if (!rxController.is())
62 Any(gnConfigurationUpdateStartEvent));
66 Any(gnConfigurationUpdateEndEvent));
70 Any(gnResourceActivationRequestEvent));
74 Any(gnResourceDeactivationRequestEvent));
91 const ConfigurationChangeEvent& rEvent)
96 sal_Int32 nEventType = 0;
97 rEvent.UserData >>= nEventType;
100 case gnConfigurationUpdateStartEvent:
104 case gnConfigurationUpdateEndEvent:
108 case gnResourceActivationRequestEvent:
109 case gnResourceDeactivationRequestEvent:
115 if (rEvent.ResourceId->getResourceURL().match(
117 && rEvent.ResourceId->isBoundToURL(
136 pToolBarManager->LockViewShellManager();
150 std::shared_ptr<FrameworkHelper> pFrameworkHelper (
154 if (pViewShell !=
nullptr)
156 pToolBarManager->MainViewShellChanged(*pViewShell);
157 pToolBarManager->SelectionHasChanged(
160 pToolBarManager->PreUpdate();
164 pToolBarManager->MainViewShellChanged();
165 pToolBarManager->PreUpdate();
SfxViewShell * GetViewShell() const
virtual void SAL_CALL dispose() noexcept final override
std::shared_ptr< ToolBarManager > const & GetToolBarManager() const
Base class of the stacked shell hierarchy.
::sd::View * GetView() const
static const OUString msCenterPaneURL
static constexpr OUStringLiteral msConfigurationUpdateStartEvent
static constexpr OUStringLiteral msResourceActivationRequestEvent
static constexpr OUStringLiteral msConfigurationUpdateEndEvent
static constexpr OUStringLiteral msResourceDeactivationRequestEvent
static ::std::shared_ptr< FrameworkHelper > Instance(ViewShellBase &rBase)
Return the FrameworkHelper object that is associated with the given ViewShellBase.
static constexpr OUStringLiteral msViewURLPrefix