You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
781 B
C++
35 lines
781 B
C++
//////////////////////////////////////////////////////////////////////////////
|
|
//Àà: ActionReplaceNameItem
|
|
//Ö÷Òª¹¦ÄÜ:
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
#include "actionitem.h"
|
|
|
|
namespace NAction
|
|
{
|
|
class CActionReplaceNameItem :
|
|
public CActionItem
|
|
{
|
|
public:
|
|
CActionReplaceNameItem();
|
|
CActionReplaceNameItem(CSigmaDoc * ppDoc, UINT actionType, COne* pOne, CString strOldName, CString strNewName);
|
|
virtual ~CActionReplaceNameItem(void);
|
|
|
|
std::string GetActionName() const override
|
|
{
|
|
return typeid(*this).name();
|
|
}
|
|
|
|
virtual void Undo(void);
|
|
virtual void Redo(void);
|
|
|
|
void accept(CActionVisitor& visitor) override;
|
|
|
|
CString m_strOldName;
|
|
CString m_strNewName;
|
|
COne* m_pOne = nullptr;
|
|
};
|
|
};
|