| 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_FORMFILLER_CFFL_FORMFILLER_H_ | 7 #ifndef FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
| 8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ | 8 #define FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 virtual void OnCreate(CPDFSDK_Annot* pAnnot); | 37 virtual void OnCreate(CPDFSDK_Annot* pAnnot); |
| 38 virtual void OnLoad(CPDFSDK_Annot* pAnnot); | 38 virtual void OnLoad(CPDFSDK_Annot* pAnnot); |
| 39 virtual void OnDelete(CPDFSDK_Annot* pAnnot); | 39 virtual void OnDelete(CPDFSDK_Annot* pAnnot); |
| 40 | 40 |
| 41 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 41 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); |
| 42 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); | 42 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); |
| 43 | 43 |
| 44 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, | 44 virtual FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, |
| 45 CPDFSDK_Annot* pAnnot, | 45 CPDFSDK_Annot* pAnnot, |
| 46 FX_UINT nFlags, | 46 uint32_t nFlags, |
| 47 const CFX_FloatPoint& point); | 47 const CFX_FloatPoint& point); |
| 48 virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, | 48 virtual FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, |
| 49 CPDFSDK_Annot* pAnnot, | 49 CPDFSDK_Annot* pAnnot, |
| 50 FX_UINT nFlags, | 50 uint32_t nFlags, |
| 51 const CFX_FloatPoint& point); | 51 const CFX_FloatPoint& point); |
| 52 virtual FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView, | 52 virtual FX_BOOL OnLButtonDblClk(CPDFSDK_PageView* pPageView, |
| 53 CPDFSDK_Annot* pAnnot, | 53 CPDFSDK_Annot* pAnnot, |
| 54 FX_UINT nFlags, | 54 uint32_t nFlags, |
| 55 const CFX_FloatPoint& point); | 55 const CFX_FloatPoint& point); |
| 56 virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, | 56 virtual FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, |
| 57 CPDFSDK_Annot* pAnnot, | 57 CPDFSDK_Annot* pAnnot, |
| 58 FX_UINT nFlags, | 58 uint32_t nFlags, |
| 59 const CFX_FloatPoint& point); | 59 const CFX_FloatPoint& point); |
| 60 virtual FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView, | 60 virtual FX_BOOL OnMouseWheel(CPDFSDK_PageView* pPageView, |
| 61 CPDFSDK_Annot* pAnnot, | 61 CPDFSDK_Annot* pAnnot, |
| 62 FX_UINT nFlags, | 62 uint32_t nFlags, |
| 63 short zDelta, | 63 short zDelta, |
| 64 const CFX_FloatPoint& point); | 64 const CFX_FloatPoint& point); |
| 65 virtual FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView, | 65 virtual FX_BOOL OnRButtonDown(CPDFSDK_PageView* pPageView, |
| 66 CPDFSDK_Annot* pAnnot, | 66 CPDFSDK_Annot* pAnnot, |
| 67 FX_UINT nFlags, | 67 uint32_t nFlags, |
| 68 const CFX_FloatPoint& point); | 68 const CFX_FloatPoint& point); |
| 69 virtual FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView, | 69 virtual FX_BOOL OnRButtonUp(CPDFSDK_PageView* pPageView, |
| 70 CPDFSDK_Annot* pAnnot, | 70 CPDFSDK_Annot* pAnnot, |
| 71 FX_UINT nFlags, | 71 uint32_t nFlags, |
| 72 const CFX_FloatPoint& point); | 72 const CFX_FloatPoint& point); |
| 73 | 73 |
| 74 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, | 74 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, |
| 75 FX_UINT nKeyCode, | 75 uint32_t nKeyCode, |
| 76 FX_UINT nFlags); | 76 uint32_t nFlags); |
| 77 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags); | 77 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, |
| 78 uint32_t nChar, |
| 79 uint32_t nFlags); |
| 78 | 80 |
| 79 void SetFocusForAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); | 81 void SetFocusForAnnot(CPDFSDK_Annot* pAnnot, uint32_t nFlag); |
| 80 void KillFocusForAnnot(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); | 82 void KillFocusForAnnot(CPDFSDK_Annot* pAnnot, uint32_t nFlag); |
| 81 | 83 |
| 82 // CPWL_TimerHandler | 84 // CPWL_TimerHandler |
| 83 void TimerProc() override; | 85 void TimerProc() override; |
| 84 CFX_SystemHandler* GetSystemHandler() const override; | 86 CFX_SystemHandler* GetSystemHandler() const override; |
| 85 | 87 |
| 86 // IPWL_Provider | 88 // IPWL_Provider |
| 87 CFX_Matrix GetWindowMatrix(void* pAttachedData) override; | 89 CFX_Matrix GetWindowMatrix(void* pAttachedData) override; |
| 88 CFX_WideString LoadPopupMenuString(int nIndex) override; | 90 CFX_WideString LoadPopupMenuString(int nIndex) override; |
| 89 | 91 |
| 90 virtual void GetActionData(CPDFSDK_PageView* pPageView, | 92 virtual void GetActionData(CPDFSDK_PageView* pPageView, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 112 | 114 |
| 113 CFX_FloatPoint WndtoPWL(CPDFSDK_PageView* pPageView, | 115 CFX_FloatPoint WndtoPWL(CPDFSDK_PageView* pPageView, |
| 114 const CFX_FloatPoint& pt); | 116 const CFX_FloatPoint& pt); |
| 115 CFX_FloatRect FFLtoWnd(CPDFSDK_PageView* pPageView, | 117 CFX_FloatRect FFLtoWnd(CPDFSDK_PageView* pPageView, |
| 116 const CFX_FloatRect& rect); | 118 const CFX_FloatRect& rect); |
| 117 | 119 |
| 118 void SetWindowRect(CPDFSDK_PageView* pPageView, | 120 void SetWindowRect(CPDFSDK_PageView* pPageView, |
| 119 const CFX_FloatRect& rcWindow); | 121 const CFX_FloatRect& rcWindow); |
| 120 CFX_FloatRect GetWindowRect(CPDFSDK_PageView* pPageView); | 122 CFX_FloatRect GetWindowRect(CPDFSDK_PageView* pPageView); |
| 121 | 123 |
| 122 FX_BOOL CommitData(CPDFSDK_PageView* pPageView, FX_UINT nFlag); | 124 FX_BOOL CommitData(CPDFSDK_PageView* pPageView, uint32_t nFlag); |
| 123 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView); | 125 virtual FX_BOOL IsDataChanged(CPDFSDK_PageView* pPageView); |
| 124 virtual void SaveData(CPDFSDK_PageView* pPageView); | 126 virtual void SaveData(CPDFSDK_PageView* pPageView); |
| 125 | 127 |
| 126 #ifdef PDF_ENABLE_XFA | 128 #ifdef PDF_ENABLE_XFA |
| 127 virtual FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView); | 129 virtual FX_BOOL IsFieldFull(CPDFSDK_PageView* pPageView); |
| 128 #endif // PDF_ENABLE_XFA | 130 #endif // PDF_ENABLE_XFA |
| 129 | 131 |
| 130 CPWL_Wnd* GetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bNew); | 132 CPWL_Wnd* GetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bNew); |
| 131 void DestroyPDFWindow(CPDFSDK_PageView* pPageView); | 133 void DestroyPDFWindow(CPDFSDK_PageView* pPageView); |
| 132 void EscapeFiller(CPDFSDK_PageView* pPageView, FX_BOOL bDestroyPDFWindow); | 134 void EscapeFiller(CPDFSDK_PageView* pPageView, FX_BOOL bDestroyPDFWindow); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 public: | 175 public: |
| 174 CFFL_Button(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget); | 176 CFFL_Button(CPDFSDK_Environment* pApp, CPDFSDK_Annot* pWidget); |
| 175 ~CFFL_Button() override; | 177 ~CFFL_Button() override; |
| 176 | 178 |
| 177 // CFFL_FormFiller | 179 // CFFL_FormFiller |
| 178 void OnMouseEnter(CPDFSDK_PageView* pPageView, | 180 void OnMouseEnter(CPDFSDK_PageView* pPageView, |
| 179 CPDFSDK_Annot* pAnnot) override; | 181 CPDFSDK_Annot* pAnnot) override; |
| 180 void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) override; | 182 void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) override; |
| 181 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, | 183 FX_BOOL OnLButtonDown(CPDFSDK_PageView* pPageView, |
| 182 CPDFSDK_Annot* pAnnot, | 184 CPDFSDK_Annot* pAnnot, |
| 183 FX_UINT nFlags, | 185 uint32_t nFlags, |
| 184 const CFX_FloatPoint& point) override; | 186 const CFX_FloatPoint& point) override; |
| 185 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, | 187 FX_BOOL OnLButtonUp(CPDFSDK_PageView* pPageView, |
| 186 CPDFSDK_Annot* pAnnot, | 188 CPDFSDK_Annot* pAnnot, |
| 187 FX_UINT nFlags, | 189 uint32_t nFlags, |
| 188 const CFX_FloatPoint& point) override; | 190 const CFX_FloatPoint& point) override; |
| 189 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, | 191 FX_BOOL OnMouseMove(CPDFSDK_PageView* pPageView, |
| 190 CPDFSDK_Annot* pAnnot, | 192 CPDFSDK_Annot* pAnnot, |
| 191 FX_UINT nFlags, | 193 uint32_t nFlags, |
| 192 const CFX_FloatPoint& point) override; | 194 const CFX_FloatPoint& point) override; |
| 193 void OnDraw(CPDFSDK_PageView* pPageView, | 195 void OnDraw(CPDFSDK_PageView* pPageView, |
| 194 CPDFSDK_Annot* pAnnot, | 196 CPDFSDK_Annot* pAnnot, |
| 195 CFX_RenderDevice* pDevice, | 197 CFX_RenderDevice* pDevice, |
| 196 CFX_Matrix* pUser2Device) override; | 198 CFX_Matrix* pUser2Device) override; |
| 197 void OnDrawDeactive(CPDFSDK_PageView* pPageView, | 199 void OnDrawDeactive(CPDFSDK_PageView* pPageView, |
| 198 CPDFSDK_Annot* pAnnot, | 200 CPDFSDK_Annot* pAnnot, |
| 199 CFX_RenderDevice* pDevice, | 201 CFX_RenderDevice* pDevice, |
| 200 CFX_Matrix* pUser2Device) override; | 202 CFX_Matrix* pUser2Device) override; |
| 201 | 203 |
| 202 protected: | 204 protected: |
| 203 FX_BOOL m_bMouseIn; | 205 FX_BOOL m_bMouseIn; |
| 204 FX_BOOL m_bMouseDown; | 206 FX_BOOL m_bMouseDown; |
| 205 }; | 207 }; |
| 206 | 208 |
| 207 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ | 209 #endif // FPDFSDK_FORMFILLER_CFFL_FORMFILLER_H_ |
| OLD | NEW |