54 :
public std::enable_shared_from_this<FrameworkHelper>,
82 =
u"ResourceActivationRequested";
84 =
u"ResourceDeactivationRequest";
132 const css::uno::Reference<css::drawing::framework::XView>& rxView);
134 typedef ::std::function<bool (
const css::drawing::framework::ConfigurationChangeEvent&)>
136 typedef ::std::function<void (
bool bEventSeen)>
Callback;
137 typedef ::std::function<
139 const css::uno::Reference<
140 css::drawing::framework::XResourceId>&)
158 ::std::shared_ptr<ViewShell>
GetViewShell (
const OUString& rsPaneURL);
173 css::uno::Reference<css::drawing::framework::XView>
GetView (
174 const css::uno::Reference<css::drawing::framework::XResourceId>& rxPaneOrViewId);
188 css::uno::Reference<css::drawing::framework::XResourceId>
RequestView (
189 const OUString& rsResourceURL,
190 const OUString& rsAnchorURL);
206 const OUString& rsEventType,
220 const css::uno::Reference<css::drawing::framework::XResourceId>& rxResourceId,
256 const css::uno::Reference<
257 css::drawing::framework::XResourceId>& rxResourceId);
261 static css::uno::Reference<
262 css::drawing::framework::XResourceId>
264 const OUString& rsResourceURL);
269 static css::uno::Reference<
270 css::drawing::framework::XResourceId>
272 const OUString& rsResourceURL,
273 const OUString& rsAnchorURL);
277 static css::uno::Reference<
278 css::drawing::framework::XResourceId>
280 const OUString& rsResourceURL,
281 const css::uno::Reference<
282 css::drawing::framework::XResourceId>& rxAnchor);
284 const css::uno::Reference<css::drawing::framework::XConfigurationController>&
300 css::uno::Reference<css::drawing::framework::XConfigurationController>
305 css::uno::Reference<css::lang::XComponent>
330 const OUString& rsEventType,
336 void disposing (
const css::lang::EventObject& rEventObject);
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
The ViewURLMap is used to translate between the view URLs used by the drawing framework and the enums...
The FrameworkHelper is a convenience class that simplifies the access to the drawing framework.
FrameworkHelper(ViewShellBase &rBase)
void disposing(const css::lang::EventObject &rEventObject)
This disposing method is forwarded from the inner DisposeListener class.
FrameworkHelper & operator=(const FrameworkHelper &rHelper)=delete
static ::std::shared_ptr< ViewShell > GetViewShell(const css::uno::Reference< css::drawing::framework::XView > &rxView)
Return a ViewShell pointer for the given XView reference.
css::uno::Reference< css::drawing::framework::XResourceId > RequestView(const OUString &rsResourceURL, const OUString &rsAnchorURL)
Request the specified view to be displayed in the specified pane.
static std::mutex maInstanceMapMutex
void UpdateConfiguration()
Explicit request for an update of the current configuration.
static css::uno::Reference< css::drawing::framework::XResourceId > CreateResourceId(const OUString &rsResourceURL)
Create a new XResourceId object for the given resource URL.
static InstanceMap maInstanceMap
The instance map holds (at least) one FrameworkHelper instance for every ViewShellBase object.
::std::map< const ViewShellBase *, ::std::shared_ptr< FrameworkHelper > > InstanceMap
static const OUString msHandoutViewURL
static OUString GetViewURL(ViewShell::ShellType eType)
Return a view URL for the given identifier.
static constexpr OUStringLiteral msPaneURLPrefix
static const OUString msCenterPaneURL
static constexpr OUStringLiteral msResourceDeactivationEvent
void RunOnEvent(const OUString &rsEventType, const ConfigurationChangeEventFilter &rFilter, const Callback &rCallback) const
Run the given callback when an event of the specified type is received from the ConfigurationControll...
static constexpr OUStringLiteral msResourceDeactivationEndEvent
static const OUString msLeftDrawPaneURL
void HandleModeChangeSlot(sal_uInt16 nSlotId, SfxRequest const &rRequest)
Process a slot call that requests a view shell change.
static constexpr OUStringLiteral msConfigurationUpdateStartEvent
void RunOnResourceActivation(const css::uno::Reference< css::drawing::framework::XResourceId > &rxResourceId, const Callback &rCallback)
Run the given callback when the specified resource has been activated.
static constexpr OUStringLiteral msResourceActivationRequestEvent
static constexpr OUStringLiteral msToolBarURLPrefix
static const OUString msNotesViewURL
static ViewShell::ShellType GetViewId(const OUString &rsViewURL)
Return an identifier for the given view URL.
static const OUString msOutlineViewURL
static constexpr OUStringLiteral msConfigurationUpdateEndEvent
void RunOnConfigurationEvent(const OUString &rsEventType, const Callback &rCallback)
Run the given callback when the specified event is notified by the ConfigurationManager.
void RequestSynchronousUpdate()
Normally the requested changes of the configuration are executed asynchronously.
::std::function< void(bool bEventSeen)> Callback
static const OUString msPresentationViewURL
static const OUString msSlideSorterURL
static ViewURLMap maViewURLMap
css::uno::Reference< css::drawing::framework::XView > GetView(const css::uno::Reference< css::drawing::framework::XResourceId > &rxPaneOrViewId)
Return a reference to the view that is displayed in the specified pane.
css::uno::Reference< css::lang::XComponent > mxDisposeListener
static const OUString msSidebarViewURL
static OUString ResourceIdToString(const css::uno::Reference< css::drawing::framework::XResourceId > &rxResourceId)
Return a string representation of the given XResourceId object.
static constexpr OUStringLiteral msResourceDeactivationRequestEvent
static ::std::shared_ptr< FrameworkHelper > Instance(ViewShellBase &rBase)
Return the FrameworkHelper object that is associated with the given ViewShellBase.
FrameworkHelper(const FrameworkHelper &rHelper)=delete
::std::function< void(const css::uno::Reference< css::drawing::framework::XResourceId > &) > ResourceFunctor
static const OUString msLeftImpressPaneURL
void WaitForUpdate() const
This is a short cut for WaitForEvent(msConfigurationUpdateEndEvent).
const css::uno::Reference< css::drawing::framework::XConfigurationController > & GetConfigurationController() const
static void ReleaseInstance(const ViewShellBase &rBase)
Destroy the FrameworkHelper object for the given ViewShellBase.
static const OUString msDrawViewURL
static constexpr OUStringLiteral msResourceActivationEvent
virtual ~FrameworkHelper() override
css::uno::Reference< css::drawing::framework::XConfigurationController > mxConfigurationController
::std::function< bool(const css::drawing::framework::ConfigurationChangeEvent &)> ConfigurationChangeEventFilter
static constexpr OUStringLiteral msViewURLPrefix
static const OUString msImpressViewURL
static css::uno::Reference< css::drawing::framework::XResourceId > CreateResourceId(const OUString &rsResourceURL, const css::uno::Reference< css::drawing::framework::XResourceId > &rxAnchor)
Create a new XResourceId object for the given resource URL.
static const OUString msViewTabBarURL
static const OUString msFullScreenPaneURL
void WaitForEvent(const OUString &rsEventName) const
Block until the specified event is notified by the configuration controller.
static void DisposeInstance(const ViewShellBase &rBase)
Mark the FrameworkHelper object for the given ViewShellBase as disposed.
bool IsValid() const
Test whether the called FrameworkHelper object is valid.