109 lines
2.3 KiB
C++
109 lines
2.3 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TDbProtectEntity.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 受保护对象类的声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _TDBPROTECTENTITY_H_
|
|
#define _TDBPROTECTENTITY_H_
|
|
|
|
#ifndef _TACSTRING_H_
|
|
#include "TACString.h"
|
|
#endif
|
|
|
|
#ifndef _TWCSTRING_H_
|
|
#include "TWCString.h"
|
|
#endif
|
|
|
|
#ifndef _TDPTRLIST_H_
|
|
#include "TDPtrList.h"
|
|
#endif
|
|
|
|
#ifndef _TOBJINFOUNIT_H_
|
|
#include "TObjInfoUnit.h"
|
|
#endif
|
|
|
|
#ifndef _TDBENTITY_H_
|
|
#include "TDbEntity.h"
|
|
#endif
|
|
|
|
class TARCH_EXP TDbProtectEntity : public TDbEntity
|
|
{
|
|
DECLARE_TENTBASE();
|
|
|
|
ACRX_DECLARE_MEMBERS(TDbProtectEntity);
|
|
|
|
public:
|
|
TDbProtectEntity();
|
|
|
|
~TDbProtectEntity();
|
|
|
|
void SetName(const TCHAR* sName);
|
|
|
|
const TCHAR* GetName()const;
|
|
|
|
void SetCode(const TCHAR* sCode);
|
|
|
|
const TCHAR* GetCode()const;
|
|
|
|
void SetCode1(const TCHAR* sCode);
|
|
|
|
const TCHAR* GetCode1()const;
|
|
|
|
void SetProtectPrint(bool bFix = true);
|
|
|
|
bool IsProtectPrint()const;
|
|
|
|
AcDbObjectId GetBlockRecordId()const;
|
|
|
|
bool CanExplode()const;
|
|
|
|
virtual Acad::ErrorStatus dwgInFields (AcDbDwgFiler*);
|
|
|
|
virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler*) const;
|
|
|
|
virtual Acad::ErrorStatus dxfInFields(AcDbDxfFiler*);
|
|
|
|
virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler*) const;
|
|
|
|
virtual Acad::ErrorStatus subDeepClone(AcDbObject* pOwner,
|
|
AcDbObject*& pClonedObject,
|
|
AcDbIdMapping& idMap,
|
|
Adesk::Boolean isPrimary) const;
|
|
|
|
virtual Acad::ErrorStatus subWblockClone(AcRxObject* pOwner,
|
|
AcDbObject*& pClonedObject,
|
|
AcDbIdMapping& idMap,
|
|
Adesk::Boolean isPrimary) const;
|
|
|
|
virtual Acad::ErrorStatus subExplode(AcDbVoidPtrArray&entitySet)const;
|
|
|
|
virtual Adesk::Boolean subWorldDraw(AcGiWorldDraw*pWd);
|
|
|
|
virtual void subViewportDraw(AcGiViewportDraw*pVd);
|
|
|
|
virtual void GetTips(TDPtrList<TObjInfoUnit>&lstInfo)const;
|
|
|
|
virtual int GetFirstVersion()const;
|
|
|
|
protected:
|
|
//6.5数据
|
|
TCString m_sName;//命名
|
|
|
|
TCString m_sCode;//分解密码
|
|
|
|
TCString m_sCode1;//明码,不存盘
|
|
|
|
//7.0数据
|
|
Adesk::Int32 m_iFlag;//控制标记
|
|
|
|
private:
|
|
|
|
const static Adesk::UInt8 g_nVersion;
|
|
};
|
|
|
|
#endif |