#include <moldedit.h>
Inheritance diagram for RedrawBoundsAction:
Public Member Functions | |
RedrawBoundsAction () | |
virtual ActionCode | Execute () |
This is a pure virtual method which should be redefined for all derived classes of Action. | |
Static Public Member Functions | |
static ActionCode | DoRecord (Operation *pOp, NodeMould *WhichNode, BOOL Redraw) |
static ActionCode | Init (Operation *pOp, ActionList *pActionList, NodeMould *WhichNode, Action **NewAction) |
static void | RedrawNode (Operation *pOp, NodeMould *pNode) |
Protected Attributes | |
NodeMould * | ChangedNode |
Definition at line 329 of file moldedit.h.
|
Definition at line 1390 of file moldedit.cpp. 01391 { 01392 ChangedNode = NULL; 01393 }
|
|
Definition at line 1396 of file moldedit.cpp. 01397 { 01398 RedrawBoundsAction* RecAction; 01399 ActionCode Act = RedrawBoundsAction::Init(pOp, 01400 pOp->GetUndoActionList(), 01401 WhichNode, 01402 (Action**)&RecAction); 01403 if (Act != AC_FAIL && Redraw) 01404 RedrawNode(pOp, WhichNode); 01405 return Act; 01406 }
|
|
This is a pure virtual method which should be redefined for all derived classes of Action.
Reimplemented from Action. Definition at line 1423 of file moldedit.cpp. 01424 { 01425 RedrawBoundsAction* ReAction; 01426 ActionCode Act; 01427 Act = RedrawBoundsAction::Init(pOperation, pOppositeActLst, ChangedNode, (Action**)(&ReAction)); 01428 if (Act != AC_FAIL) 01429 RedrawNode(pOperation, ChangedNode); 01430 return Act; 01431 }
|
|
Definition at line 1409 of file moldedit.cpp. 01413 { 01414 UINT32 ActSize = sizeof(RedrawBoundsAction); 01415 ActionCode Ac = Action::Init( pOp, pActionList, ActSize, CC_RUNTIME_CLASS(RedrawBoundsAction), NewAction); 01416 if ((Ac == AC_OK) && (*NewAction != NULL)) 01417 ((RedrawBoundsAction*)*NewAction)->ChangedNode = WhichNode; 01418 01419 return Ac; 01420 }
|
|
Definition at line 1434 of file moldedit.cpp. 01435 { 01436 Document* pDoc = pOp->GetWorkingDoc(); 01437 ERROR3IF( pDoc == NULL, "There was no current document when undoing RecordMouldBounds" ); 01438 Spread* pSpread = pNode->FindParentSpread(); 01439 DocRect Invalid = pNode->GetChildrensBounds(); 01440 pDoc->ForceRedraw( pSpread, Invalid, FALSE, pNode); 01441 }
|
|
Definition at line 349 of file moldedit.h. |