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_FORMFILLER_FFL_FORMFILLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ |
8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ |
9 | 9 |
10 #include "FFL_IFormFiller.h" | 10 #include "FFL_IFormFiller.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 CPDFSDK_Annot* m_pAnnot; | 154 CPDFSDK_Annot* m_pAnnot; |
155 | 155 |
156 FX_BOOL m_bValid; | 156 FX_BOOL m_bValid; |
157 CFFL_PageView2PDFWindow m_Maps; | 157 CFFL_PageView2PDFWindow m_Maps; |
158 CPDF_Point m_ptOldPos; | 158 CPDF_Point m_ptOldPos; |
159 }; | 159 }; |
160 | 160 |
161 class CFFL_Button : public CFFL_FormFiller { | 161 class CFFL_Button : public CFFL_FormFiller { |
162 public: | 162 public: |
163 CFFL_Button(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); | 163 CFFL_Button(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget); |
164 virtual ~CFFL_Button(); | 164 ~CFFL_Button() override; |
165 | 165 |
166 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 166 // CFFL_FormFiller |
167 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 167 void OnMouseEnter(CPDFSDK_PageView* pPageView, |
168 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, | 168 CPDFSDK_Annot* pAnnot) override; |
169 CPDFSDK_Annot* pAnnot, | 169 void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) override; |
170 FX_UINT nFlags, | 170 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, |
171 const CPDF_Point& point); | 171 CPDFSDK_Annot* pAnnot, |
172 virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, | 172 FX_UINT nFlags, |
173 CPDFSDK_Annot* pAnnot, | 173 const CPDF_Point& point) override; |
174 FX_UINT nFlags, | 174 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, |
175 const CPDF_Point& point); | 175 CPDFSDK_Annot* pAnnot, |
176 virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, | 176 FX_UINT nFlags, |
177 CPDFSDK_Annot* pAnnot, | 177 const CPDF_Point& point) override; |
178 FX_UINT nFlags, | 178 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, |
179 const CPDF_Point& point); | 179 CPDFSDK_Annot* pAnnot, |
180 virtual void OnDraw(CPDFSDK_PageView* pPageView, | 180 FX_UINT nFlags, |
| 181 const CPDF_Point& point) override; |
| 182 void OnDraw(CPDFSDK_PageView* pPageView, |
| 183 CPDFSDK_Annot* pAnnot, |
| 184 CFX_RenderDevice* pDevice, |
| 185 CPDF_Matrix* pUser2Device, |
| 186 FX_DWORD dwFlags) override; |
| 187 void OnDrawDeactive(CPDFSDK_PageView* pPageView, |
181 CPDFSDK_Annot* pAnnot, | 188 CPDFSDK_Annot* pAnnot, |
182 CFX_RenderDevice* pDevice, | 189 CFX_RenderDevice* pDevice, |
183 CPDF_Matrix* pUser2Device, | 190 CPDF_Matrix* pUser2Device, |
184 FX_DWORD dwFlags); | 191 FX_DWORD dwFlags) override; |
185 | |
186 virtual void OnDrawDeactive(CPDFSDK_PageView* pPageView, | |
187 CPDFSDK_Annot* pAnnot, | |
188 CFX_RenderDevice* pDevice, | |
189 CPDF_Matrix* pUser2Device, | |
190 FX_DWORD dwFlags); | |
191 | 192 |
192 protected: | 193 protected: |
193 FX_BOOL m_bMouseIn; | 194 FX_BOOL m_bMouseIn; |
194 FX_BOOL m_bMouseDown; | 195 FX_BOOL m_bMouseDown; |
195 }; | 196 }; |
196 | 197 |
197 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ | 198 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_ |
OLD | NEW |