#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 m_lstHorModes, m_lstVerModes, m_lstFactors, m_lstTextSizes, m_lstTextStyles; Adesk::UInt16 m_nTextColor; BOOL m_bParentTextWrap; void InitComBox(CComboBox& combox, const DList &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