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_ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 #endif // PDF_ENABLE_XFA | 76 #endif // PDF_ENABLE_XFA |
77 | 77 |
78 virtual FX_FLOAT GetMinWidth() const; | 78 virtual FX_FLOAT GetMinWidth() const; |
79 virtual FX_FLOAT GetMinHeight() const; | 79 virtual FX_FLOAT GetMinHeight() const; |
80 // define layout order to 5. | 80 // define layout order to 5. |
81 virtual int GetLayoutOrder() const { return 5; } | 81 virtual int GetLayoutOrder() const { return 5; } |
82 | 82 |
83 virtual CPDF_Annot* GetPDFAnnot() const { return nullptr; } | 83 virtual CPDF_Annot* GetPDFAnnot() const { return nullptr; } |
84 | 84 |
85 #ifdef PDF_ENABLE_XFA | 85 #ifdef PDF_ENABLE_XFA |
86 virtual IXFA_Widget* GetXFAWidget() const { return nullptr; } | 86 virtual CXFA_FFWidget* GetXFAWidget() const { return nullptr; } |
87 #endif // PDF_ENABLE_XFA | 87 #endif // PDF_ENABLE_XFA |
88 | 88 |
89 virtual CFX_ByteString GetType() const { return ""; } | 89 virtual CFX_ByteString GetType() const { return ""; } |
90 virtual CFX_ByteString GetSubType() const { return ""; } | 90 virtual CFX_ByteString GetSubType() const { return ""; } |
91 | 91 |
92 virtual void SetRect(const CFX_FloatRect& rect) {} | 92 virtual void SetRect(const CFX_FloatRect& rect) {} |
93 virtual CFX_FloatRect GetRect() const { return CFX_FloatRect(); } | 93 virtual CFX_FloatRect GetRect() const { return CFX_FloatRect(); } |
94 | 94 |
95 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, | 95 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, |
96 CFX_Matrix* pUser2Device, | 96 CFX_Matrix* pUser2Device, |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 const CFX_ByteString& sAPState = ""); | 213 const CFX_ByteString& sAPState = ""); |
214 | 214 |
215 protected: | 215 protected: |
216 CPDF_Annot* m_pAnnot; | 216 CPDF_Annot* m_pAnnot; |
217 | 217 |
218 private: | 218 private: |
219 FX_BOOL CreateFormFiller(); | 219 FX_BOOL CreateFormFiller(); |
220 }; | 220 }; |
221 | 221 |
222 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 222 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
OLD | NEW |