Home | History | Annotate | Download | only in parser
      1 // Copyright 2014 PDFium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
      6 
      7 #ifndef _SCRIPT_EVENTPSEUDOMODEL_H_
      8 #define _SCRIPT_EVENTPSEUDOMODEL_H_
      9 #define XFA_EVENT_CHANGE 0
     10 #define XFA_EVENT_COMMITKEY 1
     11 #define XFA_EVENT_FULLTEXT 2
     12 #define XFA_EVENT_KEYDOWN 3
     13 #define XFA_EVENT_MODIFIER 4
     14 #define XFA_EVENT_NEWCONTENTTYPE 5
     15 #define XFA_EVENT_NEWTEXT 6
     16 #define XFA_EVENT_PREVCONTENTTYPE 7
     17 #define XFA_EVENT_PREVTEXT 8
     18 #define XFA_EVENT_REENTER 9
     19 #define XFA_EVENT_SELEND 10
     20 #define XFA_EVENT_SELSTART 11
     21 #define XFA_EVENT_SHIFT 12
     22 #define XFA_EVENT_SOAPFAULTCODE 13
     23 #define XFA_EVENT_SOAPFAULTSTRING 14
     24 #define XFA_EVENT_TARGET 15
     25 #define XFA_EVENT_CANCELACTION 16
     26 class CScript_EventPseudoModel : public CXFA_OrdinaryObject {
     27  public:
     28   CScript_EventPseudoModel(CXFA_Document* pDocument);
     29   virtual ~CScript_EventPseudoModel();
     30 
     31   void Script_EventPseudoModel_CancelAction(FXJSE_HVALUE hValue,
     32                                             FX_BOOL bSetting,
     33                                             XFA_ATTRIBUTE eAttribute);
     34   void Script_EventPseudoModel_Change(FXJSE_HVALUE hValue,
     35                                       FX_BOOL bSetting,
     36                                       XFA_ATTRIBUTE eAttribute);
     37   void Script_EventPseudoModel_CommitKey(FXJSE_HVALUE hValue,
     38                                          FX_BOOL bSetting,
     39                                          XFA_ATTRIBUTE eAttribute);
     40   void Script_EventPseudoModel_FullText(FXJSE_HVALUE hValue,
     41                                         FX_BOOL bSetting,
     42                                         XFA_ATTRIBUTE eAttribute);
     43   void Script_EventPseudoModel_KeyDown(FXJSE_HVALUE hValue,
     44                                        FX_BOOL bSetting,
     45                                        XFA_ATTRIBUTE eAttribute);
     46   void Script_EventPseudoModel_Modifier(FXJSE_HVALUE hValue,
     47                                         FX_BOOL bSetting,
     48                                         XFA_ATTRIBUTE eAttribute);
     49   void Script_EventPseudoModel_NewContentType(FXJSE_HVALUE hValue,
     50                                               FX_BOOL bSetting,
     51                                               XFA_ATTRIBUTE eAttribute);
     52   void Script_EventPseudoModel_NewText(FXJSE_HVALUE hValue,
     53                                        FX_BOOL bSetting,
     54                                        XFA_ATTRIBUTE eAttribute);
     55   void Script_EventPseudoModel_PrevContentType(FXJSE_HVALUE hValue,
     56                                                FX_BOOL bSetting,
     57                                                XFA_ATTRIBUTE eAttribute);
     58   void Script_EventPseudoModel_PrevText(FXJSE_HVALUE hValue,
     59                                         FX_BOOL bSetting,
     60                                         XFA_ATTRIBUTE eAttribute);
     61   void Script_EventPseudoModel_Reenter(FXJSE_HVALUE hValue,
     62                                        FX_BOOL bSetting,
     63                                        XFA_ATTRIBUTE eAttribute);
     64   void Script_EventPseudoModel_SelEnd(FXJSE_HVALUE hValue,
     65                                       FX_BOOL bSetting,
     66                                       XFA_ATTRIBUTE eAttribute);
     67   void Script_EventPseudoModel_SelStart(FXJSE_HVALUE hValue,
     68                                         FX_BOOL bSetting,
     69                                         XFA_ATTRIBUTE eAttribute);
     70   void Script_EventPseudoModel_Shift(FXJSE_HVALUE hValue,
     71                                      FX_BOOL bSetting,
     72                                      XFA_ATTRIBUTE eAttribute);
     73   void Script_EventPseudoModel_SoapFaultCode(FXJSE_HVALUE hValue,
     74                                              FX_BOOL bSetting,
     75                                              XFA_ATTRIBUTE eAttribute);
     76   void Script_EventPseudoModel_SoapFaultString(FXJSE_HVALUE hValue,
     77                                                FX_BOOL bSetting,
     78                                                XFA_ATTRIBUTE eAttribute);
     79   void Script_EventPseudoModel_Target(FXJSE_HVALUE hValue,
     80                                       FX_BOOL bSetting,
     81                                       XFA_ATTRIBUTE eAttribute);
     82 
     83   void Script_EventPseudoModel_Emit(CFXJSE_Arguments* pArguments);
     84   void Script_EventPseudoModel_Reset(CFXJSE_Arguments* pArguments);
     85 
     86  protected:
     87   void Script_EventPseudoModel_Property(FXJSE_HVALUE hValue,
     88                                         FX_DWORD dwFlag,
     89                                         FX_BOOL bSetting);
     90 };
     91 #endif
     92