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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
//////////////////////////////////////////////////////////////////////////////
//文件 ActionDeleteItem.h
//主要功能:
//
//程序编写: 2006-12-07
/////////////////////////////////////////////////////////////////////////////
# pragma once
# include "actionitem.h"
namespace NAction
{
/**
* 删除元素的 Action, 使用它是为了能够实现撤销和反撤销
*/
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 ;
} ;
} ;