| 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 public: | 11 public: |
| 12 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); | 12 CPDFXFA_Page(CPDFXFA_Document* pDoc, int page_index); |
| 13 ~CPDFXFA_Page(); | 13 ~CPDFXFA_Page(); |
| 14 | 14 |
| 15 void Release(); | 15 void Release(); |
| 16 void AddRef() { m_iRef++; } | 16 void AddRef() { m_iRef++; } |
| 17 FX_BOOL LoadPage(); | 17 FX_BOOL LoadPage(); |
| 18 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); | 18 FX_BOOL LoadPDFPage(CPDF_Dictionary* pageDict); |
| 19 CPDFXFA_Document* GetDocument() { return m_pDocument; } | 19 CPDFXFA_Document* GetDocument() { return m_pDocument; } |
| 20 int GetPageIndex() { return m_iPageIndex; } | 20 int GetPageIndex() { return m_iPageIndex; } |
| 21 CPDF_Page* GetPDFPage() { return m_pPDFPage; } | 21 CPDF_Page* GetPDFPage() { return m_pPDFPage; } |
| 22 IXFA_PageView* GetXFAPageView() { return m_pXFAPageView; } | 22 IXFA_PageView* GetXFAPageView() { return m_pXFAPageView; } |
| 23 void SetXFAPageView(IXFA_PageView* pPageView) { m_pXFAPageView = pPageView; } |
| 23 | 24 |
| 24 FX_FLOAT GetPageWidth(); | 25 FX_FLOAT GetPageWidth(); |
| 25 FX_FLOAT GetPageHeight(); | 26 FX_FLOAT GetPageHeight(); |
| 26 | 27 |
| 27 void DeviceToPage(int start_x, | 28 void DeviceToPage(int start_x, |
| 28 int start_y, | 29 int start_y, |
| 29 int size_x, | 30 int size_x, |
| 30 int size_y, | 31 int size_y, |
| 31 int rotate, | 32 int rotate, |
| 32 int device_x, | 33 int device_x, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 CPDF_Page* m_pPDFPage; | 59 CPDF_Page* m_pPDFPage; |
| 59 IXFA_PageView* m_pXFAPageView; | 60 IXFA_PageView* m_pXFAPageView; |
| 60 int m_iPageIndex; | 61 int m_iPageIndex; |
| 61 CPDFXFA_Document* m_pDocument; | 62 CPDFXFA_Document* m_pDocument; |
| 62 int m_iRef; | 63 int m_iRef; |
| 63 }; | 64 }; |
| 64 | 65 |
| 65 #endif | 66 #endif |
| OLD | NEW |