34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
#ifndef __BLOPTION_H
|
|
#define __BLOPTION_H
|
|
|
|
#define LO_FIXED_SCALE 0x01//固定比例
|
|
#define LO_FIXED_ROTATION 0x02//固定角度
|
|
#define LO_MULTI_INSERT 0x04//多个插入
|
|
#define LO_SPECIFY_XYZ 0x08//指定XYZ尺寸
|
|
#define LO_FIXDIMENSION_R 0x10//相同XYZ尺寸的替换
|
|
#define LO_ALLINSERT_R 0x20//一次替换所有的同名块
|
|
#define LO_FIX_POINT 0x100//对齐基点和控制点替换,add by whl
|
|
class XDbfTable;
|
|
class DwbStruct {
|
|
public:
|
|
XString sKind,sItem, sDrawing; //类别,名称,内部图名
|
|
static const TCHAR *szTileKeys[];
|
|
static int nTileNum;
|
|
public:
|
|
DwbStruct(const TCHAR *kind, const TCHAR *item, const TCHAR *drawing):
|
|
sKind(kind), sItem(item), sDrawing(drawing) {}
|
|
DwbStruct(const DwbStruct &src):sKind(src.sKind), sItem(src.sItem), sDrawing(src.sDrawing){}
|
|
DwbStruct() {}
|
|
DwbStruct(XDbfTable *table);
|
|
void UpdateTable(XDbfTable *table);
|
|
XString & NthValue(int i)
|
|
{
|
|
if(i==0)
|
|
return sKind;
|
|
else if(i==1)
|
|
return sItem;
|
|
return sDrawing;
|
|
}
|
|
static int SortByItem(const DwbStruct *, const DwbStruct *);
|
|
};
|
|
#endif |