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 FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ | 7 #ifndef FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ |
8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ | 8 #define FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ |
9 | 9 |
| 10 class CPDF_Page; |
| 11 |
10 class CPDFXFA_Page { | 12 class CPDFXFA_Page { |
11 public: | 13 public: |
12 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); | 14 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); |
13 ~CPDFXFA_Page(); | 15 ~CPDFXFA_Page(); |
14 | 16 |
15 void Release(); | 17 void Release(); |
16 void AddRef() { m_iRef++; } | 18 void AddRef() { m_iRef++; } |
17 FX_BOOL LoadPage(); | 19 FX_BOOL LoadPage(); |
18 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); | 20 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); |
19 CPDFXFA_Document* GetDocument() { return m_pDocument; } | 21 CPDFXFA_Document* GetDocument() { return m_pDocument; } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 59 |
58 private: | 60 private: |
59 CPDF_Page* m_pPDFPage; | 61 CPDF_Page* m_pPDFPage; |
60 IXFA_PageView* m_pXFAPageView; | 62 IXFA_PageView* m_pXFAPageView; |
61 int m_iPageIndex; | 63 int m_iPageIndex; |
62 CPDFXFA_Document* m_pDocument; | 64 CPDFXFA_Document* m_pDocument; |
63 int m_iRef; | 65 int m_iRef; |
64 }; | 66 }; |
65 | 67 |
66 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ | 68 #endif // FPDFSDK_INCLUDE_FPDFXFA_FPDFXFA_PAGE_H_ |
OLD | NEW |