#include <ngsetop.h>
Inheritance diagram for OpApplyNamesToOne:
Public Member Functions | |
virtual BOOL | MayChangeNodeBounds () const |
Static Public Member Functions | |
static OpState | GetState (String_256 *, OpDescriptor *) |
Returns the UI state of OPTOKEN_APPLY_NAMES_TO_ONE, OPTOKEN_DELETE_NAMES_FROM_ALL, and OPTOKEN_RENAME_ALL. | |
Private Member Functions | |
CC_DECLARE_DYNCREATE (OpApplyNamesToOne) | |
virtual void | DoWithParam (OpDescriptor *, OpParam *pOpParam) |
Performs the OPTOKEN_APPLY_NAMES_TO_ONE operation which applies the highlighted names to the given object. |
Definition at line 215 of file ngsetop.h.
|
|
|
Performs the OPTOKEN_APPLY_NAMES_TO_ONE operation which applies the highlighted names to the given object.
Reimplemented from Operation. Definition at line 364 of file ngsetop.cpp. 00365 { 00366 ERROR3IF(pParam->Param1 == 0, "OpApplyNamesToOne::DoWithParam: null argument"); 00367 Node* pNode = (Node*)(void *) pParam->Param1; 00368 00369 SingleNodeSource theObject(pNode); 00370 AllowOpScan aosObj(this, &theObject), 00371 aosSentinel(this, &theSetSentinel); 00372 00373 if (!aosObj.Scan() || 00374 !aosSentinel.Scan() || 00375 !ApplyScan(this, &theObject).Scan() || 00376 !ApplyScan(this, &theSetSentinel).Scan() || 00377 !aosObj.Update() || 00378 !aosSentinel.Update()) 00379 { 00380 FailAndExecute(); 00381 } 00382 00383 End(); 00384 }
|
|
Returns the UI state of OPTOKEN_APPLY_NAMES_TO_ONE, OPTOKEN_DELETE_NAMES_FROM_ALL, and OPTOKEN_RENAME_ALL.
Definition at line 344 of file ngsetop.cpp. 00345 { 00346 INT32 nTotal, nNames; 00347 NameGallery::Instance()->GetHighlightCount(&nTotal, &nNames); 00348 return OpState(FALSE, nNames < 1 || nTotal > nNames); 00349 }
|
|
Reimplemented from UndoableOperation. Definition at line 224 of file ngsetop.h. 00224 { return TRUE; }
|