7fd59977 |
1 | // FontPropertyPage.h : header file |
2 | // |
3 | |
4 | #if !defined(AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_) |
5 | #define AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_ |
6 | |
7 | #if _MSC_VER >= 1000 |
8 | #pragma once |
9 | #endif // _MSC_VER >= 1000 |
10 | |
11 | #include "Aspect_FontMap.hxx" |
12 | #include <resource.h> |
13 | |
14 | ///////////////////////////////////////////////////////////////////////////// |
15 | // CFontPropertyPage dialog |
16 | |
17 | class CFontPropertyPage : public CPropertyPage |
18 | { |
19 | DECLARE_DYNCREATE(CFontPropertyPage) |
20 | |
21 | private : |
22 | Handle(Aspect_FontMap) myFontMap; |
23 | private : |
24 | Handle(V2d_Viewer) myViewer; |
25 | public: |
26 | void SetViewer(Handle(V2d_Viewer) aViewer) { |
27 | myViewer = aViewer; |
28 | myFontMap = aViewer->FontMap(); |
29 | }; |
30 | |
31 | // Construction |
32 | public: |
33 | CFontPropertyPage(); |
34 | ~CFontPropertyPage(); |
35 | |
36 | // Dialog Data |
37 | //{{AFX_DATA(CFontPropertyPage) |
38 | enum { IDD = IDD_DIALOG_Font }; |
39 | CString m_FontMapSize; |
40 | CTabCtrl m_TabCtrl; |
41 | CString m_CurrentEntryValue; |
42 | CString m_CurrentEntryStyle; |
43 | CString m_CurrentEntrySize; |
44 | CString m_CurrentEntrySlant; |
45 | CComboBox m_NewEntry_Type; |
46 | double m_NewEntrySize; |
47 | double m_NewEntrySlant; |
48 | CString m_NewEntryValue; |
49 | //}}AFX_DATA |
50 | |
51 | // Overrides |
52 | // ClassWizard generate virtual function overrides |
53 | //{{AFX_VIRTUAL(CFontPropertyPage) |
54 | public: |
55 | virtual BOOL OnApply(); |
56 | protected: |
57 | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support |
58 | //}}AFX_VIRTUAL |
59 | |
60 | // Implementation |
61 | protected: |
62 | // Generated message map functions |
63 | //{{AFX_MSG(CFontPropertyPage) |
64 | virtual BOOL OnInitDialog(); |
65 | afx_msg void OnSelchangeFontMapTAB(NMHDR* pNMHDR, LRESULT* pResult); |
66 | afx_msg void OnFontMapBUTTONNewEntryEditFont(); |
67 | afx_msg void OnFontMapBUTTONUpdateCurrent(); |
68 | afx_msg void OnSelchangeFontMapCOMBONewEntryType(); |
69 | afx_msg void OnFontMapBUTTONNewEntry(); |
70 | //}}AFX_MSG |
71 | DECLARE_MESSAGE_MAP() |
72 | private: |
73 | void UpdateDisplay(int CurrentSelectionIndex); |
74 | |
75 | }; |
76 | |
77 | //{{AFX_INSERT_LOCATION}} |
78 | // Microsoft Developer Studio will insert additional declarations immediately before the previous line. |
79 | |
80 | #endif // !defined(AFX_FontPropertyPage_H__A815F7A5_D51B_11D1_8DDE_0800369C8A03__INCLUDED_) |