summaryrefslogtreecommitdiff
path: root/vcl/source/window/mouseevent.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-28 21:07:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-29 09:33:44 +0100
commitc50612d51619fb92393f32c6832628ffbbdcb920 (patch)
tree0f3c7976073cf1eb1dc47545647b91e4d8462097 /vcl/source/window/mouseevent.cxx
parent42fe8b9f11da41530a6d914397b6301a72db3800 (diff)
callcatcher: unused code
Diffstat (limited to 'vcl/source/window/mouseevent.cxx')
-rw-r--r--vcl/source/window/mouseevent.cxx27
1 files changed, 0 insertions, 27 deletions
diff --git a/vcl/source/window/mouseevent.cxx b/vcl/source/window/mouseevent.cxx
index 2e76750e1cf5..220bad75496f 100644
--- a/vcl/source/window/mouseevent.cxx
+++ b/vcl/source/window/mouseevent.cxx
@@ -65,31 +65,4 @@ MouseEvent::MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent )
}
}
-/** fills out the given awt KeyEvent with all settings from this vcl event **/
-void MouseEvent::InitMouseEvent( ::com::sun::star::awt::MouseEvent& rEvent ) const
-{
- rEvent.Modifiers = 0;
- if ( IsShift() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT;
- if ( IsMod1() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1;
- if ( IsMod2() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2;
- if ( IsMod3() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD3;
-
- rEvent.Buttons = 0;
- if ( IsLeft() )
- rEvent.Buttons |= ::com::sun::star::awt::MouseButton::LEFT;
- if ( IsRight() )
- rEvent.Buttons |= ::com::sun::star::awt::MouseButton::RIGHT;
- if ( IsMiddle() )
- rEvent.Buttons |= ::com::sun::star::awt::MouseButton::MIDDLE;
-
- rEvent.X = GetPosPixel().X();
- rEvent.Y = GetPosPixel().Y();
- rEvent.ClickCount = GetClicks();
- rEvent.PopupTrigger = sal_False;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */