22#include <com/sun/star/frame/XController.hpp>
54 std::shared_ptr<SlideSorter> pSlideSorter(
70 : mpViewShell(&rViewShell),
71 mpViewShellBase(&rViewShell.GetViewShellBase()),
72 mpContentWindow(pContentWindow),
73 mpHorizontalScrollBar(pHorizontalScrollBar),
74 mpVerticalScrollBar(pVerticalScrollBar),
91 mpContentWindow->GetSettings().GetStyleSettings().GetMenuHighlightColor());
104 if (pParentWindow !=
nullptr)
112 pContentWindow->
Hide();
172 if (pParentWindow !=
nullptr)
177 WindowEventHandler));
182 WindowEventHandler));
188 ApplicationEventHandler));
203 WindowEventHandler));
206 if (pParentWindow !=
nullptr)
210 WindowEventHandler));
215 ApplicationEventHandler));
236 if (pViewShellBase !=
nullptr)
247 const Point& rOffset,
250 Point aOrigin (rOffset);
277 mpViewShell->ViewShell::RelocateToParentWindow(pParentWindow);
static void AddEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
static const AllSettings & GetSettings()
static void RemoveEventListener(const Link< VclSimpleEvent &, void > &rEventListener)
css::uno::Reference< css::frame::XController > GetController() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void reset(reference_type *pBody)
reference_type * get() const
SfxViewShell descendant that the stacked Draw/Impress shells are based on.
SdDrawDocument * GetDocument() const
Base class of the stacked shell hierarchy.
void SetOldFunction(const rtl::Reference< FuPoor > &xFunction)
void SetCurrentFunction(const rtl::Reference< FuPoor > &xFunction)
An SdWindow contains the actual working area of ViewShell.
void SetUseDropScroll(bool bUseDropScroll)
The DropScroll() method is used by AcceptDrop() to scroll the content of the window while dragging an...
void SetViewOrigin(const Point &rPnt)
Set origin of the representation in respect to the whole working area.
static std::shared_ptr< SlideSorter > CreateSlideSorter(ViewShell &rViewShell, sd::Window *pContentWindow, ScrollAdaptor *pHorizontalScrollBar, ScrollAdaptor *pVerticalScrollBar)
Create a new slide sorter that is strongly coupled to the given view shell.
model::SlideSorterModel * CreateModel()
Create the model for the view shell.
void SetupListeners()
This method is usually called exactly one time from the constructor.
std::shared_ptr< controller::Properties > const & GetProperties() const
Return a collection of properties that are used throughout the slide sorter.
VclPtr< ScrollAdaptor > mpHorizontalScrollBar
VclPtr< sd::Window > mpContentWindow
std::unique_ptr< model::SlideSorterModel > mpSlideSorterModel
css::uno::WeakReference< css::frame::XController > mxControllerWeak
SlideSorter(const SlideSorter &)=delete
Forbid copy construction and copy assignment.
css::uno::Reference< css::frame::XController > GetXController() const
Return the XController object of the main view.
std::unique_ptr< view::SlideSorterView > mpSlideSorterView
std::shared_ptr< controller::Properties > mpProperties
Some slide sorter wide properties that are used in different classes.
void SetupControls()
Create the controls for the slide sorter.
ViewShellBase * mpViewShellBase
std::shared_ptr< view::Theme > const & GetTheme() const
Return the active theme which gives access to colors and fonts.
void ArrangeGUIElements(const Point &rOffset, const Size &rSize)
Place and size the controls and windows.
void ReleaseListeners()
Release the listeners that have been installed in SetupListeners().
SD_DLLPUBLIC controller::SlideSorterController & GetController() const
ViewShell * GetViewShell() const
Return the view shell that was given at construction.
std::unique_ptr< controller::SlideSorterController > mpSlideSorterController
void RelocateToWindow(vcl::Window *pWindow)
const VclPtr< ScrollAdaptor > & GetVerticalScrollBar() const
Return the control of the vertical scroll bar.
void SetCurrentFunction(const rtl::Reference< FuPoor > &rpFunction)
Set the current function at the view shell or, when it is not present, set it at the content window.
ViewShellBase * GetViewShellBase() const
Return the ViewShellBase object.
const VclPtr< sd::Window > & GetContentWindow() const
Return the content window.
model::SlideSorterModel & GetModel() const
std::shared_ptr< view::Theme > mpTheme
view::SlideSorterView & GetView() const
void CreateModelViewController()
This virtual method makes it possible to create a specialization of the slide sorter view shell that ...
VclPtr< ScrollAdaptor > mpVerticalScrollBar
The model of the slide sorter gives access to the slides that are to be displayed in the slide sorter...
void SetStyle(WinBits nStyle)
vcl::Window * GetParent() const
void RemoveEventListener(const Link< VclWindowEvent &, void > &rEventListener)
void AddEventListener(const Link< VclWindowEvent &, void > &rEventListener)
#define DBG_ASSERT(sCon, aError)
#define LINK(Instance, Class, Member)
std::shared_ptr< T > make_shared(Args &&... args)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
Reference< XController > xController
WinBits const WB_DIALOGCONTROL