Lines Matching refs:javascript

95 bool CXFA_FMSimpleExpression::ToJavaScript(CFX_WideTextBuf& javascript) {  in ToJavaScript()  argument
97 return !CXFA_IsTooBig(javascript) && depthManager.IsWithinMaxDepth(); in ToJavaScript()
100 bool CXFA_FMSimpleExpression::ToImpliedReturnJS(CFX_WideTextBuf& javascript) { in ToImpliedReturnJS() argument
102 return !CXFA_IsTooBig(javascript) && depthManager.IsWithinMaxDepth(); in ToImpliedReturnJS()
112 bool CXFA_FMNullExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
114 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
117 javascript << L"null"; in ToJavaScript()
118 return !CXFA_IsTooBig(javascript); in ToJavaScript()
127 bool CXFA_FMNumberExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
129 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
132 javascript << m_wsNumber; in ToJavaScript()
133 return !CXFA_IsTooBig(javascript); in ToJavaScript()
142 bool CXFA_FMStringExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
144 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
149 javascript << tempStr; in ToJavaScript()
150 return !CXFA_IsTooBig(javascript); in ToJavaScript()
152 javascript.AppendChar(L'\"'); in ToJavaScript()
158 javascript << L"\\\""; in ToJavaScript()
163 javascript << L"\\n"; in ToJavaScript()
166 javascript.AppendChar(oneChar); in ToJavaScript()
170 javascript.AppendChar(L'\"'); in ToJavaScript()
171 return !CXFA_IsTooBig(javascript); in ToJavaScript()
182 bool CXFA_FMIdentifierExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
184 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
208 javascript << tempStr; in ToJavaScript()
209 return !CXFA_IsTooBig(javascript); in ToJavaScript()
220 bool CXFA_FMUnaryExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
222 return !CXFA_IsTooBig(javascript) && depthManager.IsWithinMaxDepth(); in ToJavaScript()
236 bool CXFA_FMBinExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
238 return !CXFA_IsTooBig(javascript) && depthManager.IsWithinMaxDepth(); in ToJavaScript()
248 bool CXFA_FMAssignExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
250 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
253 javascript << L"if ("; in ToJavaScript()
254 javascript << gs_lpStrExpFuncName[ISFMOBJECT]; in ToJavaScript()
255 javascript << L"("; in ToJavaScript()
259 javascript << tempExp1; in ToJavaScript()
260 javascript << L"))\n{\n"; in ToJavaScript()
261 javascript << gs_lpStrExpFuncName[ASSIGN]; in ToJavaScript()
262 javascript << L"("; in ToJavaScript()
263 javascript << tempExp1; in ToJavaScript()
264 javascript << L", "; in ToJavaScript()
269 javascript << tempExp2; in ToJavaScript()
270 javascript << L");\n}\n"; in ToJavaScript()
273 javascript << L"else\n{\n"; in ToJavaScript()
274 javascript << tempExp1; in ToJavaScript()
275 javascript << L" = "; in ToJavaScript()
276 javascript << gs_lpStrExpFuncName[ASSIGN]; in ToJavaScript()
277 javascript << L"("; in ToJavaScript()
278 javascript << tempExp1; in ToJavaScript()
279 javascript << L", "; in ToJavaScript()
280 javascript << tempExp2; in ToJavaScript()
281 javascript << L");\n}\n"; in ToJavaScript()
283 return !CXFA_IsTooBig(javascript); in ToJavaScript()
286 bool CXFA_FMAssignExpression::ToImpliedReturnJS(CFX_WideTextBuf& javascript) { in ToImpliedReturnJS() argument
288 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToImpliedReturnJS()
291 javascript << L"if ("; in ToImpliedReturnJS()
292 javascript << gs_lpStrExpFuncName[ISFMOBJECT]; in ToImpliedReturnJS()
293 javascript << L"("; in ToImpliedReturnJS()
297 javascript << tempExp1; in ToImpliedReturnJS()
298 javascript << L"))\n{\n"; in ToImpliedReturnJS()
299 javascript << RUNTIMEFUNCTIONRETURNVALUE; in ToImpliedReturnJS()
300 javascript << L" = "; in ToImpliedReturnJS()
301 javascript << gs_lpStrExpFuncName[ASSIGN]; in ToImpliedReturnJS()
302 javascript << L"("; in ToImpliedReturnJS()
303 javascript << tempExp1; in ToImpliedReturnJS()
304 javascript << L", "; in ToImpliedReturnJS()
309 javascript << tempExp2; in ToImpliedReturnJS()
310 javascript << L");\n}\n"; in ToImpliedReturnJS()
313 javascript << L"else\n{\n"; in ToImpliedReturnJS()
314 javascript << RUNTIMEFUNCTIONRETURNVALUE; in ToImpliedReturnJS()
315 javascript << L" = "; in ToImpliedReturnJS()
316 javascript << tempExp1; in ToImpliedReturnJS()
317 javascript << L" = "; in ToImpliedReturnJS()
318 javascript << gs_lpStrExpFuncName[ASSIGN]; in ToImpliedReturnJS()
319 javascript << L"("; in ToImpliedReturnJS()
320 javascript << tempExp1; in ToImpliedReturnJS()
321 javascript << L", "; in ToImpliedReturnJS()
322 javascript << tempExp2; in ToImpliedReturnJS()
323 javascript << L");\n}\n"; in ToImpliedReturnJS()
325 return !CXFA_IsTooBig(javascript); in ToImpliedReturnJS()
335 bool CXFA_FMLogicalOrExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
337 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
340 javascript << gs_lpStrExpFuncName[LOGICALOR]; in ToJavaScript()
341 javascript << L"("; in ToJavaScript()
342 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
344 javascript << L", "; in ToJavaScript()
345 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
347 javascript << L")"; in ToJavaScript()
348 return !CXFA_IsTooBig(javascript); in ToJavaScript()
358 bool CXFA_FMLogicalAndExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
360 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
363 javascript << gs_lpStrExpFuncName[LOGICALAND]; in ToJavaScript()
364 javascript << L"("; in ToJavaScript()
365 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
367 javascript << L", "; in ToJavaScript()
368 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
370 javascript << L")"; in ToJavaScript()
371 return !CXFA_IsTooBig(javascript); in ToJavaScript()
381 bool CXFA_FMEqualityExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
383 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
389 javascript << gs_lpStrExpFuncName[EQUALITY]; in ToJavaScript()
393 javascript << gs_lpStrExpFuncName[NOTEQUALITY]; in ToJavaScript()
399 javascript << L"("; in ToJavaScript()
400 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
402 javascript << L", "; in ToJavaScript()
403 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
405 javascript << L")"; in ToJavaScript()
406 return !CXFA_IsTooBig(javascript); in ToJavaScript()
416 bool CXFA_FMRelationalExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
418 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
424 javascript << gs_lpStrExpFuncName[LESS]; in ToJavaScript()
428 javascript << gs_lpStrExpFuncName[GREATER]; in ToJavaScript()
432 javascript << gs_lpStrExpFuncName[LESSEQUAL]; in ToJavaScript()
436 javascript << gs_lpStrExpFuncName[GREATEREQUAL]; in ToJavaScript()
442 javascript << L"("; in ToJavaScript()
443 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
445 javascript << L", "; in ToJavaScript()
446 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
448 javascript << L")"; in ToJavaScript()
449 return !CXFA_IsTooBig(javascript); in ToJavaScript()
459 bool CXFA_FMAdditiveExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
461 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
466 javascript << gs_lpStrExpFuncName[PLUS]; in ToJavaScript()
469 javascript << gs_lpStrExpFuncName[MINUS]; in ToJavaScript()
475 javascript << L"("; in ToJavaScript()
476 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
478 javascript << L", "; in ToJavaScript()
479 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
481 javascript << L")"; in ToJavaScript()
482 return !CXFA_IsTooBig(javascript); in ToJavaScript()
493 CFX_WideTextBuf& javascript) { in ToJavaScript() argument
495 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
500 javascript << gs_lpStrExpFuncName[MULTIPLE]; in ToJavaScript()
503 javascript << gs_lpStrExpFuncName[DIVIDE]; in ToJavaScript()
509 javascript << L"("; in ToJavaScript()
510 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
512 javascript << L", "; in ToJavaScript()
513 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
515 javascript << L")"; in ToJavaScript()
516 return !CXFA_IsTooBig(javascript); in ToJavaScript()
524 bool CXFA_FMPosExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
526 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
529 javascript << gs_lpStrExpFuncName[POSITIVE]; in ToJavaScript()
530 javascript << L"("; in ToJavaScript()
531 if (!m_pExp->ToJavaScript(javascript)) in ToJavaScript()
533 javascript << L")"; in ToJavaScript()
534 return !CXFA_IsTooBig(javascript); in ToJavaScript()
542 bool CXFA_FMNegExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
544 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
547 javascript << gs_lpStrExpFuncName[NEGATIVE]; in ToJavaScript()
548 javascript << L"("; in ToJavaScript()
549 if (!m_pExp->ToJavaScript(javascript)) in ToJavaScript()
551 javascript << L")"; in ToJavaScript()
552 return !CXFA_IsTooBig(javascript); in ToJavaScript()
560 bool CXFA_FMNotExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
562 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
565 javascript << gs_lpStrExpFuncName[NOT]; in ToJavaScript()
566 javascript << L"("; in ToJavaScript()
567 if (!m_pExp->ToJavaScript(javascript)) in ToJavaScript()
569 javascript << L")"; in ToJavaScript()
570 return !CXFA_IsTooBig(javascript); in ToJavaScript()
618 bool CXFA_FMCallExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
620 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
627 javascript << funcName; in ToJavaScript()
628 javascript << L"("; in ToJavaScript()
636 javascript << gs_lpStrExpFuncName[GETFMJSOBJ]; in ToJavaScript()
638 javascript << gs_lpStrExpFuncName[GETFMVALUE]; in ToJavaScript()
640 javascript << L"("; in ToJavaScript()
642 if (!expr->ToJavaScript(javascript)) in ToJavaScript()
644 javascript << L")"; in ToJavaScript()
646 javascript << L", "; in ToJavaScript()
651 javascript << gs_lpStrExpFuncName[GETFMVALUE]; in ToJavaScript()
652 javascript << L"("; in ToJavaScript()
653 if (!expr->ToJavaScript(javascript)) in ToJavaScript()
655 javascript << L")"; in ToJavaScript()
657 javascript << L", "; in ToJavaScript()
660 javascript << L")"; in ToJavaScript()
667 javascript << L"eval.call(this, "; in ToJavaScript()
668 javascript << gs_lpStrExpFuncName[CALL]; in ToJavaScript()
669 javascript << L"Translate"; in ToJavaScript()
672 javascript << gs_lpStrExpFuncName[CALL]; in ToJavaScript()
673 javascript << funcName; in ToJavaScript()
675 javascript << gs_lpStrExpFuncName[CALL]; in ToJavaScript()
676 javascript << funcName; in ToJavaScript()
685 javascript << L"("; in ToJavaScript()
687 javascript << L"\n(\nfunction ()\n{\ntry\n{\n"; in ToJavaScript()
690 javascript << L"return "; in ToJavaScript()
691 if (!expr->ToJavaScript(javascript)) in ToJavaScript()
693 javascript << L";\n}\n"; in ToJavaScript()
695 javascript << L"return 0;\n}\n"; in ToJavaScript()
697 javascript << L"catch(accessExceptions)\n"; in ToJavaScript()
698 javascript << L"{\nreturn 0;\n}\n}\n).call(this)\n"; in ToJavaScript()
701 if (!expr->ToJavaScript(javascript)) in ToJavaScript()
704 javascript << L", "; in ToJavaScript()
707 javascript << L")"; in ToJavaScript()
709 javascript << L")"; in ToJavaScript()
712 return !CXFA_IsTooBig(javascript); in ToJavaScript()
729 bool CXFA_FMDotAccessorExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
731 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
734 javascript << gs_lpStrExpFuncName[DOT]; in ToJavaScript()
735 javascript << L"("; in ToJavaScript()
740 javascript << tempExp1; in ToJavaScript()
742 javascript << L"null"; in ToJavaScript()
744 javascript << L", "; in ToJavaScript()
745 javascript << L"\""; in ToJavaScript()
748 javascript << tempExp1; in ToJavaScript()
749 javascript << L"\", "; in ToJavaScript()
751 javascript << L"\"#"; in ToJavaScript()
752 javascript << m_wsIdentifier; in ToJavaScript()
753 javascript << L"\", "; in ToJavaScript()
755 javascript << L"\"*\", "; in ToJavaScript()
757 javascript << L"\"\", "; in ToJavaScript()
759 javascript << L"\""; in ToJavaScript()
760 javascript << m_wsIdentifier; in ToJavaScript()
761 javascript << L"\", "; in ToJavaScript()
763 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
765 javascript << L")"; in ToJavaScript()
766 return !CXFA_IsTooBig(javascript); in ToJavaScript()
778 bool CXFA_FMIndexExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
780 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
785 javascript << L"0"; in ToJavaScript()
788 javascript << L"1"; in ToJavaScript()
791 javascript << L"2"; in ToJavaScript()
794 javascript << L"3"; in ToJavaScript()
797 javascript << L"0"; in ToJavaScript()
800 javascript << L", "; in ToJavaScript()
802 if (!m_pExp->ToJavaScript(javascript)) in ToJavaScript()
805 javascript << L"0"; in ToJavaScript()
808 return !CXFA_IsTooBig(javascript); in ToJavaScript()
826 CFX_WideTextBuf& javascript) { in ToJavaScript() argument
828 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
831 javascript << gs_lpStrExpFuncName[DOTDOT]; in ToJavaScript()
832 javascript << L"("; in ToJavaScript()
836 javascript << tempExp1; in ToJavaScript()
837 javascript << L", "; in ToJavaScript()
838 javascript << L"\""; in ToJavaScript()
841 javascript << tempExp1; in ToJavaScript()
842 javascript << L"\", "; in ToJavaScript()
843 javascript << L"\""; in ToJavaScript()
844 javascript << m_wsIdentifier; in ToJavaScript()
845 javascript << L"\", "; in ToJavaScript()
846 if (!m_pExp2->ToJavaScript(javascript)) in ToJavaScript()
848 javascript << L")"; in ToJavaScript()
849 return !CXFA_IsTooBig(javascript); in ToJavaScript()
861 bool CXFA_FMMethodCallExpression::ToJavaScript(CFX_WideTextBuf& javascript) { in ToJavaScript() argument
863 if (CXFA_IsTooBig(javascript) || !depthManager.IsWithinMaxDepth()) in ToJavaScript()
866 javascript << L"(\nfunction ()\n{\n"; in ToJavaScript()
867 javascript << L"var method_return_value = null;\n"; in ToJavaScript()
868 javascript << L"var accessor_object = "; in ToJavaScript()
869 if (!m_pExp1->ToJavaScript(javascript)) in ToJavaScript()
871 javascript << L";\n"; in ToJavaScript()
872 javascript << L"if ("; in ToJavaScript()
873 javascript << gs_lpStrExpFuncName[ISFMARRAY]; in ToJavaScript()
874 javascript << L"(accessor_object))\n{\n"; in ToJavaScript()
875 javascript << L"for(var index = accessor_object.length - 1; index > 1; " in ToJavaScript()
877 javascript << L"method_return_value = accessor_object[index]."; in ToJavaScript()
882 javascript << tempExp2; in ToJavaScript()
883 javascript << L";\n}\n}\n"; in ToJavaScript()
884 javascript << L"else\n{\nmethod_return_value = accessor_object."; in ToJavaScript()
885 javascript << tempExp2; in ToJavaScript()
886 javascript << L";\n}\n"; in ToJavaScript()
887 javascript << L"return method_return_value;\n"; in ToJavaScript()
888 javascript << L"}\n).call(this)"; in ToJavaScript()
889 return !CXFA_IsTooBig(javascript); in ToJavaScript()
892 bool CXFA_IsTooBig(const CFX_WideTextBuf& javascript) { in CXFA_IsTooBig() argument
893 return javascript.GetSize() >= 256 * 1024 * 1024; in CXFA_IsTooBig()