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 virtual ~CPDFSDK_Annot() {}; | 76 virtual ~CPDFSDK_Annot() {}; |
77 public: | 77 public: |
78 virtual FX_BOOL IsXFAField() { return FALSE; } | 78 virtual FX_BOOL IsXFAField() { return FALSE; } |
79 | 79 |
80 virtual FX_FLOAT GetMinWidth() const; | 80 virtual FX_FLOAT GetMinWidth() const; |
81 virtual FX_FLOAT GetMinHeight() const; | 81 virtual FX_FLOAT GetMinHeight() const; |
82 //define layout order to 5. | 82 //define layout order to 5. |
83 virtual int GetLayoutOrder() const {
return 5; } | 83 virtual int GetLayoutOrder() const {
return 5; } |
84 | 84 |
85 virtual CPDF_Annot* GetPDFAnnot() { return NULL; } | 85 virtual CPDF_Annot* GetPDFAnnot() { return NULL; } |
86 » virtual XFA_HWIDGET» » » GetXFAWidget() { return NULL; } | 86 » virtual IXFA_Widget*» » GetXFAWidget() { return NULL; } |
87 | 87 |
88 virtual CFX_ByteString GetType() const { return ""; } | 88 virtual CFX_ByteString GetType() const { return ""; } |
89 virtual CFX_ByteString GetSubType() const { return ""; } | 89 virtual CFX_ByteString GetSubType() const { return ""; } |
90 | 90 |
91 virtual void SetRect(const CPDF_Rect& rect) {
} | 91 virtual void SetRect(const CPDF_Rect& rect) {
} |
92 virtual CPDF_Rect GetRect() const { return CPDF_Re
ct(); } | 92 virtual CPDF_Rect GetRect() const { return CPDF_Re
ct(); } |
93 | 93 |
94 virtual void Annot_OnDraw(CFX_RenderDevice* p
Device, CPDF_Matrix* pUser2Device,CPDF_RenderOptions* pOptions) {} | 94 virtual void Annot_OnDraw(CFX_RenderDevice* p
Device, CPDF_Matrix* pUser2Device,CPDF_RenderOptions* pOptions) {} |
95 | 95 |
96 public: | 96 public: |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 const CPDF_Matrix& matrix, const CFX_ByteString& sContents, | 207 const CPDF_Matrix& matrix, const CFX_ByteString& sContents, |
208 const CFX_ByteString& sAPState = ""); | 208 const CFX_ByteString& sAPState = ""); |
209 | 209 |
210 private: | 210 private: |
211 FX_BOOL CreateFormFiller(); | 211 FX_BOOL CreateFormFiller(); |
212 protected: | 212 protected: |
213 CPDF_Annot* m_pAnnot; | 213 CPDF_Annot* m_pAnnot; |
214 }; | 214 }; |
215 | 215 |
216 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 216 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
OLD | NEW |