28#include <com/sun/star/drawing/framework/XControllerManager.hpp>
29#include <com/sun/star/drawing/framework/XConfigurationController.hpp>
36using ::sd::framework::FrameworkHelper;
45 mbNewViewCreated(false)
47 if (rxController.is())
52 if (rxController !=
nullptr)
53 mpBase = rxController->GetViewShellBase();
90 const ConfigurationChangeEvent& rEvent)
107 const Reference<XConfiguration>& rxConfiguration)
116 Sequence<Reference<XResourceId> > xViewIds (rxConfiguration->getResources(
119 AnchorBindingMode_DIRECT));
120 Reference<XView> xView;
121 if (xViewIds.hasElements())
126 if (pViewShellWrapper !=
nullptr)
128 std::shared_ptr<ViewShell> pViewShell = pViewShellWrapper->
GetViewShell();
129 if (pViewShell !=
nullptr)
136 const lang::EventObject& rEvent)
std::shared_ptr< ViewShellManager > const & GetViewShellManager() const
CenterViewFocusModule(rtl::Reference< sd::DrawController > const &rxController)
void HandleNewView(const css::uno::Reference< css::drawing::framework::XConfiguration > &rxConfiguration)
At the end of an update of the current configuration this method handles a new view in the center pan...
virtual ~CenterViewFocusModule() override
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
bool mbNewViewCreated
This flag indicates whether in the last configuration change cycle a new view has been created and th...
virtual void SAL_CALL notifyConfigurationChange(const css::drawing::framework::ConfigurationChangeEvent &rEvent) override
virtual void disposing(std::unique_lock< std::mutex > &) override
static css::uno::Reference< css::drawing::framework::XResourceId > CreateResourceId(const OUString &rsResourceURL)
Create a new XResourceId object for the given resource URL.
static const OUString msCenterPaneURL
static constexpr OUStringLiteral msConfigurationUpdateEndEvent
static constexpr OUStringLiteral msResourceActivationEvent
static constexpr OUStringLiteral msViewURLPrefix
This class wraps ViewShell objects and makes them look like an XView.
const ::std::shared_ptr< ViewShell > & GetViewShell() const
This method is typically used to obtain a pointer to the wrapped ViewShell object for a given XView o...