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

71 lines
1.8 KiB
C++

#ifndef __GRIDSTYLE_DIALOG_H
#define __GRIDSTYLE_DIALOG_H
#include "adui.h"
#include "acui.h"
/////////////////////////////////////////////////////////////////////////////
// CCellDialog dialog
class TDbSheet;
class TGridCell;
extern AcDb::TextHorzMode Index2HorMode(int nIndex);
extern AcDb::TextVertMode Index2VerMode(int nIndex);
extern int HorMode2Index(AcDb::TextHorzMode nHorMode);
extern int VerMode2Index(AcDb::TextVertMode nVerMode);
extern const TCHAR * g_szHorModes[];
extern const TCHAR * g_szVerModes[];
extern const TCHAR * g_szFactors[];
extern const TCHAR * g_szTextSizes[];
class CGridStyleDialog: public CAcUiDialog {
protected:
DList<XString> m_lstHorModes,
m_lstVerModes,
m_lstFactors,
m_lstTextSizes,
m_lstTextStyles;
Adesk::UInt16 m_nTextColor;
BOOL m_bParentTextWrap;
void InitComBox(CComboBox& combox, const DList<XString> &lstString);
public:
CGridStyleDialog(UINT id, CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGridStyleDialog)
CComboBox m_factorBox;
CComboBox m_textSizeBox;
CComboBox m_verModeBox;
CComboBox m_textStyleBox;
CComboBox m_horModeBox;
CAcUiColorComboBox m_colorComboBox;
int m_nHorMode;
CString m_csLineSpaceFactor;
CString m_csTextSize;
int m_nTextStyle;
BOOL m_bTextWrap;
int m_nVerMode;
BOOL m_bInheritWrapText;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGridStyleDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CGridStyleDialog)
virtual BOOL OnInitDialog();
afx_msg void OnInheritTextwrap();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif