OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FPDFXFA_PAGEVIEW_H_ | 7 #ifndef _FPDFXFA_PAGEVIEW_H_ |
8 #define _FPDFXFA_PAGEVIEW_H_ | 8 #define _FPDFXFA_PAGEVIEW_H_ |
9 | 9 |
10 class CPDFXFA_Page; | 10 class CPDFXFA_Page |
11 | |
12 class CPDFXFA_Page : public CFX_Object | |
13 { | 11 { |
14 public: | 12 public: |
15 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); | 13 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); |
16 ~CPDFXFA_Page(); | 14 ~CPDFXFA_Page(); |
17 | 15 |
18 void Release(); | 16 void Release(); |
19 void AddRef(){ m_iRef ++; } | 17 void AddRef(){ m_iRef ++; } |
20 FX_BOOL LoadPage(); | 18 FX_BOOL LoadPage(); |
21 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); | 19 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); |
22 CPDFXFA_Document* GetDocument() { return m_pDocument; } | 20 CPDFXFA_Document* GetDocument() { return m_pDocument; } |
(...skipping 18 matching lines...) Expand all Loading... |
41 | 39 |
42 private: | 40 private: |
43 CPDF_Page* m_pPDFPage; | 41 CPDF_Page* m_pPDFPage; |
44 IXFA_PageView* m_pXFAPageView; | 42 IXFA_PageView* m_pXFAPageView; |
45 int m_iPageIndex; | 43 int m_iPageIndex; |
46 CPDFXFA_Document* m_pDocument; | 44 CPDFXFA_Document* m_pDocument; |
47 int m_iRef; | 45 int m_iRef; |
48 }; | 46 }; |
49 | 47 |
50 #endif | 48 #endif |
OLD | NEW |