#include <opliveeffects.h>
Inheritance diagram for OpDeleteAllLiveEffect:
Public Member Functions | |
virtual void | GetOpName (String_256 *pstrOpName) |
virtual BOOL | DoEffectOp (ListRange *pLevelRange, OpLiveEffectParam *pLEOpParam) |
virtual BOOL | MayChangeNodeBounds () const |
Static Public Member Functions | |
static OpState | GetState (String_256 *pstrDescription, OpDescriptor *pOpDesc) |
Protected Member Functions | |
virtual BOOL | CheckEffectOpParam (OpLiveEffectParam *pLEOpParam) |
Private Member Functions | |
CC_DECLARE_DYNCREATE (OpDeleteAllLiveEffect) |
Definition at line 468 of file opliveeffects.h.
|
|
|
Reimplemented from OpLiveEffect. Definition at line 3500 of file opliveeffects.cpp. 03501 { 03502 // if (!pLEOpParam->bSilent) 03503 // { 03504 // INT32 button = InformWarning(_R(IDS_LE_DELETEALL_WARNING), _R(IDS_REMOVE), _R(IDS_CANCEL)); 03505 // if (button==2) // Cancel 03506 // return FALSE; 03507 // } 03508 // 03509 // Don't check for valid effects stack - this op doesn't need it. 03510 03511 return TRUE; 03512 }
|
|
Reimplemented from OpLiveEffect. Definition at line 3471 of file opliveeffects.cpp. 03472 { 03473 Range* pSelRange = GetApplication()->FindSelection(); 03474 ENSURE(pSelRange, "OpDeleteAllLiveEffect can't find selection\n"); 03475 03476 // ---------------------------------------------- 03477 // This is the important bit! 03478 // 03479 // Go through all the LiveEffects, move their children up to be siblings and then 03480 // "delete" the LiveEffect nodes by hiding them. 03481 // 03482 Node* pNode = pSelRange->FindFirst(); 03483 while (pNode) 03484 { 03485 // First, find pointer to child list to be moved into place as the LiveEffects stack is deleted 03486 Node* pNextSel = pSelRange->FindNext(pNode); 03487 03488 if (pNode->IsAnObject()) 03489 DoDeleteAllPostProcessors(this, (NodeRenderableInk*)pNode, FALSE, TRUE); 03490 03491 pNode = pNextSel; 03492 } 03493 03494 return TRUE; 03495 }
|
|
Reimplemented from Operation. Definition at line 3449 of file opliveeffects.cpp. 03450 { 03451 *pstrOpName = String_256(_R(IDS_LE_OPDELETE)); 03452 }
|
|
Definition at line 3417 of file opliveeffects.cpp. 03418 { 03419 // default is an unticked, *GREYED*, on-menu state. 03420 OpState OpSt; 03421 OpSt.Greyed = FALSE; 03422 // *pstrDescription = String_256(_R(IDS_DESCRIBE_LIVEEFFECT)); 03423 03424 if (XPEHost::IsEditSessionRunning()) 03425 { 03426 OpSt.Greyed = TRUE; 03427 *pstrDescription = String_256(_R(IDS_LE_EDIT_RUNNING)); 03428 } 03429 03430 return OpSt; 03431 }
|
|
Reimplemented from SelOperation. Definition at line 484 of file opliveeffects.h. 00484 { return TRUE; }
|