diff options
Diffstat (limited to 'sc/source/ui/drawfunc/fupoor.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fupoor.cxx | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/sc/source/ui/drawfunc/fupoor.cxx b/sc/source/ui/drawfunc/fupoor.cxx index 370385aace20..fa4c089f643a 100644 --- a/sc/source/ui/drawfunc/fupoor.cxx +++ b/sc/source/ui/drawfunc/fupoor.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -128,9 +128,9 @@ void FuPoor::ForceScroll(const Point& aPixPos) SCsCOL dx = 0; SCsROW dy = 0; - if ( aPixPos.X() <= 0 ) dx = -1; + if ( aPixPos.X() <= 0 ) dx = -1; if ( aPixPos.X() >= aSize.Width() ) dx = 1; - if ( aPixPos.Y() <= 0 ) dy = -1; + if ( aPixPos.Y() <= 0 ) dy = -1; if ( aPixPos.Y() >= aSize.Height() ) dy = 1; ScViewData* pViewData = pViewShell->GetViewData(); @@ -153,7 +153,7 @@ void FuPoor::ForceScroll(const Point& aPixPos) if ( dx != 0 || dy != 0 ) { - ScrollStart(); // Scrollaktion in abgeleiteter Klasse + ScrollStart(); // Scrollaktion in abgeleiteter Klasse pViewShell->ScrollLines(2*dx, 4*dy); ScrollEnd(); aScrollTimer.Start(); @@ -169,7 +169,7 @@ void FuPoor::ForceScroll(const Point& aPixPos) IMPL_LINK_INLINE_START( FuPoor, ScrollHdl, Timer *, EMPTYARG ) { Point aPosPixel = pWindow->GetPointerPosPixel(); - + // #95491# use remembered MouseButton state to create correct // MouseEvents for this artifical MouseMove. MouseMove(MouseEvent(aPosPixel, 1, 0, GetMouseButtonCode())); @@ -180,20 +180,20 @@ IMPL_LINK_INLINE_END( FuPoor, ScrollHdl, Timer *, pTimer ) // #95491# moved from inline to *.cxx BOOL FuPoor::MouseButtonUp(const MouseEvent& rMEvt) -{ +{ // #95491# remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); - return FALSE; + return FALSE; } // #95491# moved from inline to *.cxx BOOL FuPoor::MouseButtonDown(const MouseEvent& rMEvt) -{ +{ // #95491# remember button state for creation of own MouseEvents SetMouseButtonCode(rMEvt.GetButtons()); - return FALSE; + return FALSE; } /************************************************************************* @@ -202,7 +202,7 @@ BOOL FuPoor::MouseButtonDown(const MouseEvent& rMEvt) |* \************************************************************************/ -// WriteStatus gibt's nicht mehr +// WriteStatus gibt's nicht mehr /************************************************************************* |* @@ -249,7 +249,7 @@ void FuPoor::DoCut() { if (pView) { -//! pView->DoCut(pWindow); +//! pView->DoCut(pWindow); } } @@ -263,7 +263,7 @@ void FuPoor::DoCopy() { if (pView) { -//! pView->DoCopy(pWindow); +//! pView->DoCopy(pWindow); } } @@ -277,7 +277,7 @@ void FuPoor::DoPaste() { if (pView) { -//! pView->DoPaste(pWindow); +//! pView->DoPaste(pWindow); } } @@ -289,12 +289,12 @@ void FuPoor::DoPaste() IMPL_LINK( FuPoor, DragTimerHdl, Timer *, EMPTYARG ) { - // ExecuteDrag (und das damit verbundene Reschedule) direkt aus dem Timer - // aufzurufen, bringt die VCL-Timer-Verwaltung durcheinander, wenn dabei - // (z.B. im Drop) wieder ein Timer gestartet wird (z.B. ComeBack-Timer der - // DrawView fuer Solid Handles / ModelHasChanged) - der neue Timer laeuft - // dann um die Dauer des Drag&Drop zu spaet ab. - // Darum Drag&Drop aus eigenem Event: + // ExecuteDrag (und das damit verbundene Reschedule) direkt aus dem Timer + // aufzurufen, bringt die VCL-Timer-Verwaltung durcheinander, wenn dabei + // (z.B. im Drop) wieder ein Timer gestartet wird (z.B. ComeBack-Timer der + // DrawView fuer Solid Handles / ModelHasChanged) - der neue Timer laeuft + // dann um die Dauer des Drag&Drop zu spaet ab. + // Darum Drag&Drop aus eigenem Event: Application::PostUserEvent( LINK( this, FuPoor, DragHdl ) ); return 0; @@ -309,13 +309,13 @@ IMPL_LINK( FuPoor, DragHdl, void *, EMPTYARG ) pWindow->ReleaseMouse(); bIsInDragMode = TRUE; -// pView->BeginDrag(pWindow, aMDPos); +// pView->BeginDrag(pWindow, aMDPos); pViewShell->GetScDrawView()->BeginDrag(pWindow, aMDPos); } return 0; } -// Detektiv-Linie +// Detektiv-Linie BOOL FuPoor::IsDetectiveHit( const Point& rLogicPos ) { @@ -366,13 +366,13 @@ void FuPoor::ImpForceQuadratic(Rectangle& rRect) if(rRect.GetWidth() > rRect.GetHeight()) { rRect = Rectangle( - Point(rRect.Left() + ((rRect.GetWidth() - rRect.GetHeight()) / 2), rRect.Top()), + Point(rRect.Left() + ((rRect.GetWidth() - rRect.GetHeight()) / 2), rRect.Top()), Size(rRect.GetHeight(), rRect.GetHeight())); } else { rRect = Rectangle( - Point(rRect.Left(), rRect.Top() + ((rRect.GetHeight() - rRect.GetWidth()) / 2)), + Point(rRect.Left(), rRect.Top() + ((rRect.GetHeight() - rRect.GetWidth()) / 2)), Size(rRect.GetWidth(), rRect.GetWidth())); } } |