| 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 #if !defined(_FFL_NOTIFY_H_) | 7 #ifndef _FFL_NOTIFY_H_ |
| 8 #define _FFL_NOTIFY_H_ | 8 #define _FFL_NOTIFY_H_ |
| 9 | 9 |
| 10 #include "../../../core/include/fpdfdoc/fpdf_doc.h" |
| 11 #include "../../../core/include/fxcrt/fx_string.h" |
| 12 |
| 10 class CFFL_FormFiller; | 13 class CFFL_FormFiller; |
| 14 class CPDF_FormField; |
| 11 | 15 |
| 12 class CFFL_Notify | 16 class CFFL_Notify |
| 13 { | 17 { |
| 14 public: | 18 public: |
| 15 CFFL_Notify(CFFL_FormFiller * pFormFiller); | 19 CFFL_Notify(CFFL_FormFiller * pFormFiller); |
| 16 virtual ~CFFL_Notify(); | 20 virtual ~CFFL_Notify(); |
| 17 | 21 |
| 18 public: | 22 public: |
| 19 FX_BOOL
OnSetFocus(FX_BOOL & bExit); | 23 FX_BOOL
OnSetFocus(FX_BOOL & bExit); |
| 20 FX_BOOL
OnMouseEnter(FX_BOOL & bExit); | 24 FX_BOOL
OnMouseEnter(FX_BOOL & bExit); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 FX_BOOL
OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue
, CFX_WideString& strChange, | 35 FX_BOOL
OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue
, CFX_WideString& strChange, |
| 32
const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie
r, | 36
const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifie
r, |
| 33
FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, | 37
FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, |
| 34
int& nSelStart, int& nSelEnd, FX_BOOL& bRC); | 38
int& nSelStart, int& nSelEnd, FX_BOOL& bRC); |
| 35 | 39 |
| 36 void
BeforeNotify(); | 40 void
BeforeNotify(); |
| 37 void
AfterNotify(); | 41 void
AfterNotify(); |
| 38 FX_BOOL
IsNotifying() const {return m_nNotifyFlag > 0;} | 42 FX_BOOL
IsNotifying() const {return m_nNotifyFlag > 0;} |
| 39 | 43 |
| 40 private: | 44 private: |
| 41 // CReader_InterForm * GetReade
rInterForm(); | |
| 42 FX_BOOL
DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); | 45 FX_BOOL
DoAAction(CPDF_AAction::AActionType eAAT, FX_BOOL & bExit); |
| 43 FX_BOOL
FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); | 46 FX_BOOL
FindAAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action); |
| 44 FX_BOOL
FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & ac
tion); | 47 FX_BOOL
FindAAction(CPDF_AAction aaction,CPDF_AAction::AActionType eAAT,CPDF_Action & ac
tion); |
| 45 FX_BOOL
ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, FX_BOOL&
bExit); | 48 FX_BOOL
ExecuteActionTree(CPDF_AAction::AActionType eAAT, CPDF_Action & action, FX_BOOL&
bExit); |
| 46 FX_BOOL
ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,FX_BOOL& bExit
); | 49 FX_BOOL
ExecuteAction(CPDF_AAction::AActionType eAAT,CPDF_Action & action,FX_BOOL& bExit
); |
| 47 | 50 |
| 48 FX_BOOL
m_bDoActioning; | 51 FX_BOOL
m_bDoActioning; |
| 49 FX_INT32
m_nNotifyFlag; | 52 FX_INT32
m_nNotifyFlag; |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 #endif | 55 #endif |
| 53 | 56 |
| OLD | NEW |