Chromium Code Reviews| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 | 107 |
| 108 protected: | 108 protected: |
| 109 CPDFSDK_PageView* m_pPageView; | 109 CPDFSDK_PageView* m_pPageView; |
| 110 FX_BOOL m_bSelected; | 110 FX_BOOL m_bSelected; |
| 111 int m_nTabOrder; | 111 int m_nTabOrder; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { | 114 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { |
| 115 public: | 115 public: |
| 116 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); | 116 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); |
| 117 virtual ~CPDFSDK_BAAnnot() {} | 117 ~CPDFSDK_BAAnnot() override {} |
| 118 | 118 |
| 119 virtual FX_BOOL IsXFAField(); | 119 FX_BOOL IsXFAField() override; |
|
Lei Zhang
2015/11/20 06:20:52
Conflict: XFA only.
| |
| 120 | 120 CFX_ByteString GetType() const override; |
| 121 virtual CFX_ByteString GetType() const; | 121 CFX_ByteString GetSubType() const override; |
| 122 virtual CFX_ByteString GetSubType() const; | 122 void SetRect(const CPDF_Rect& rect) override; |
| 123 | 123 CPDF_Rect GetRect() const override; |
| 124 virtual void SetRect(const CPDF_Rect& rect); | 124 CPDF_Annot* GetPDFAnnot() const override; |
| 125 virtual CPDF_Rect GetRect() const; | 125 void Annot_OnDraw(CFX_RenderDevice* pDevice, |
| 126 | 126 CPDF_Matrix* pUser2Device, |
| 127 virtual CPDF_Annot* GetPDFAnnot() const; | 127 CPDF_RenderOptions* pOptions) override; |
| 128 | |
| 129 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, | |
| 130 CPDF_Matrix* pUser2Device, | |
| 131 CPDF_RenderOptions* pOptions); | |
| 132 | 128 |
| 133 CPDF_Dictionary* GetAnnotDict() const; | 129 CPDF_Dictionary* GetAnnotDict() const; |
| 134 | 130 |
| 135 void SetContents(const CFX_WideString& sContents); | 131 void SetContents(const CFX_WideString& sContents); |
| 136 CFX_WideString GetContents() const; | 132 CFX_WideString GetContents() const; |
| 137 | 133 |
| 138 void SetAnnotName(const CFX_WideString& sName); | 134 void SetAnnotName(const CFX_WideString& sName); |
| 139 CFX_WideString GetAnnotName() const; | 135 CFX_WideString GetAnnotName() const; |
| 140 | 136 |
| 141 void SetModifiedDate(const FX_SYSTEMTIME& st); | 137 void SetModifiedDate(const FX_SYSTEMTIME& st); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 const CFX_ByteString& sAPState = ""); | 202 const CFX_ByteString& sAPState = ""); |
| 207 | 203 |
| 208 protected: | 204 protected: |
| 209 CPDF_Annot* m_pAnnot; | 205 CPDF_Annot* m_pAnnot; |
| 210 | 206 |
| 211 private: | 207 private: |
| 212 FX_BOOL CreateFormFiller(); | 208 FX_BOOL CreateFormFiller(); |
| 213 }; | 209 }; |
| 214 | 210 |
| 215 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 211 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |