| 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_CPDFSDK_BAANNOT_H_ | 7 #ifndef FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ |
| 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ | 8 #define FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ |
| 9 | 9 |
| 10 #include "core/fpdfdoc/include/cpdf_aaction.h" | 10 #include "core/fpdfdoc/include/cpdf_aaction.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 CFX_ByteString GetType() const override; | 31 CFX_ByteString GetType() const override; |
| 32 CFX_ByteString GetSubType() const override; | 32 CFX_ByteString GetSubType() const override; |
| 33 void SetRect(const CFX_FloatRect& rect) override; | 33 void SetRect(const CFX_FloatRect& rect) override; |
| 34 CFX_FloatRect GetRect() const override; | 34 CFX_FloatRect GetRect() const override; |
| 35 CPDF_Annot* GetPDFAnnot() const override; | 35 CPDF_Annot* GetPDFAnnot() const override; |
| 36 void Annot_OnDraw(CFX_RenderDevice* pDevice, | 36 void Annot_OnDraw(CFX_RenderDevice* pDevice, |
| 37 CFX_Matrix* pUser2Device, | 37 CFX_Matrix* pUser2Device, |
| 38 CPDF_RenderOptions* pOptions) override; | 38 CPDF_RenderOptions* pOptions) override; |
| 39 | 39 |
| 40 CPDF_Dictionary* GetAnnotDict() const; | 40 CPDF_Dictionary* GetAnnotDict() const; |
| 41 CPDF_Annot* GetPDFPopupAnnot() const; |
| 41 | 42 |
| 42 void SetContents(const CFX_WideString& sContents); | 43 void SetContents(const CFX_WideString& sContents); |
| 43 CFX_WideString GetContents() const; | 44 CFX_WideString GetContents() const; |
| 44 | 45 |
| 45 void SetAnnotName(const CFX_WideString& sName); | 46 void SetAnnotName(const CFX_WideString& sName); |
| 46 CFX_WideString GetAnnotName() const; | 47 CFX_WideString GetAnnotName() const; |
| 47 | 48 |
| 48 void SetModifiedDate(const FX_SYSTEMTIME& st); | 49 void SetModifiedDate(const FX_SYSTEMTIME& st); |
| 49 FX_SYSTEMTIME GetModifiedDate() const; | 50 FX_SYSTEMTIME GetModifiedDate() const; |
| 50 | 51 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const CPDF_RenderOptions* pOptions); | 91 const CPDF_RenderOptions* pOptions); |
| 91 | 92 |
| 92 void ClearCachedAP(); | 93 void ClearCachedAP(); |
| 93 | 94 |
| 94 void WriteAppearance(const CFX_ByteString& sAPType, | 95 void WriteAppearance(const CFX_ByteString& sAPType, |
| 95 const CFX_FloatRect& rcBBox, | 96 const CFX_FloatRect& rcBBox, |
| 96 const CFX_Matrix& matrix, | 97 const CFX_Matrix& matrix, |
| 97 const CFX_ByteString& sContents, | 98 const CFX_ByteString& sContents, |
| 98 const CFX_ByteString& sAPState = ""); | 99 const CFX_ByteString& sAPState = ""); |
| 99 | 100 |
| 101 void SetOpenState(bool bState); |
| 102 |
| 100 protected: | 103 protected: |
| 101 CPDF_Annot* m_pAnnot; | 104 CPDF_Annot* m_pAnnot; |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ | 107 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ |
| OLD | NEW |