| 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_FSDK_BASEANNOT_H_ | 7 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 8 #define FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| 9 | 9 |
| 10 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
| 11 #include "time.h" | 11 #include "time.h" |
| 12 #else | 12 #else |
| 13 #include <ctime> | 13 #include <ctime> |
| 14 #endif | 14 #endif |
| 15 | 15 |
| 16 #include "core/include/fpdfdoc/fpdf_doc.h" | 16 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 17 #include "core/include/fxcrt/fx_basic.h" | 17 #include "core/include/fxcrt/fx_basic.h" |
| 18 #include "fx_systemhandler.h" | 18 #include "fpdfsdk/include/fsdk_define.h" |
| 19 #include "fpdfsdk/include/fx_systemhandler.h" |
| 19 | 20 |
| 20 class CPDFSDK_PageView; | 21 class CPDFSDK_PageView; |
| 21 class CPDF_Annot; | 22 class CPDF_Annot; |
| 22 class CPDF_Page; | 23 class CPDF_Page; |
| 23 class CPDF_Rect; | 24 class CPDF_Rect; |
| 24 class CPDF_Matrix; | 25 class CPDF_Matrix; |
| 25 class CPDF_RenderOptions; | 26 class CPDF_RenderOptions; |
| 26 class CFX_RenderDevice; | 27 class CFX_RenderDevice; |
| 27 | 28 |
| 28 #define CFX_IntArray CFX_ArrayTemplate<int> | 29 #define CFX_IntArray CFX_ArrayTemplate<int> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual CFX_ByteString GetType() const { return ""; } | 85 virtual CFX_ByteString GetType() const { return ""; } |
| 85 virtual CFX_ByteString GetSubType() const { return ""; } | 86 virtual CFX_ByteString GetSubType() const { return ""; } |
| 86 | 87 |
| 87 virtual void SetRect(const CPDF_Rect& rect) {} | 88 virtual void SetRect(const CPDF_Rect& rect) {} |
| 88 virtual CPDF_Rect GetRect() const { return CPDF_Rect(); } | 89 virtual CPDF_Rect GetRect() const { return CPDF_Rect(); } |
| 89 | 90 |
| 90 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, | 91 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, |
| 91 CPDF_Matrix* pUser2Device, | 92 CPDF_Matrix* pUser2Device, |
| 92 CPDF_RenderOptions* pOptions) {} | 93 CPDF_RenderOptions* pOptions) {} |
| 93 | 94 |
| 95 UnderlyingPageType* GetUnderlyingPage(); |
| 94 CPDF_Page* GetPDFPage(); | 96 CPDF_Page* GetPDFPage(); |
| 95 CPDFXFA_Page* GetPDFXFAPage(); | 97 CPDFXFA_Page* GetPDFXFAPage(); |
| 96 | 98 |
| 97 void SetPage(CPDFSDK_PageView* pPageView) { m_pPageView = pPageView; } | 99 void SetPage(CPDFSDK_PageView* pPageView) { m_pPageView = pPageView; } |
| 98 CPDFSDK_PageView* GetPageView() const { return m_pPageView; } | 100 CPDFSDK_PageView* GetPageView() const { return m_pPageView; } |
| 99 | 101 |
| 100 // Tab Order | 102 // Tab Order |
| 101 int GetTabOrder(); | 103 int GetTabOrder(); |
| 102 void SetTabOrder(int iTabOrder); | 104 void SetTabOrder(int iTabOrder); |
| 103 | 105 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 const CFX_ByteString& sAPState = ""); | 204 const CFX_ByteString& sAPState = ""); |
| 203 | 205 |
| 204 protected: | 206 protected: |
| 205 CPDF_Annot* m_pAnnot; | 207 CPDF_Annot* m_pAnnot; |
| 206 | 208 |
| 207 private: | 209 private: |
| 208 FX_BOOL CreateFormFiller(); | 210 FX_BOOL CreateFormFiller(); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 213 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |