OpApplyNamesToOne Class Reference

#include <ngsetop.h>

Inheritance diagram for OpApplyNamesToOne:

UndoableOperation Operation MessageHandler ListItem CCObject SimpleCCObject List of all members.

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.

Detailed Description

Definition at line 215 of file ngsetop.h.


Member Function Documentation

OpApplyNamesToOne::CC_DECLARE_DYNCREATE OpApplyNamesToOne   )  [private]
 

void OpApplyNamesToOne::DoWithParam OpDescriptor ,
OpParam pParam
[private, virtual]
 

Performs the OPTOKEN_APPLY_NAMES_TO_ONE operation which applies the highlighted names to the given object.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/7/99
Parameters:
pParam->Param1 --- pointer to the Node to apply to, cast to a INT32 [INPUTS]
See also:
GalleryNameDragInfo

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 }

OpState OpApplyNamesToOne::GetState String_256 ,
OpDescriptor
[static]
 

Returns the UI state of OPTOKEN_APPLY_NAMES_TO_ONE, OPTOKEN_DELETE_NAMES_FROM_ALL, and OPTOKEN_RENAME_ALL.

Author:
Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
Date:
09/7/99

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 }

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

Reimplemented from UndoableOperation.

Definition at line 224 of file ngsetop.h.

00224 { return TRUE; }


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