Files
envi-code/SourceCode/Code2026/ThunderProof/DrawSheet.h
T
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

48 lines
1.3 KiB
C++

// = FileName: DrawSheet.h
// = Date: 2008/07/08
// = Description: 操作表格
// = Maintainers:
#ifndef _DRAWSHEET_H__
#define _DRAWSHEET_H__
#if _MSC_VER > 1000
#pragma once
#endif
#include <dbgridsheet.h>
class TelDrawSheet
{
public:
TelDrawSheet();
virtual ~TelDrawSheet();
public:
void SetLayer(LPCTSTR lpLayer); //设置层
void SetGridStyle(const TGridStyle &style); //设置风格
void SetRowHeight(double dHeight); //设置行高
void SetTitleHeight(double dHeight);//设置标题高度
void SetTitleVisible(BOOL bShow); //是否显示标题
void SetLocation(AcGePoint3d pt);//插入表的坐标
void SetRotation(double dRotate);//角度
void InitSheet(int nRow,int nCol,double dRowHeight,double dColHeight); //初始化表
void AddRowAt(int i);
void SetColumnText(int nCol,LPCTSTR lpText,double dWidth);//列文字
void SetText(int nRow,int nCol,LPCTSTR lpText);//表内容
void SetTitleText(LPCTSTR lpText);//标题文字
void SetTitleTestStyle(const TGridStyle &gridStyle);//设置标题风格
void RemoveColumn(int nCol); //删除列
void RemoveRow(int nRow);//删除行
void MergeCells(int nRowFrom,int nColFrom,int nRowTo,int nColTo);//合并单元格
void AddToCSpace(BOOL bShow);
private:
AecDbSheet *m_pSheet;
};
#endif // !defined(_DRAWSHEET_H__)