#include <attrappl.h>
Inheritance diagram for OpApplyAttribsToSelected:
Public Member Functions | |
OpApplyAttribsToSelected () | |
OpApplyAttribsToSelected constructor. | |
void | DoWithParam (OpDescriptor *OpDesc, OpParam *pOpParam) |
Performs the OpApplyAttribsToSelected operation. This tries to apply the list of attributes in the OpParam->AttribsToApplyList to the selection. If no attribute can be applied then the operation does not generate any actions, and so will be a NOP and be destroyed during End(). | |
virtual void | GetOpName (String_256 *OpName) |
The GetOpName fn is overridden so that we can return a string suitable for our purposes. | |
List * | GetAttributeList () |
Static Public Member Functions | |
static BOOL | Init () |
OpApplyAttribsToSelected initialiser method. | |
static OpState | GetState (String_256 *, OpDescriptor *) |
For finding OpApplyAttribsToSelected state. | |
Protected Attributes | |
UINT32 | UndoAttribStrID |
List * | m_pAttribList |
Definition at line 286 of file attrappl.h.
|
OpApplyAttribsToSelected constructor.
Definition at line 2274 of file attrappl.cpp. 02274 : OpApplyAttrib() 02275 { 02276 ValueChangeType = NULL; // ?? 02277 MergeRepeats = FALSE; // ?? 02278 m_pAttribList = NULL; 02279 02280 }
|
|
Performs the OpApplyAttribsToSelected operation. This tries to apply the list of attributes in the OpParam->AttribsToApplyList to the selection. If no attribute can be applied then the operation does not generate any actions, and so will be a NOP and be destroyed during End().
OpParam->undoAttribStrID: Specifies the undo string to display (eg. Paste Atrributes)
Whenever an attribute is applied to an object, the Current AttributeGroup associated with the object is added to the attributes set of current attribute groups. Therefore if an attribute's set is empty then we know that the attribute has not been applied. OpParam->Success: FALSE if the operation failed. i.e. FailAndExecute() was called. anyAttrsApplied: FALSE if the operation has not applied any attributes This Operation currently does not support mutation Reimplemented from Operation. Definition at line 2326 of file attrappl.cpp. 02329 { 02330 #ifndef STANDALONE 02331 BeginSlowJob(); 02332 02333 UndoAttribStrID = ((ApplyAttribsToSelectedParam*)pOpParam)->UndoAttribStrID; // TODO: Fix this? 02334 02335 /*BOOL bOK = */DoApplyAttribsToSelection(pOpParam, TRUE); 02336 02337 EndSlowJob(); 02338 02339 #else 02340 End(); 02341 #endif // STAND_ALONE 02342 02343 }
|
|
Definition at line 298 of file attrappl.h. 00298 { return m_pAttribList; }
|
|
The GetOpName fn is overridden so that we can return a string suitable for our purposes.
Reimplemented from Operation. Definition at line 2779 of file attrappl.cpp. 02780 { 02781 02782 *OpName = String_256(UndoAttribStrID); 02783 }
|
|
For finding OpApplyAttribsToSelected state.
Definition at line 2760 of file attrappl.cpp. 02761 { 02762 OpState OpSt; 02763 return(OpSt); 02764 }
|
|
OpApplyAttribsToSelected initialiser method.
Reimplemented from SimpleCCObject. Definition at line 2732 of file attrappl.cpp. 02733 { 02734 // Register the opdescriptor. Don't need to do it the posh way cos this op will 02735 // not be connected directly to the interface. 02736 OpDescriptor* OpDesc = new OpDescriptor(0, 02737 _R(IDS_APPLYATTRIBOP), // Never used 02738 CC_RUNTIME_CLASS(OpApplyAttribsToSelected), 02739 OPTOKEN_APPLYATTRIBS, 02740 OpApplyAttribsToSelected::GetState); 02741 ERRORIF(!OpDesc, _R(IDE_NOMORE_MEMORY), FALSE); 02742 02743 return(TRUE); 02744 }
|
|
Definition at line 302 of file attrappl.h. |
|
Definition at line 301 of file attrappl.h. |