Home | History | Annotate | Download | only in xfa
      1 // Copyright 2017 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 FXJS_XFA_CJX_HOSTPSEUDOMODEL_H_
      8 #define FXJS_XFA_CJX_HOSTPSEUDOMODEL_H_
      9 
     10 #include "fxjs/CJX_Define.h"
     11 #include "fxjs/xfa/cjx_object.h"
     12 #include "xfa/fxfa/fxfa_basic.h"
     13 
     14 class CFXJSE_Value;
     15 class CScript_HostPseudoModel;
     16 
     17 class CJX_HostPseudoModel : public CJX_Object {
     18  public:
     19   explicit CJX_HostPseudoModel(CScript_HostPseudoModel* model);
     20   ~CJX_HostPseudoModel() override;
     21 
     22   JS_METHOD(beep, CJX_HostPseudoModel);
     23   JS_METHOD(documentCountInBatch, CJX_HostPseudoModel);
     24   JS_METHOD(documentInBatch, CJX_HostPseudoModel);
     25   JS_METHOD(exportData, CJX_HostPseudoModel);
     26   JS_METHOD(getFocus, CJX_HostPseudoModel);
     27   JS_METHOD(gotoURL, CJX_HostPseudoModel);
     28   JS_METHOD(importData, CJX_HostPseudoModel);
     29   JS_METHOD(messageBox, CJX_HostPseudoModel);
     30   JS_METHOD(openList, CJX_HostPseudoModel);
     31   JS_METHOD(pageDown, CJX_HostPseudoModel);
     32   JS_METHOD(pageUp, CJX_HostPseudoModel);
     33   JS_METHOD(print, CJX_HostPseudoModel);
     34   JS_METHOD(resetData, CJX_HostPseudoModel);
     35   JS_METHOD(response, CJX_HostPseudoModel);
     36   JS_METHOD(setFocus, CJX_HostPseudoModel);
     37 
     38   JS_PROP(appType);
     39   JS_PROP(calculationsEnabled);
     40   JS_PROP(currentPage);
     41   JS_PROP(language);
     42   JS_PROP(numPages);
     43   JS_PROP(platform);
     44   JS_PROP(title);
     45   JS_PROP(validationsEnabled);
     46   JS_PROP(variation);
     47   JS_PROP(version);
     48 
     49   // TODO(dsinclair): Remove when xfa_basic_data_element_script is removed.
     50   // Doesn't exist in spec
     51   JS_PROP(name);
     52 
     53  private:
     54   static const CJX_MethodSpec MethodSpecs[];
     55 };
     56 
     57 #endif  // FXJS_XFA_CJX_HOSTPSEUDOMODEL_H_
     58