OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 class CPDF_Annot { | 36 class CPDF_Annot { |
37 public: | 37 public: |
38 enum AppearanceMode { Normal, Rollover, Down }; | 38 enum AppearanceMode { Normal, Rollover, Down }; |
39 | 39 |
40 static bool IsAnnotationHidden(CPDF_Dictionary* pAnnotDict); | 40 static bool IsAnnotationHidden(CPDF_Dictionary* pAnnotDict); |
41 | 41 |
42 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); | 42 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); |
43 ~CPDF_Annot(); | 43 ~CPDF_Annot(); |
44 | 44 |
45 CFX_ByteString GetSubType() const; | 45 CFX_ByteString GetSubtype() const; |
46 uint32_t GetFlags() const; | 46 uint32_t GetFlags() const; |
47 CFX_FloatRect GetRect() const; | 47 CFX_FloatRect GetRect() const; |
48 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } | 48 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } |
49 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } | 49 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } |
50 FX_BOOL DrawAppearance(CPDF_Page* pPage, | 50 FX_BOOL DrawAppearance(CPDF_Page* pPage, |
51 CFX_RenderDevice* pDevice, | 51 CFX_RenderDevice* pDevice, |
52 const CFX_Matrix* pUser2Device, | 52 const CFX_Matrix* pUser2Device, |
53 AppearanceMode mode, | 53 AppearanceMode mode, |
54 const CPDF_RenderOptions* pOptions); | 54 const CPDF_RenderOptions* pOptions); |
55 FX_BOOL DrawInContext(const CPDF_Page* pPage, | 55 FX_BOOL DrawInContext(const CPDF_Page* pPage, |
(...skipping 12 matching lines...) Expand all Loading... |
68 CPDF_Dictionary* const m_pAnnotDict; | 68 CPDF_Dictionary* const m_pAnnotDict; |
69 CPDF_Document* const m_pDocument; | 69 CPDF_Document* const m_pDocument; |
70 const CFX_ByteString m_sSubtype; | 70 const CFX_ByteString m_sSubtype; |
71 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; | 71 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; |
72 }; | 72 }; |
73 | 73 |
74 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, | 74 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, |
75 CPDF_Annot::AppearanceMode mode); | 75 CPDF_Annot::AppearanceMode mode); |
76 | 76 |
77 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 77 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
OLD | NEW |