| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 protected: | 104 protected: |
| 105 CPDFSDK_PageView* m_pPageView; | 105 CPDFSDK_PageView* m_pPageView; |
| 106 FX_BOOL m_bSelected; | 106 FX_BOOL m_bSelected; |
| 107 int m_nTabOrder; | 107 int m_nTabOrder; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { | 110 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { |
| 111 public: | 111 public: |
| 112 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); | 112 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); |
| 113 virtual ~CPDFSDK_BAAnnot() {} | 113 ~CPDFSDK_BAAnnot() override {} |
| 114 | 114 |
| 115 virtual CFX_ByteString GetType() const; | 115 CFX_ByteString GetType() const override; |
| 116 virtual CFX_ByteString GetSubType() const; | 116 CFX_ByteString GetSubType() const override; |
| 117 | 117 void SetRect(const CPDF_Rect& rect) override; |
| 118 virtual void SetRect(const CPDF_Rect& rect); | 118 CPDF_Rect GetRect() const override; |
| 119 virtual CPDF_Rect GetRect() const; | 119 CPDF_Annot* GetPDFAnnot() const override; |
| 120 | 120 void Annot_OnDraw(CFX_RenderDevice* pDevice, |
| 121 virtual CPDF_Annot* GetPDFAnnot() const; | 121 CPDF_Matrix* pUser2Device, |
| 122 | 122 CPDF_RenderOptions* pOptions) override; |
| 123 virtual void Annot_OnDraw(CFX_RenderDevice* pDevice, | |
| 124 CPDF_Matrix* pUser2Device, | |
| 125 CPDF_RenderOptions* pOptions); | |
| 126 | 123 |
| 127 CPDF_Dictionary* GetAnnotDict() const; | 124 CPDF_Dictionary* GetAnnotDict() const; |
| 128 | 125 |
| 129 void SetContents(const CFX_WideString& sContents); | 126 void SetContents(const CFX_WideString& sContents); |
| 130 CFX_WideString GetContents() const; | 127 CFX_WideString GetContents() const; |
| 131 | 128 |
| 132 void SetAnnotName(const CFX_WideString& sName); | 129 void SetAnnotName(const CFX_WideString& sName); |
| 133 CFX_WideString GetAnnotName() const; | 130 CFX_WideString GetAnnotName() const; |
| 134 | 131 |
| 135 void SetModifiedDate(const FX_SYSTEMTIME& st); | 132 void SetModifiedDate(const FX_SYSTEMTIME& st); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 const CFX_ByteString& sAPState = ""); | 197 const CFX_ByteString& sAPState = ""); |
| 201 | 198 |
| 202 protected: | 199 protected: |
| 203 CPDF_Annot* m_pAnnot; | 200 CPDF_Annot* m_pAnnot; |
| 204 | 201 |
| 205 private: | 202 private: |
| 206 FX_BOOL CreateFormFiller(); | 203 FX_BOOL CreateFormFiller(); |
| 207 }; | 204 }; |
| 208 | 205 |
| 209 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ | 206 #endif // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_ |
| OLD | NEW |