LibreOffice Module sd (master) 1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
sd::slidesorter::controller::SelectionFunction::EventDescriptor Class Reference
Collaboration diagram for sd::slidesorter::controller::SelectionFunction::EventDescriptor:
[legend]

Public Member Functions

 EventDescriptor (sal_uInt32 nEventType, const MouseEvent &rEvent, SlideSorter const &rSlideSorter)
 
 EventDescriptor (sal_uInt32 nEventType, const AcceptDropEvent &rEvent, const sal_Int8 nDragAction, SlideSorter const &rSlideSorter)
 

Public Attributes

Point maMousePosition
 
Point maMouseModelPosition
 
model::SharedPageDescriptor mpHitDescriptor
 
SdrPagempHitPage
 
sal_uInt32 mnEventCode
 
InsertionIndicatorHandler::Mode meDragMode
 
bool mbIsLeaving
 

Private Member Functions

sal_uInt32 EncodeMouseEvent (const MouseEvent &rEvent) const
 Compute a numerical code that describes a mouse event and that can be used for fast look up of the appropriate reaction. More...
 
sal_uInt32 EncodeState () const
 Compute a numerical code that describes the current state like whether the selection rectangle is visible or whether the page under the mouse or the one that has the focus is selected. More...
 

Detailed Description

Definition at line 94 of file SlsSelectionFunction.cxx.

Constructor & Destructor Documentation

◆ EventDescriptor() [1/2]

sd::slidesorter::controller::SelectionFunction::EventDescriptor::EventDescriptor ( sal_uInt32  nEventType,
const MouseEvent rEvent,
SlideSorter const &  rSlideSorter 
)

◆ EventDescriptor() [2/2]

sd::slidesorter::controller::SelectionFunction::EventDescriptor::EventDescriptor ( sal_uInt32  nEventType,
const AcceptDropEvent rEvent,
const sal_Int8  nDragAction,
SlideSorter const &  rSlideSorter 
)

Member Function Documentation

◆ EncodeMouseEvent()

sal_uInt32 sd::slidesorter::controller::SelectionFunction::EventDescriptor::EncodeMouseEvent ( const MouseEvent rEvent) const
private

Compute a numerical code that describes a mouse event and that can be used for fast look up of the appropriate reaction.

Definition at line 759 of file SlsSelectionFunction.cxx.

References MouseEvent::GetButtons(), MouseEvent::GetClicks(), MouseEvent::IsMod1(), MouseEvent::IsShift(), MOUSE_LEFT, MOUSE_MIDDLE, and MOUSE_RIGHT.

Referenced by EventDescriptor().

◆ EncodeState()

sal_uInt32 sd::slidesorter::controller::SelectionFunction::EventDescriptor::EncodeState ( ) const
private

Compute a numerical code that describes the current state like whether the selection rectangle is visible or whether the page under the mouse or the one that has the focus is selected.

Definition at line 789 of file SlsSelectionFunction.cxx.

References sd::slidesorter::model::PageDescriptor::ST_Selected.

Referenced by EventDescriptor().

Member Data Documentation

◆ maMouseModelPosition

Point sd::slidesorter::controller::SelectionFunction::EventDescriptor::maMouseModelPosition

Definition at line 98 of file SlsSelectionFunction.cxx.

Referenced by EventDescriptor().

◆ maMousePosition

Point sd::slidesorter::controller::SelectionFunction::EventDescriptor::maMousePosition

◆ mbIsLeaving

bool sd::slidesorter::controller::SelectionFunction::EventDescriptor::mbIsLeaving

◆ meDragMode

InsertionIndicatorHandler::Mode sd::slidesorter::controller::SelectionFunction::EventDescriptor::meDragMode

Definition at line 102 of file SlsSelectionFunction.cxx.

◆ mnEventCode

sal_uInt32 sd::slidesorter::controller::SelectionFunction::EventDescriptor::mnEventCode

◆ mpHitDescriptor

model::SharedPageDescriptor sd::slidesorter::controller::SelectionFunction::EventDescriptor::mpHitDescriptor

Definition at line 99 of file SlsSelectionFunction.cxx.

Referenced by EventDescriptor().

◆ mpHitPage

SdrPage* sd::slidesorter::controller::SelectionFunction::EventDescriptor::mpHitPage

Definition at line 100 of file SlsSelectionFunction.cxx.

Referenced by EventDescriptor().


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