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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 private: | 143 private: |
144 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; | 144 using CFFL_Widget2Filler = std::map<CPDFSDK_Annot*, CFFL_FormFiller*>; |
145 | 145 |
146 // IPWL_Filler_Notify: | 146 // IPWL_Filler_Notify: |
147 void QueryWherePopup(void* pPrivateData, | 147 void QueryWherePopup(void* pPrivateData, |
148 FX_FLOAT fPopupMin, | 148 FX_FLOAT fPopupMin, |
149 FX_FLOAT fPopupMax, | 149 FX_FLOAT fPopupMax, |
150 int32_t& nRet, | 150 int32_t& nRet, |
151 FX_FLOAT& fPopupRet) override; | 151 FX_FLOAT& fPopupRet) override; |
152 void OnBeforeKeyStroke(FX_BOOL bEditOrList, | 152 void OnBeforeKeyStroke(void* pPrivateData, |
153 void* pPrivateData, | |
154 int32_t nKeyCode, | |
155 CFX_WideString& strChange, | 153 CFX_WideString& strChange, |
156 const CFX_WideString& strChangeEx, | 154 const CFX_WideString& strChangeEx, |
157 int nSelStart, | 155 int nSelStart, |
158 int nSelEnd, | 156 int nSelEnd, |
159 FX_BOOL bKeyDown, | 157 FX_BOOL bKeyDown, |
160 FX_BOOL& bRC, | 158 FX_BOOL& bRC, |
161 FX_BOOL& bExit, | 159 FX_BOOL& bExit, |
162 FX_DWORD nFlag) override; | 160 FX_DWORD nFlag) override; |
163 void OnAfterKeyStroke(FX_BOOL bEditOrList, | |
164 void* pPrivateData, | |
165 FX_BOOL& bExit, | |
166 FX_DWORD nFlag) override; | |
167 | 161 |
168 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); | 162 void UnRegisterFormFiller(CPDFSDK_Annot* pAnnot); |
169 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, | 163 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, |
170 FX_BOOL bSameField, | 164 FX_BOOL bSameField, |
171 FX_BOOL bNext); | 165 FX_BOOL bNext); |
172 | 166 |
173 CPDFDoc_Environment* m_pApp; | 167 CPDFDoc_Environment* m_pApp; |
174 CFFL_Widget2Filler m_Maps; | 168 CFFL_Widget2Filler m_Maps; |
175 FX_BOOL m_bNotifying; | 169 FX_BOOL m_bNotifying; |
176 }; | 170 }; |
177 | 171 |
178 class CFFL_PrivateData { | 172 class CFFL_PrivateData { |
179 public: | 173 public: |
180 CPDFSDK_Widget* pWidget; | 174 CPDFSDK_Widget* pWidget; |
181 CPDFSDK_PageView* pPageView; | 175 CPDFSDK_PageView* pPageView; |
182 int nWidgetAge; | 176 int nWidgetAge; |
183 int nValueAge; | 177 int nValueAge; |
184 }; | 178 }; |
185 | 179 |
186 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ | 180 #endif // FPDFSDK_INCLUDE_FORMFILLER_FFL_IFORMFILLER_H_ |
OLD | NEW |