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