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