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_CPDFSDK_BAANNOT_H_ | 7 #ifndef FPDFSDK_CPDFSDK_BAANNOT_H_ |
8 #define FPDFSDK_CPDFSDK_BAANNOT_H_ | 8 #define FPDFSDK_CPDFSDK_BAANNOT_H_ |
9 | 9 |
10 #include "core/fpdfdoc/cpdf_aaction.h" | 10 #include "core/fpdfdoc/cpdf_aaction.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 int GetStructParent() const; | 58 int GetStructParent() const; |
59 | 59 |
60 void SetBorderWidth(int nWidth); | 60 void SetBorderWidth(int nWidth); |
61 int GetBorderWidth() const; | 61 int GetBorderWidth() const; |
62 | 62 |
63 void SetBorderStyle(BorderStyle nStyle); | 63 void SetBorderStyle(BorderStyle nStyle); |
64 BorderStyle GetBorderStyle() const; | 64 BorderStyle GetBorderStyle() const; |
65 | 65 |
66 void SetColor(FX_COLORREF color); | 66 void SetColor(FX_COLORREF color); |
67 void RemoveColor(); | 67 void RemoveColor(); |
68 FX_BOOL GetColor(FX_COLORREF& color) const; | 68 bool GetColor(FX_COLORREF& color) const; |
69 | 69 |
70 FX_BOOL IsVisible() const; | 70 bool IsVisible() const; |
71 | 71 |
72 CPDF_Action GetAction() const; | 72 CPDF_Action GetAction() const; |
73 void SetAction(const CPDF_Action& a); | 73 void SetAction(const CPDF_Action& a); |
74 void RemoveAction(); | 74 void RemoveAction(); |
75 | 75 |
76 CPDF_AAction GetAAction() const; | 76 CPDF_AAction GetAAction() const; |
77 void SetAAction(const CPDF_AAction& aa); | 77 void SetAAction(const CPDF_AAction& aa); |
78 void RemoveAAction(); | 78 void RemoveAAction(); |
79 | 79 |
80 virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT); | 80 virtual CPDF_Action GetAAction(CPDF_AAction::AActionType eAAT); |
81 virtual FX_BOOL IsAppearanceValid(); | 81 virtual bool IsAppearanceValid(); |
82 virtual FX_BOOL IsAppearanceValid(CPDF_Annot::AppearanceMode mode); | 82 virtual bool IsAppearanceValid(CPDF_Annot::AppearanceMode mode); |
83 virtual void DrawAppearance(CFX_RenderDevice* pDevice, | 83 virtual void DrawAppearance(CFX_RenderDevice* pDevice, |
84 const CFX_Matrix* pUser2Device, | 84 const CFX_Matrix* pUser2Device, |
85 CPDF_Annot::AppearanceMode mode, | 85 CPDF_Annot::AppearanceMode mode, |
86 const CPDF_RenderOptions* pOptions); | 86 const CPDF_RenderOptions* pOptions); |
87 | 87 |
88 void DrawBorder(CFX_RenderDevice* pDevice, | 88 void DrawBorder(CFX_RenderDevice* pDevice, |
89 const CFX_Matrix* pUser2Device, | 89 const CFX_Matrix* pUser2Device, |
90 const CPDF_RenderOptions* pOptions); | 90 const CPDF_RenderOptions* pOptions); |
91 | 91 |
92 void ClearCachedAP(); | 92 void ClearCachedAP(); |
93 | 93 |
94 void WriteAppearance(const CFX_ByteString& sAPType, | 94 void WriteAppearance(const CFX_ByteString& sAPType, |
95 const CFX_FloatRect& rcBBox, | 95 const CFX_FloatRect& rcBBox, |
96 const CFX_Matrix& matrix, | 96 const CFX_Matrix& matrix, |
97 const CFX_ByteString& sContents, | 97 const CFX_ByteString& sContents, |
98 const CFX_ByteString& sAPState = ""); | 98 const CFX_ByteString& sAPState = ""); |
99 | 99 |
100 void SetOpenState(bool bState); | 100 void SetOpenState(bool bState); |
101 | 101 |
102 protected: | 102 protected: |
103 CPDF_Annot* m_pAnnot; | 103 CPDF_Annot* m_pAnnot; |
104 }; | 104 }; |
105 | 105 |
106 #endif // FPDFSDK_CPDFSDK_BAANNOT_H_ | 106 #endif // FPDFSDK_CPDFSDK_BAANNOT_H_ |
OLD | NEW |