OpDeleteAllLiveEffect Class Reference

Operation to delete all Bitmap Effects on the selection. See also:. More...

#include <opliveeffects.h>

Inheritance diagram for OpDeleteAllLiveEffect:

OpLiveEffect SelOperation UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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)

Detailed Description

Operation to delete all Bitmap Effects on the selection. See also:.

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/09/2004

Definition at line 468 of file opliveeffects.h.


Member Function Documentation

OpDeleteAllLiveEffect::CC_DECLARE_DYNCREATE OpDeleteAllLiveEffect   )  [private]
 

BOOL OpDeleteAllLiveEffect::CheckEffectOpParam OpLiveEffectParam pLEOpParam  )  [protected, virtual]
 

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
08/06/2005
Parameters:
pLEopParam - pointer to parameter object to check [INPUTS]
- [OUTPUTS]
Returns:
TRUE if Op can continue FALSE otherwise

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 }

BOOL OpDeleteAllLiveEffect::DoEffectOp ListRange pLevelRange,
OpLiveEffectParam pLEOpParam
[virtual]
 

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/09/2004
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

void OpDeleteAllLiveEffect::GetOpName String_256 pstrOpName  )  [virtual]
 

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/09/2004
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

Reimplemented from Operation.

Definition at line 3449 of file opliveeffects.cpp.

03450 {
03451     *pstrOpName = String_256(_R(IDS_LE_OPDELETE));
03452 }

OpState OpDeleteAllLiveEffect::GetState String_256 pstrDescription,
OpDescriptor pOpDesc
[static]
 

Author:
Phil_Martin (Xara Group Ltd) <camelotdev@xara.com>
Date:
10/09/2004
Parameters:
[INPUTS] 
[OUTPUTS] 
Returns:

Errors: See also:

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 }

virtual BOOL OpDeleteAllLiveEffect::MayChangeNodeBounds  )  const [inline, virtual]
 

Reimplemented from SelOperation.

Definition at line 484 of file opliveeffects.h.

00484 { return TRUE; }


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:57:52 2007 for Camelot by  doxygen 1.4.4