LibreOffice Module sd (master) 1
Public Member Functions | Private Attributes | List of all members
sd::slidesorter::controller::DragAndDropContext Class Reference

A DragAndDropContext object handles an active drag and drop operation. More...

#include <SlsDragAndDropContext.hxx>

Collaboration diagram for sd::slidesorter::controller::DragAndDropContext:
[legend]

Public Member Functions

 DragAndDropContext (SlideSorter &rSlideSorter)
 Create a substitution display of the currently selected pages or, when provided, the pages in the transferable. More...
 
 ~DragAndDropContext () COVERITY_NOEXCEPT_FALSE
 
void Dispose ()
 Call this method (for example as reaction to ESC key press) to avoid processing (ie moving or inserting) the substitution when the called DragAndDropContext object is destroyed. More...
 
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 method or to CreateSubstitution(). More...
 
void SetTargetSlideSorter ()
 

Private Attributes

SlideSortermpTargetSlideSorter
 
sal_Int32 mnInsertionIndex
 

Detailed Description

A DragAndDropContext object handles an active drag and drop operation.

When the mouse is moved from one slide sorter window to another the target SlideSorter object is exchanged accordingly.

Definition at line 37 of file SlsDragAndDropContext.hxx.

Constructor & Destructor Documentation

◆ DragAndDropContext()

sd::slidesorter::controller::DragAndDropContext::DragAndDropContext ( SlideSorter rSlideSorter)
explicit

◆ ~DragAndDropContext()

sd::slidesorter::controller::DragAndDropContext::~DragAndDropContext ( )

Definition at line 59 of file SlsDragAndDropContext.cxx.

References SetTargetSlideSorter().

Member Function Documentation

◆ Dispose()

void sd::slidesorter::controller::DragAndDropContext::Dispose ( )

Call this method (for example as reaction to ESC key press) to avoid processing (ie moving or inserting) the substitution when the called DragAndDropContext object is destroyed.

Definition at line 64 of file SlsDragAndDropContext.cxx.

References mnInsertionIndex.

◆ SetTargetSlideSorter()

void sd::slidesorter::controller::DragAndDropContext::SetTargetSlideSorter ( )

◆ UpdatePosition()

void sd::slidesorter::controller::DragAndDropContext::UpdatePosition ( const Point rMousePosition,
const InsertionIndicatorHandler::Mode  eMode,
const bool  bAllowAutoScroll 
)

Member Data Documentation

◆ mnInsertionIndex

sal_Int32 sd::slidesorter::controller::DragAndDropContext::mnInsertionIndex
private

Definition at line 63 of file SlsDragAndDropContext.hxx.

Referenced by Dispose(), and UpdatePosition().

◆ mpTargetSlideSorter

SlideSorter* sd::slidesorter::controller::DragAndDropContext::mpTargetSlideSorter
private

Definition at line 62 of file SlsDragAndDropContext.hxx.

Referenced by SetTargetSlideSorter(), and UpdatePosition().


The documentation for this class was generated from the following files: