| 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_IFORMFILLER_H_ | 7 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 8 #define FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 short zDelta, | 63 short zDelta, |
| 64 const CPDF_Point& point); | 64 const CPDF_Point& 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 FX_UINT nFlags, |
| 68 const CPDF_Point& point); | 68 const CPDF_Point& 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 FX_UINT nFlags, |
| 72 const CPDF_Point& point); | 72 const CPDF_Point& point); |
| 73 virtual FX_BOOL OnRButtonDblClk(CPDFSDK_PageView* pPageView, | |
| 74 CPDFSDK_Annot* pAnnot, | |
| 75 FX_UINT nFlags, | |
| 76 const CPDF_Point& point); | |
| 77 | 73 |
| 78 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, | 74 virtual FX_BOOL OnKeyDown(CPDFSDK_Annot* pAnnot, |
| 79 FX_UINT nKeyCode, | 75 FX_UINT nKeyCode, |
| 80 FX_UINT nFlags); | 76 FX_UINT nFlags); |
| 81 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags); | 77 virtual FX_BOOL OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags); |
| 82 | 78 |
| 83 virtual void OnDeSelected(CPDFSDK_Annot* pAnnot); | |
| 84 virtual void OnSelected(CPDFSDK_Annot* pAnnot); | |
| 85 | |
| 86 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); | 79 virtual FX_BOOL OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); |
| 87 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); | 80 virtual FX_BOOL OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag); |
| 88 | 81 |
| 89 virtual void QueryWherePopup(void* pPrivateData, | 82 virtual void QueryWherePopup(void* pPrivateData, |
| 90 FX_FLOAT fPopupMin, | 83 FX_FLOAT fPopupMin, |
| 91 FX_FLOAT fPopupMax, | 84 FX_FLOAT fPopupMax, |
| 92 int32_t& nRet, | 85 int32_t& nRet, |
| 93 FX_FLOAT& fPopupRet); | 86 FX_FLOAT& fPopupRet); |
| 94 virtual void OnBeforeKeyStroke(FX_BOOL bEditOrList, | 87 virtual void OnBeforeKeyStroke(FX_BOOL bEditOrList, |
| 95 void* pPrivateData, | 88 void* pPrivateData, |
| 96 int32_t nKeyCode, | 89 int32_t nKeyCode, |
| 97 CFX_WideString& strChange, | 90 CFX_WideString& strChange, |
| 98 const CFX_WideString& strChangeEx, | 91 const CFX_WideString& strChangeEx, |
| 99 int nSelStart, | 92 int nSelStart, |
| 100 int nSelEnd, | 93 int nSelEnd, |
| 101 FX_BOOL bKeyDown, | 94 FX_BOOL bKeyDown, |
| 102 FX_BOOL& bRC, | 95 FX_BOOL& bRC, |
| 103 FX_BOOL& bExit, | 96 FX_BOOL& bExit, |
| 104 FX_DWORD nFlag); | 97 FX_DWORD nFlag); |
| 105 virtual void OnAfterKeyStroke(FX_BOOL bEditOrList, | 98 virtual void OnAfterKeyStroke(FX_BOOL bEditOrList, |
| 106 void* pPrivateData, | 99 void* pPrivateData, |
| 107 FX_BOOL& bExit, | 100 FX_BOOL& bExit, |
| 108 FX_DWORD nFlag); | 101 FX_DWORD nFlag); |
| 109 | 102 |
| 110 virtual void OnSetWindowRect(void* pPrivateData, const CPDF_Rect& rcWindow); | |
| 111 virtual void OnKeyStroke(FX_BOOL bEditOrList, | |
| 112 void* pPrivateData, | |
| 113 int32_t nKeyCode, | |
| 114 CFX_WideString& strChange, | |
| 115 const CFX_WideString& strChangeEx, | |
| 116 FX_BOOL bKeyDown, | |
| 117 FX_BOOL& bRC, | |
| 118 FX_BOOL& bExit); | |
| 119 virtual void OnPopupPreOpen(void* pPrivateData, | 103 virtual void OnPopupPreOpen(void* pPrivateData, |
| 120 FX_BOOL& bExit, | 104 FX_BOOL& bExit, |
| 121 FX_DWORD nFlag); | 105 FX_DWORD nFlag); |
| 122 virtual void OnPopupPostOpen(void* pPrivateData, | 106 virtual void OnPopupPostOpen(void* pPrivateData, |
| 123 FX_BOOL& bExit, | 107 FX_BOOL& bExit, |
| 124 FX_DWORD nFlag); | 108 FX_DWORD nFlag); |
| 125 | 109 |
| 126 virtual void BeforeUndo(CPDFSDK_Document* pDocument); | |
| 127 virtual void BeforeRedo(CPDFSDK_Document* pDocument); | |
| 128 virtual void AfterUndo(CPDFSDK_Document* pDocument); | |
| 129 virtual void AfterRedo(CPDFSDK_Document* pDocument); | |
| 130 | |
| 131 virtual FX_BOOL CanCopy(CPDFSDK_Document* pDocument); | |
| 132 virtual FX_BOOL CanCut(CPDFSDK_Document* pDocument); | |
| 133 virtual FX_BOOL CanPaste(CPDFSDK_Document* pDocument); | |
| 134 | |
| 135 virtual void DoCopy(CPDFSDK_Document* pDocument); | |
| 136 virtual void DoCut(CPDFSDK_Document* pDocument); | |
| 137 virtual void DoPaste(CPDFSDK_Document* pDocument); | |
| 138 | |
| 139 CFFL_FormFiller* GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister); | 110 CFFL_FormFiller* GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister); |
| 140 void RemoveFormFiller(CPDFSDK_Annot* pAnnot); | 111 void RemoveFormFiller(CPDFSDK_Annot* pAnnot); |
| 141 | 112 |
| 142 static FX_BOOL IsVisible(CPDFSDK_Widget* pWidget); | 113 static FX_BOOL IsVisible(CPDFSDK_Widget* pWidget); |
| 143 static FX_BOOL IsReadOnly(CPDFSDK_Widget* pWidget); | 114 static FX_BOOL IsReadOnly(CPDFSDK_Widget* pWidget); |
| 144 static FX_BOOL IsFillingAllowed(CPDFSDK_Widget* pWidget); | 115 static FX_BOOL IsFillingAllowed(CPDFSDK_Widget* pWidget); |
| 145 static FX_BOOL IsValidAnnot(CPDFSDK_PageView* pPageView, | 116 static FX_BOOL IsValidAnnot(CPDFSDK_PageView* pPageView, |
| 146 CPDFSDK_Annot* pAnnot); | 117 CPDFSDK_Annot* pAnnot); |
| 147 | 118 |
| 148 void OnKeyStrokeCommit(CPDFSDK_Widget* pWidget, | 119 void OnKeyStrokeCommit(CPDFSDK_Widget* pWidget, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 176 |
| 206 class CFFL_PrivateData { | 177 class CFFL_PrivateData { |
| 207 public: | 178 public: |
| 208 CPDFSDK_Widget* pWidget; | 179 CPDFSDK_Widget* pWidget; |
| 209 CPDFSDK_PageView* pPageView; | 180 CPDFSDK_PageView* pPageView; |
| 210 int nWidgetAge; | 181 int nWidgetAge; |
| 211 int nValueAge; | 182 int nValueAge; |
| 212 }; | 183 }; |
| 213 | 184 |
| 214 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 185 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
| OLD | NEW |