Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa_test / FormFiller_Test / BookMarkView.h
1 #if !defined(AFX_BOOKMARKVIEW_H__B1EB2803_BE21_4768_A54B_2DE1E0FC968A__INCLUDED_)\r
2 #define AFX_BOOKMARKVIEW_H__B1EB2803_BE21_4768_A54B_2DE1E0FC968A__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 // BookMarkView.h : header file\r
8 //\r
9 \r
10 class CChildFrame;\r
11 class CReaderVCDoc;\r
12 /////////////////////////////////////////////////////////////////////////////\r
13 // CBookMarkView view\r
14 \r
15 class CBookMarkView : public CTreeView\r
16 {\r
17 protected:\r
18         CBookMarkView();           // protected constructor used by dynamic creation\r
19         DECLARE_DYNCREATE(CBookMarkView)\r
20 \r
21 // Attributes\r
22 public:\r
23         CChildFrame *m_pFram;\r
24         FPDF_DOCUMENT m_pDoc;\r
25         HTREEITEM m_hItemRoot;\r
26         CReaderVCDoc* GetDocument();\r
27 // Operations\r
28 public:\r
29         void InsertChildItem(FPDF_BOOKMARK bookmark, HTREEITEM hItem, CTreeCtrl &treectrl);\r
30 \r
31 // Overrides\r
32         // ClassWizard generated virtual function overrides\r
33         //{{AFX_VIRTUAL(CBookMarkView)\r
34         public:\r
35         virtual void OnInitialUpdate();\r
36         protected:\r
37         virtual void OnDraw(CDC* pDC);      // overridden to draw this view\r
38         //}}AFX_VIRTUAL\r
39 \r
40 // Implementation\r
41 protected:\r
42         virtual ~CBookMarkView();\r
43 #ifdef _DEBUG\r
44         virtual void AssertValid() const;\r
45         virtual void Dump(CDumpContext& dc) const;\r
46 #endif\r
47 \r
48         // Generated message map functions\r
49 protected:\r
50         //{{AFX_MSG(CBookMarkView)\r
51         afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);\r
52         //}}AFX_MSG\r
53         DECLARE_MESSAGE_MAP()\r
54 private:\r
55         CMap<HTREEITEM, HTREEITEM&, CPoint, CPoint&> m_PosMap; \r
56 };\r
57 \r
58 #ifndef _DEBUG  // debug version in PDFReaderVCView.cpp\r
59 inline CReaderVCDoc* CBookMarkView::GetDocument()\r
60 { return (CReaderVCDoc*)m_pDocument; }\r
61 #endif\r
62 /////////////////////////////////////////////////////////////////////////////\r
63 \r
64 //{{AFX_INSERT_LOCATION}}\r
65 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
66 \r
67 #endif // !defined(AFX_BOOKMARKVIEW_H__B1EB2803_BE21_4768_A54B_2DE1E0FC968A__INCLUDED_)\r