48 lines
1.2 KiB
C++
48 lines
1.2 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__)
|