| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 IXFA_Widget* 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 CPDF_Rect& rect) {} |
| 93 virtual CFX_FloatRect GetRect() const { return CFX_FloatRect(); } | 93 virtual CPDF_Rect GetRect() const { return CPDF_Rect(); } |
| 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, |
| 97 CPDF_RenderOptions* pOptions) {} | 97 CPDF_RenderOptions* pOptions) {} |
| 98 | 98 |
| 99 UnderlyingPageType* GetUnderlyingPage(); | 99 UnderlyingPageType* GetUnderlyingPage(); |
| 100 CPDF_Page* GetPDFPage(); | 100 CPDF_Page* GetPDFPage(); |
| 101 #ifdef PDF_ENABLE_XFA | 101 #ifdef PDF_ENABLE_XFA |
| 102 CPDFXFA_Page* GetPDFXFAPage(); | 102 CPDFXFA_Page* GetPDFXFAPage(); |
| 103 #endif // PDF_ENABLE_XFA | 103 #endif // PDF_ENABLE_XFA |
| (...skipping 19 matching lines...) Expand all Loading... |
| 123 public: | 123 public: |
| 124 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); | 124 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); |
| 125 ~CPDFSDK_BAAnnot() override {} | 125 ~CPDFSDK_BAAnnot() override {} |
| 126 | 126 |
| 127 #ifdef PDF_ENABLE_XFA | 127 #ifdef PDF_ENABLE_XFA |
| 128 FX_BOOL IsXFAField() override; | 128 FX_BOOL IsXFAField() override; |
| 129 #endif // PDF_ENABLE_XFA | 129 #endif // PDF_ENABLE_XFA |
| 130 | 130 |
| 131 CFX_ByteString GetType() const override; | 131 CFX_ByteString GetType() const override; |
| 132 CFX_ByteString GetSubType() const override; | 132 CFX_ByteString GetSubType() const override; |
| 133 void SetRect(const CFX_FloatRect& rect) override; | 133 void SetRect(const CPDF_Rect& rect) override; |
| 134 CFX_FloatRect GetRect() const override; | 134 CPDF_Rect GetRect() const override; |
| 135 CPDF_Annot* GetPDFAnnot() const override; | 135 CPDF_Annot* GetPDFAnnot() const override; |
| 136 void Annot_OnDraw(CFX_RenderDevice* pDevice, | 136 void Annot_OnDraw(CFX_RenderDevice* pDevice, |
| 137 CFX_Matrix* pUser2Device, | 137 CFX_Matrix* pUser2Device, |
| 138 CPDF_RenderOptions* pOptions) override; | 138 CPDF_RenderOptions* pOptions) override; |
| 139 | 139 |
| 140 CPDF_Dictionary* GetAnnotDict() const; | 140 CPDF_Dictionary* GetAnnotDict() const; |
| 141 | 141 |
| 142 void SetContents(const CFX_WideString& sContents); | 142 void SetContents(const CFX_WideString& sContents); |
| 143 CFX_WideString GetContents() const; | 143 CFX_WideString GetContents() const; |
| 144 | 144 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 const CFX_Matrix* pUser2Device, | 200 const CFX_Matrix* pUser2Device, |
| 201 CPDF_Annot::AppearanceMode mode, | 201 CPDF_Annot::AppearanceMode mode, |
| 202 const CPDF_RenderOptions* pOptions); | 202 const CPDF_RenderOptions* pOptions); |
| 203 void DrawBorder(CFX_RenderDevice* pDevice, | 203 void DrawBorder(CFX_RenderDevice* pDevice, |
| 204 const CFX_Matrix* pUser2Device, | 204 const CFX_Matrix* pUser2Device, |
| 205 const CPDF_RenderOptions* pOptions); | 205 const CPDF_RenderOptions* pOptions); |
| 206 | 206 |
| 207 void ClearCachedAP(); | 207 void ClearCachedAP(); |
| 208 | 208 |
| 209 void WriteAppearance(const CFX_ByteString& sAPType, | 209 void WriteAppearance(const CFX_ByteString& sAPType, |
| 210 const CFX_FloatRect& rcBBox, | 210 const CPDF_Rect& rcBBox, |
| 211 const CFX_Matrix& matrix, | 211 const CFX_Matrix& matrix, |
| 212 const CFX_ByteString& sContents, | 212 const CFX_ByteString& sContents, |
| 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 |