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 10 matching lines...) Expand all Loading... |
21 class CPDF_Dictionary; | 21 class CPDF_Dictionary; |
22 class CPDF_RenderOptions; | 22 class CPDF_RenderOptions; |
23 class CPDFSDK_PageView; | 23 class CPDFSDK_PageView; |
24 | 24 |
25 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { | 25 class CPDFSDK_BAAnnot : public CPDFSDK_Annot { |
26 public: | 26 public: |
27 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); | 27 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); |
28 ~CPDFSDK_BAAnnot() override; | 28 ~CPDFSDK_BAAnnot() override; |
29 | 29 |
30 // CPDFSDK_Annot | 30 // CPDFSDK_Annot |
31 CFX_ByteString GetType() const override; | 31 CFX_ByteString GetAnnotSubtype() const override; |
32 CFX_ByteString GetSubType() const override; | |
33 void SetRect(const CFX_FloatRect& rect) override; | 32 void SetRect(const CFX_FloatRect& rect) override; |
34 CFX_FloatRect GetRect() const override; | 33 CFX_FloatRect GetRect() const override; |
35 CPDF_Annot* GetPDFAnnot() const override; | 34 CPDF_Annot* GetPDFAnnot() const override; |
36 void Annot_OnDraw(CFX_RenderDevice* pDevice, | 35 void Annot_OnDraw(CFX_RenderDevice* pDevice, |
37 CFX_Matrix* pUser2Device, | 36 CFX_Matrix* pUser2Device, |
38 CPDF_RenderOptions* pOptions) override; | 37 CPDF_RenderOptions* pOptions) override; |
39 | 38 |
40 CPDF_Dictionary* GetAnnotDict() const; | 39 CPDF_Dictionary* GetAnnotDict() const; |
41 | 40 |
42 void SetContents(const CFX_WideString& sContents); | 41 void SetContents(const CFX_WideString& sContents); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const CFX_FloatRect& rcBBox, | 94 const CFX_FloatRect& rcBBox, |
96 const CFX_Matrix& matrix, | 95 const CFX_Matrix& matrix, |
97 const CFX_ByteString& sContents, | 96 const CFX_ByteString& sContents, |
98 const CFX_ByteString& sAPState = ""); | 97 const CFX_ByteString& sAPState = ""); |
99 | 98 |
100 protected: | 99 protected: |
101 CPDF_Annot* m_pAnnot; | 100 CPDF_Annot* m_pAnnot; |
102 }; | 101 }; |
103 | 102 |
104 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ | 103 #endif // FPDFSDK_INCLUDE_CPDFSDK_BAANNOT_H_ |
OLD | NEW |