OSDN Git Service

リンク処理記載
[nlite/nlite.git] / nlite / nlite.h
1 #pragma once
2
3
4
5 namespace nlite{
6
7         //\83N\83\89\83X\90æ\8ds\90é\8c¾
8         class CApplicationInfo;
9         class CListenerList;
10         struct Property;
11
12         //\83O\83\8d\81[\83o\83\8b
13         extern const CApplicationInfo * appInfo;
14         extern CListenerList listenerList;
15         extern VOID UnexpectedErrorMessageShow(LPCTSTR headMessage,LPCTSTR summary,UINT line,LPCTSTR fileName,LPCTSTR function);
16         
17         //\83A\83v\83\8a\83P\81[\83V\83\87\83\93\83v\83\8d\83p\83e\83B
18         extern Property nliteProperty;                                          
19         const static UINT_PTR COMMENTVIEW_HEADERITEMSIZE = 5;
20         enum MESSAGE{
21                 UM_COMMENTVIEW_SETCTRL = WM_USER + 1,
22
23         };
24
25         ///
26         ///\90Ý\92è\83t\83@\83C\83\8b\82Ìxml\93Ç\82Ý\8eæ\82è\97p\83N\83\89\83X
27         ///
28         class CXmlParser:public CExpatImpl<CXmlParser>{
29
30         public:
31                 ///
32                 ///\83R\83\93\83X\83g\83\89\83N\83^
33                 ///
34                 CXmlParser(){
35                         this->Create();
36                         return;
37                 }
38
39
40                 void OnPostCreate (){
41
42                         EnableStartElementHandler ();
43                         EnableEndElementHandler ();
44                         EnableCharacterDataHandler ();
45                 }
46
47                 virtual void OnStartElement (const XML_Char *pszName, const XML_Char **papszAttrs){}
48
49                 virtual void OnEndElement (const XML_Char *pszName){}
50
51                 virtual void OnCharacterData (const XML_Char *pszData, int nLength){}
52         };
53
54         
55
56 }