#include <penedit.h>
Inheritance diagram for OpPenDragBlobs:
Public Member Functions | |
OpPenDragBlobs () | |
OpPenDragBlobs constructor. | |
BOOL | DoPenDragBlobs () |
virtual void | DragPointerMove (DocCoord Pos, ClickModifiers Mods, Spread *pSpread, BOOL bSolidDrag) |
This is called every time the mouse moves, during a drag. | |
virtual void | DragFinished (DocCoord Pos, ClickModifiers Mods, Spread *pSpread, BOOL Success, BOOL bSolidDrag) |
This is called when a drag operation finishes. | |
virtual void | RenderDragBlobs (DocRect, Spread *, BOOL bSolidDrag) |
This function is called to render our drag blobs during scrolling. |
Definition at line 280 of file penedit.h.
|
OpPenDragBlobs constructor.
Definition at line 616 of file penedit.cpp.
|
|
Definition at line 636 of file penedit.cpp. 00637 { 00638 // And tell the Dragging system that we need drags to happen 00639 DocRect HandlesRect = GetHandlesRect(); 00640 return StartDrag(DRAGTYPE_AUTOSCROLL, &HandlesRect, &CurrentMousePos); 00641 }
|
|
This is called when a drag operation finishes.
Reimplemented from Operation. Reimplemented in OpPenCreateInternal, and OpPenEditInternal. Definition at line 699 of file penedit.cpp. 00701 { 00702 // terminate the drag and operation 00703 EndDrag(); 00704 }
|
|
This is called every time the mouse moves, during a drag.
Reimplemented from Operation. Definition at line 661 of file penedit.cpp. 00665 { 00666 // If drag has moved onto a different spread, convert the coord to be relative to the 00667 // original spread. 00668 if (pSpread != StartSpread) 00669 PointerPos = MakeRelativeToSpread(StartSpread, pSpread, PointerPos); 00670 00671 // Make sure we get the grid snapping involved 00672 DocCoord SnapPos = PointerPos; 00673 DocView::SnapCurrent(pSpread,&SnapPos); 00674 00675 // Rub out the old EORed version of the handles, and stick some new ones on. 00676 RenderHandles(); 00677 ChangeTrackHandle(SnapPos, ClickMods.Constrain); 00678 RenderHandles(); 00679 }
|
|
This function is called to render our drag blobs during scrolling.
Reimplemented from Operation. Definition at line 718 of file penedit.cpp. 00719 { 00720 if (StartSpread!=pSpread) return; 00721 RenderRegion* pRegion = DocView::RenderOnTop( &Rect, pSpread, ClippedEOR ); 00722 while ( pRegion ) 00723 { 00724 UpdateHandles(pRegion); 00725 pRegion = DocView::GetNextOnTop(NULL); 00726 } 00727 }
|