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.
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//<2F>ļ<EFBFBD> ActionDeleteItem.h
|
|
|
|
|
|
//<2F><>Ҫ<EFBFBD><D2AA><EFBFBD><EFBFBD>:
|
|
|
|
|
|
//
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>д: 2006-12-07
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "actionitem.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace NAction
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* ɾ<EFBFBD><EFBFBD>Ԫ<EFBFBD>ص<EFBFBD> Action<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD>ܹ<EFBFBD>ʵ<EFBFBD>ֳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
*/
|
|
|
|
|
|
class CActionDeleteItem :
|
|
|
|
|
|
public CActionItem
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CActionDeleteItem();
|
|
|
|
|
|
CActionDeleteItem(CSigmaDoc * ppDoc, UINT actionType, const CPositionList& list);
|
|
|
|
|
|
CActionDeleteItem(CSigmaDoc * ppDoc, UINT actionType);
|
|
|
|
|
|
virtual ~CActionDeleteItem(void);
|
|
|
|
|
|
|
|
|
|
|
|
std::string GetActionName() const override
|
|
|
|
|
|
{
|
|
|
|
|
|
return typeid(*this).name();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual void Undo(void);
|
|
|
|
|
|
virtual void Redo(void);
|
|
|
|
|
|
virtual void Finish();
|
|
|
|
|
|
virtual void Clear(void);
|
|
|
|
|
|
|
|
|
|
|
|
void accept(CActionVisitor& visitor) override;
|
|
|
|
|
|
|
|
|
|
|
|
virtual void RemoveOperation();
|
|
|
|
|
|
BOOL m_bPerformOperation = FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
friend class BlobSerializer;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
void AddOperation();
|
|
|
|
|
|
|
|
|
|
|
|
bool m_bDeleted = false;
|
|
|
|
|
|
std::vector<long> m_pos;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
};
|