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_TEMPLATE_H_ 8 #define FXJS_XFA_CJX_TEMPLATE_H_ 9 10 #include "fxjs/CJX_Define.h" 11 #include "fxjs/xfa/cjx_model.h" 12 13 class CXFA_Template; 14 15 class CJX_Template : public CJX_Model { 16 public: 17 explicit CJX_Template(CXFA_Template* tmpl); 18 ~CJX_Template() override; 19 20 /* The docs list a |createNode| method on Template but that method already 21 * exists on Model, also the |createNode| docs say it exists on Model not 22 * on Template so I'm leaving |createNode| out of the template methods. */ 23 JS_METHOD(execCalculate, CJX_Template); 24 JS_METHOD(execInitialize, CJX_Template); 25 JS_METHOD(execValidate, CJX_Template); 26 JS_METHOD(formNodes, CJX_Template); 27 JS_METHOD(recalculate, CJX_Template); 28 JS_METHOD(remerge, CJX_Template); 29 30 private: 31 static const CJX_MethodSpec MethodSpecs[]; 32 }; 33 34 #endif // FXJS_XFA_CJX_TEMPLATE_H_ 35