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_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ | 7 #ifndef FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ |
8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ | 8 #define FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | |
13 #include "core/fpdfapi/include/cpdf_modulemgr.h" | |
14 #include "core/fxcrt/include/fx_coordinates.h" | |
15 #include "core/fxcrt/include/fx_system.h" | 12 #include "core/fxcrt/include/fx_system.h" |
16 | 13 |
| 14 class CFX_Matrix; |
17 class CPDFXFA_Document; | 15 class CPDFXFA_Document; |
| 16 class CPDF_Dictionary; |
18 class CPDF_Page; | 17 class CPDF_Page; |
19 class CXFA_FFPageView; | 18 class CXFA_FFPageView; |
20 | 19 |
21 class CPDFXFA_Page { | 20 class CPDFXFA_Page { |
22 public: | 21 public: |
23 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); | 22 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); |
24 | 23 |
25 void Retain() { m_iRef++; } | 24 void Retain() { m_iRef++; } |
26 void Release() { | 25 void Release() { |
27 if (--m_iRef <= 0) | 26 if (--m_iRef <= 0) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 76 |
78 private: | 77 private: |
79 std::unique_ptr<CPDF_Page> m_pPDFPage; | 78 std::unique_ptr<CPDF_Page> m_pPDFPage; |
80 CXFA_FFPageView* m_pXFAPageView; | 79 CXFA_FFPageView* m_pXFAPageView; |
81 CPDFXFA_Document* const m_pDocument; | 80 CPDFXFA_Document* const m_pDocument; |
82 const int m_iPageIndex; | 81 const int m_iPageIndex; |
83 int m_iRef; | 82 int m_iRef; |
84 }; | 83 }; |
85 | 84 |
86 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ | 85 #endif // FPDFSDK_FPDFXFA_INCLUDE_FPDFXFA_PAGE_H_ |
OLD | NEW |