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

99 lines
2.7 KiB
C++

#if !defined(AFX_TEXTSTYLEDLG_H__6C92C84F_F728_487E_84D6_9AAB645CDD4A__INCLUDED_)
#define AFX_TEXTSTYLEDLG_H__6C92C84F_F728_487E_84D6_9AAB645CDD4A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TextStyleDlg.h : header file
//
#include "Resource.h"
#include "GsPreviewCtrl.h"
/////////////////////////////////////////////////////////////////////////////
// CTextStyleDlg dialog
class CTextStyleDlg : public CModelessDialog
{
private:
CGsPreviewCtrl mPreviewCtrl;
AcDbDatabase mPreviewDb;
AcDbObjectId mIdText;
BOOL m_bInitReady;
// Construction
public:
CTextStyleDlg(CWnd* pParent = NULL); // standard constructor
~CTextStyleDlg();
// Dialog Data
//{{AFX_DATA(CTextStyleDlg)
enum { IDD = IDD_TEXTSTYLE };
CAcUiColorComboBox m_colorComboBox;
CComboBox m_comboStyleName;
CComboBox m_comboShapes;
CComboBox m_comboBigFont;
CString m_strTextHeight;
int m_nType;
CString m_strStyleName;
CString m_strBigFont;
CString m_strShapes;
CString m_strPreText;
double m_nHScale;
double m_nWHScale;
double m_nWScale;
//}}AFX_DATA
Adesk::UInt16 m_nTextColor;
XStringList m_lstBigfonts, m_lstShapes, m_lstStyle, m_lstStyleOnUsed;
BOOL m_bIsRename;
CString m_strFontName;
void Obj2Dlg();
BOOL Dlg2Obj(CString strTextStyle);
BOOL WriteRecord(AcDbTextStyleTableRecord* pRec);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTextStyleDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
void GetSearchPathEx(TCStringList &lstSearchPath);
// Implementation
protected:
void UpdatePreview();
void UpdateDlg();
void LoadStyleOnUsed();
void LoadFontList();
void LoadFontStyleList();
void GetFontInfo(CString& strFontName, CString& strShapes,
double& nWHScale, CString& strTextHeight,
double& nHeightFactor, double& nWidthFactor,
int& nFontType, Adesk::UInt16& nTextColor);
BOOL AddNewFontStyle(CString strNewStyle);
void RenameFontStyle(CString strOld, CString strNew);
void ResetCombo();
BOOL Check();
// Generated message map functions
//{{AFX_MSG(CTextStyleDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeComboStylename();
afx_msg void OnButtonCreate();
afx_msg void OnButtonRename();
afx_msg void OnButtonDel();
virtual void OnOK();
virtual void OnCancel();
afx_msg void OnButtonPreview();
afx_msg void OnSelchangeComboTextstyle();
afx_msg void OnSelchangeComboTextstyleEng();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEXTSTYLEDLG_H__6C92C84F_F728_487E_84D6_9AAB645CDD4A__INCLUDED_)