22#include <com/sun/star/drawing/framework/XView.hpp>
23#include <com/sun/star/drawing/framework/XRelocatableResource.hpp>
24#include <com/sun/star/view/XSelectionSupplier.hpp>
25#include <com/sun/star/awt/XWindowListener.hpp>
30namespace sd {
class ViewShell; }
37 , css::view::XSelectionSupplier
38 , css::drawing::framework::XRelocatableResource
39 , css::drawing::framework::XView
61 const ::std::shared_ptr<ViewShell>& pViewShell,
62 const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId,
63 const css::uno::Reference<css::awt::XWindow>& rxWindow);
66 virtual void disposing(std::unique_lock<std::mutex>&)
override;
67 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type & rType )
override;
77 virtual css::uno::Reference<css::drawing::framework::XResourceId>
84 virtual sal_Bool SAL_CALL
select(
const css::uno::Any& aSelection )
override;
86 virtual void SAL_CALL
addSelectionChangeListener(
const css::uno::Reference< css::view::XSelectionChangeListener >& xListener )
override;
92 const css::uno::Reference<
93 css::drawing::framework::XResource>& xResource)
override;
98 const css::awt::WindowEvent& rEvent)
override;
101 const css::awt::WindowEvent& rEvent)
override;
104 const css::lang::EventObject& rEvent)
override;
107 const css::lang::EventObject& rEvent)
override;
112 const css::lang::EventObject& rEvent)
override;
117 const css::uno::Reference< css::drawing::framework::XResourceId >
mxViewId;
This class wraps ViewShell objects and makes them look like an XView.
virtual void SAL_CALL windowHidden(const css::lang::EventObject &rEvent) override
virtual void SAL_CALL removeSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
virtual ~ViewShellWrapper() override
::std::shared_ptr< ::sd::slidesorter::SlideSorterViewShell > mpSlideSorterViewShell
virtual void SAL_CALL windowShown(const css::lang::EventObject &rEvent) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual void SAL_CALL addSelectionChangeListener(const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
virtual sal_Bool SAL_CALL isAnchorOnly() override
ViewShellWrapper(const ::std::shared_ptr< ViewShell > &pViewShell, const css::uno::Reference< css::drawing::framework::XResourceId > &rxViewId, const css::uno::Reference< css::awt::XWindow > &rxWindow)
Create a new ViewShellWrapper object that wraps the given ViewShell object.
virtual css::uno::Any SAL_CALL getSelection() override
virtual void disposing(std::unique_lock< std::mutex > &) override
css::uno::Reference< css::awt::XWindow > mxWindow
::std::shared_ptr< ViewShell > mpViewShell
const css::uno::Reference< css::drawing::framework::XResourceId > mxViewId
virtual sal_Bool SAL_CALL relocateToAnchor(const css::uno::Reference< css::drawing::framework::XResource > &xResource) override
virtual void SAL_CALL disposing(const css::lang::EventObject &rEvent) override
virtual void SAL_CALL windowResized(const css::awt::WindowEvent &rEvent) override
virtual void SAL_CALL windowMoved(const css::awt::WindowEvent &rEvent) override
virtual sal_Bool SAL_CALL select(const css::uno::Any &aSelection) override
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...
virtual css::uno::Reference< css::drawing::framework::XResourceId > SAL_CALL getResourceId() override
comphelper::WeakComponentImplHelper< css::awt::XWindowListener, css::view::XSelectionSupplier, css::drawing::framework::XRelocatableResource, css::drawing::framework::XView > ViewShellWrapperInterfaceBase