// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (TransEngine == null) var TransEngine = {}; TransEngine._path = '/newNotii/dwr'; TransEngine.setTranslateState = function(callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'setTranslateState', false, callback); } TransEngine.setFileInfo = function(p0, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'setFileInfo', p0, callback); } TransEngine.getFileInfo = function(callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'getFileInfo', callback); } TransEngine.requestTrans = function(p0, p1, p2, p3, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'requestTrans', p0, p1, p2, p3, false, callback); } TransEngine.requestTransKE = function(p0, p1, p2, p3, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'requestTransKE', p0, p1, p2, p3, false, callback); } TransEngine.requestTransPDF = function(p0, p1, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'requestTransPDF', p0, p1, false, callback); } TransEngine.splitSentence = function(p0, p1, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'splitSentence', p0, p1, callback); } TransEngine.setParphList = function(p0, callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'setParphList', p0, callback); } TransEngine.getParphList = function(callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'getParphList', callback); } TransEngine.clear = function(callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'clear', callback); } TransEngine.getStatus = function(callback) { dwr.engine._execute(TransEngine._path, 'TransEngine', 'getStatus', callback); }