37 : mpTargetSlideSorter(&rSlideSorter),
70 const Point& rMousePosition,
72 const bool bAllowAutoScroll)
82 std::shared_ptr<InsertionIndicatorHandler> pInsertionIndicatorHandler (
85 bool bDoAutoScroll = bAllowAutoScroll
88 [
this,
eMode, rMousePosition] () {
94 pInsertionIndicatorHandler->UpdatePosition(aMouseModelPosition,
eMode);
void AddUserData(const std::shared_ptr< UserData > &rpData)
Add a user data object.
reference_type * get() const
An SdWindow contains the actual working area of ViewShell.
Show previews for all the slides in a document and allow the user to insert or delete slides and modi...
SD_DLLPUBLIC controller::SlideSorterController & GetController() const
const VclPtr< sd::Window > & GetContentWindow() const
Return the content window.
model::SlideSorterModel & GetModel() const
static std::shared_ptr< SdTransferable::UserData > CreateTransferableUserData(SdTransferable *pTransferable)
Create a slide sorter transferable from the given sd transferable.
SlideSorter * mpTargetSlideSorter
void SetTargetSlideSorter()
sal_Int32 mnInsertionIndex
void UpdatePosition(const Point &rMousePosition, const InsertionIndicatorHandler::Mode eMode, const bool bAllowAutoScroll)
Move the substitution display by the distance the mouse has travelled since the last call to this met...
DragAndDropContext(SlideSorter &rSlideSorter)
Create a substitution display of the currently selected pages or, when provided, the pages in the tra...
~DragAndDropContext() COVERITY_NOEXCEPT_FALSE
void Dispose()
Call this method (for example as reaction to ESC key press) to avoid processing (ie moving or inserti...
ScrollBarManager & GetScrollBarManager()
Return the object that manages the scroll bars.
std::shared_ptr< InsertionIndicatorHandler > const & GetInsertionIndicatorHandler() const
static std::shared_ptr< TransferableData > GetFromTransferable(const SdTransferable *pTransferable)
EditMode GetEditMode() const
Point PixelToLogic(const Point &rDevicePt) const