Lines Matching refs:rEvent
34 MouseEvent::MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent ) in MouseEvent() argument
35 : maPos( rEvent.X, rEvent.Y ) in MouseEvent()
37 , mnClicks( static_cast< sal_uInt16 >( rEvent.ClickCount ) ) in MouseEvent()
40 if( rEvent.Modifiers ) in MouseEvent()
42 if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::SHIFT) != 0 ) in MouseEvent()
44 if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD1) != 0 ) in MouseEvent()
46 if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD2) != 0 ) in MouseEvent()
48 if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD3) != 0 ) in MouseEvent()
52 if( rEvent.Buttons ) in MouseEvent()
54 if( (rEvent.Buttons & ::com::sun::star::awt::MouseButton::LEFT) != 0 ) in MouseEvent()
56 if( (rEvent.Buttons & ::com::sun::star::awt::MouseButton::RIGHT) != 0 ) in MouseEvent()
58 if( (rEvent.Buttons & ::com::sun::star::awt::MouseButton::MIDDLE) != 0 ) in MouseEvent()
64 void MouseEvent::InitMouseEvent( ::com::sun::star::awt::MouseEvent& rEvent ) const in InitMouseEvent()
66 rEvent.Modifiers = 0; in InitMouseEvent()
68 rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT; in InitMouseEvent()
70 rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1; in InitMouseEvent()
72 rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2; in InitMouseEvent()
74 rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD3; in InitMouseEvent()
76 rEvent.Buttons = 0; in InitMouseEvent()
78 rEvent.Buttons |= ::com::sun::star::awt::MouseButton::LEFT; in InitMouseEvent()
80 rEvent.Buttons |= ::com::sun::star::awt::MouseButton::RIGHT; in InitMouseEvent()
82 rEvent.Buttons |= ::com::sun::star::awt::MouseButton::MIDDLE; in InitMouseEvent()
84 rEvent.X = GetPosPixel().X(); in InitMouseEvent()
85 rEvent.Y = GetPosPixel().Y(); in InitMouseEvent()
86 rEvent.ClickCount = GetClicks(); in InitMouseEvent()
87 rEvent.PopupTrigger = sal_False; in InitMouseEvent()