99 lines
2.6 KiB
C++
99 lines
2.6 KiB
C++
#if !defined(AFX_GRIDSTYLEPAGE_H__612D6098_4E38_412B_8D93_D99AF1D14B16__INCLUDED_)
|
|
#define AFX_GRIDSTYLEPAGE_H__612D6098_4E38_412B_8D93_D99AF1D14B16__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// GridStylePage.h : header file
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// 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[];
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CGridStylePage dialog
|
|
|
|
class CGridStylePage : public CPropertyPage
|
|
{
|
|
DECLARE_DYNCREATE(CGridStylePage)
|
|
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);
|
|
void _CGridStylePage();
|
|
// Construction
|
|
public:
|
|
CGridStylePage();
|
|
CGridStylePage(UINT id);
|
|
~CGridStylePage();
|
|
void InitDataMember(BOOL bInherit=FALSE);
|
|
|
|
void Obj2Dlg(const TGridStyle &);
|
|
void Dlg2Obj(TGridStyle &) const;
|
|
// 有继承的版本
|
|
void Obj2Dlg(const TGridStyle &styleLocal, const TGridStyle &styleParent);
|
|
void Dlg2Obj(TGridStyle &styleLocal, const TGridStyle &styleParent) const;
|
|
|
|
BOOL m_bInherit; //是否存在继承
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CGridStylePage)
|
|
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 generate virtual function overrides
|
|
//{{AFX_VIRTUAL(CGridStylePage)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CGridStylePage)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnInheritTextwrap();
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_GRIDSTYLEPAGE_H__612D6098_4E38_412B_8D93_D99AF1D14B16__INCLUDED_)
|