OSDN Git Service

Avoid an assertion failure when loading settings from winmerge.ini
[winmerge-jp/winmerge-jp.git] / Src / PropEditorSyntax.h
1 /** 
2  * @file  PropEditorSyntax.h
3  *
4  * @brief Declaration file for PropEditorSyntax propertyheet
5  *
6  */
7 #pragma once
8
9 #include "OptionsPanel.h"
10 #include "UnicodeString.h"
11 #include "SubeditList.h"
12 #include "ccrystaltextview.h"
13
14 class COptionsMgr;
15
16 /**
17  * @brief Property page to set file type extension options for WinMerge.
18  */
19 class PropEditorSyntax : public OptionsPanel
20 {
21 // Construction
22 public:
23         explicit PropEditorSyntax(COptionsMgr *optionsMgr);
24
25 // Implement IOptionsPanel
26         virtual void ReadOptions() override;
27         virtual void WriteOptions() override;
28
29 // Dialog Data
30         //{{AFX_DATA(PropEditor)
31         enum { IDD = IDD_PROPPAGE_EDITOR_SYNTAX };
32         CSubeditList m_listSyntax;
33         //}}AFX_DATA
34
35 private:
36         bool m_init;
37         String m_Extension[CrystalLineParser::SRC_XML];
38
39 // Implementation methods
40         void InitList();
41
42 // Overrides
43         // ClassWizard generated virtual function overrides
44         //{{AFX_VIRTUAL(PropEditor)
45         protected:
46         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
47         //}}AFX_VIRTUAL
48
49 // Implementation
50 protected:
51
52         // Generated message map functions
53         //{{AFX_MSG(PropEditor)
54         afx_msg BOOL OnInitDialog() override;
55         afx_msg void OnDefaults();
56         //}}AFX_MSG
57         DECLARE_MESSAGE_MAP()
58 };