• Home
  • Raw
  • Download

Lines Matching refs:pRuntime

604 CJS_Field::CJS_Field(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime)  in CJS_Field()  argument
605 : CJS_Object(pObject, pRuntime) {} in CJS_Field()
658 CJS_Result CJS_Field::get_alignment(CJS_Runtime* pRuntime) { in get_alignment() argument
674 return CJS_Result::Success(pRuntime->NewString("left")); in get_alignment()
676 return CJS_Result::Success(pRuntime->NewString("center")); in get_alignment()
678 return CJS_Result::Success(pRuntime->NewString("right")); in get_alignment()
680 return CJS_Result::Success(pRuntime->NewString("")); in get_alignment()
683 CJS_Result CJS_Field::set_alignment(CJS_Runtime* pRuntime, in set_alignment() argument
692 CJS_Result CJS_Field::get_border_style(CJS_Runtime* pRuntime) { in get_border_style() argument
706 return CJS_Result::Success(pRuntime->NewString("solid")); in get_border_style()
708 return CJS_Result::Success(pRuntime->NewString("dashed")); in get_border_style()
710 return CJS_Result::Success(pRuntime->NewString("beveled")); in get_border_style()
712 return CJS_Result::Success(pRuntime->NewString("inset")); in get_border_style()
714 return CJS_Result::Success(pRuntime->NewString("underline")); in get_border_style()
716 return CJS_Result::Success(pRuntime->NewString("")); in get_border_style()
719 CJS_Result CJS_Field::set_border_style(CJS_Runtime* pRuntime, in set_border_style() argument
725 ByteString byte_str = pRuntime->ToWideString(vp).ToDefANSI(); in set_border_style()
735 CJS_Result CJS_Field::get_button_align_x(CJS_Runtime* pRuntime) { in get_button_align_x() argument
751 return CJS_Result::Success(pRuntime->NewNumber(static_cast<int32_t>(pos.x))); in get_button_align_x()
754 CJS_Result CJS_Field::set_button_align_x(CJS_Runtime* pRuntime, in set_button_align_x() argument
762 CJS_Result CJS_Field::get_button_align_y(CJS_Runtime* pRuntime) { in get_button_align_y() argument
778 return CJS_Result::Success(pRuntime->NewNumber(static_cast<int32_t>(pos.y))); in get_button_align_y()
781 CJS_Result CJS_Field::set_button_align_y(CJS_Runtime* pRuntime, in set_button_align_y() argument
789 CJS_Result CJS_Field::get_button_fit_bounds(CJS_Runtime* pRuntime) { in get_button_fit_bounds() argument
804 pRuntime->NewBoolean(pFormControl->GetIconFit().GetFittingBounds())); in get_button_fit_bounds()
807 CJS_Result CJS_Field::set_button_fit_bounds(CJS_Runtime* pRuntime, in set_button_fit_bounds() argument
815 CJS_Result CJS_Field::get_button_position(CJS_Runtime* pRuntime) { in get_button_position() argument
830 pRuntime->NewNumber(pFormControl->GetTextPosition())); in get_button_position()
833 CJS_Result CJS_Field::set_button_position(CJS_Runtime* pRuntime, in set_button_position() argument
841 CJS_Result CJS_Field::get_button_scale_how(CJS_Runtime* pRuntime) { in get_button_scale_how() argument
855 return CJS_Result::Success(pRuntime->NewBoolean( in get_button_scale_how()
859 CJS_Result CJS_Field::set_button_scale_how(CJS_Runtime* pRuntime, in set_button_scale_how() argument
867 CJS_Result CJS_Field::get_button_scale_when(CJS_Runtime* pRuntime) { in get_button_scale_when() argument
886 pRuntime->NewNumber(static_cast<int32_t>(CPDF_IconFit::Always))); in get_button_scale_when()
889 pRuntime->NewNumber(static_cast<int32_t>(CPDF_IconFit::Bigger))); in get_button_scale_when()
892 pRuntime->NewNumber(static_cast<int32_t>(CPDF_IconFit::Never))); in get_button_scale_when()
895 pRuntime->NewNumber(static_cast<int32_t>(CPDF_IconFit::Smaller))); in get_button_scale_when()
900 CJS_Result CJS_Field::set_button_scale_when(CJS_Runtime* pRuntime, in set_button_scale_when() argument
908 CJS_Result CJS_Field::get_calc_order_index(CJS_Runtime* pRuntime) { in get_calc_order_index() argument
920 return CJS_Result::Success(pRuntime->NewNumber( in get_calc_order_index()
924 CJS_Result CJS_Field::set_calc_order_index(CJS_Runtime* pRuntime, in set_calc_order_index() argument
932 CJS_Result CJS_Field::get_char_limit(CJS_Runtime* pRuntime) { in get_char_limit() argument
942 pRuntime->NewNumber(static_cast<int32_t>(pFormField->GetMaxLen()))); in get_char_limit()
945 CJS_Result CJS_Field::set_char_limit(CJS_Runtime* pRuntime, in set_char_limit() argument
953 CJS_Result CJS_Field::get_comb(CJS_Runtime* pRuntime) { in get_comb() argument
963 return CJS_Result::Success(pRuntime->NewBoolean( in get_comb()
967 CJS_Result CJS_Field::set_comb(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_comb() argument
974 CJS_Result CJS_Field::get_commit_on_sel_change(CJS_Runtime* pRuntime) { in get_commit_on_sel_change() argument
985 return CJS_Result::Success(pRuntime->NewBoolean( in get_commit_on_sel_change()
989 CJS_Result CJS_Field::set_commit_on_sel_change(CJS_Runtime* pRuntime, in set_commit_on_sel_change() argument
997 CJS_Result CJS_Field::get_current_value_indices(CJS_Runtime* pRuntime) { in get_current_value_indices() argument
1007 return CJS_Result::Success(pRuntime->NewNumber(-1)); in get_current_value_indices()
1010 pRuntime->NewNumber(pFormField->GetSelectedIndex(0))); in get_current_value_indices()
1012 v8::Local<v8::Array> SelArray = pRuntime->NewArray(); in get_current_value_indices()
1014 pRuntime->PutArrayElement( in get_current_value_indices()
1015 SelArray, i, pRuntime->NewNumber(pFormField->GetSelectedIndex(i))); in get_current_value_indices()
1018 return CJS_Result::Success(pRuntime->NewArray()); in get_current_value_indices()
1022 CJS_Result CJS_Field::set_current_value_indices(CJS_Runtime* pRuntime, in set_current_value_indices() argument
1029 array.push_back(pRuntime->ToInt32(vp)); in set_current_value_indices()
1031 v8::Local<v8::Array> SelArray = pRuntime->ToArray(vp); in set_current_value_indices()
1032 for (size_t i = 0; i < pRuntime->GetArrayLength(SelArray); i++) { in set_current_value_indices()
1034 pRuntime->ToInt32(pRuntime->GetArrayElement(SelArray, i))); in set_current_value_indices()
1047 CJS_Result CJS_Field::get_default_style(CJS_Runtime* pRuntime) { in get_default_style() argument
1051 CJS_Result CJS_Field::set_default_style(CJS_Runtime* pRuntime, in set_default_style() argument
1056 CJS_Result CJS_Field::get_default_value(CJS_Runtime* pRuntime) { in get_default_value() argument
1069 pRuntime->NewString(pFormField->GetDefaultValue().AsStringView())); in get_default_value()
1072 CJS_Result CJS_Field::set_default_value(CJS_Runtime* pRuntime, in set_default_value() argument
1080 CJS_Result CJS_Field::get_do_not_scroll(CJS_Runtime* pRuntime) { in get_do_not_scroll() argument
1090 return CJS_Result::Success(pRuntime->NewBoolean( in get_do_not_scroll()
1094 CJS_Result CJS_Field::set_do_not_scroll(CJS_Runtime* pRuntime, in set_do_not_scroll() argument
1102 CJS_Result CJS_Field::get_do_not_spell_check(CJS_Runtime* pRuntime) { in get_do_not_spell_check() argument
1113 return CJS_Result::Success(pRuntime->NewBoolean( in get_do_not_spell_check()
1117 CJS_Result CJS_Field::set_do_not_spell_check(CJS_Runtime* pRuntime, in set_do_not_spell_check() argument
1134 CJS_Result CJS_Field::get_delay(CJS_Runtime* pRuntime) { in get_delay() argument
1135 return CJS_Result::Success(pRuntime->NewBoolean(m_bDelay)); in get_delay()
1138 CJS_Result CJS_Field::set_delay(CJS_Runtime* pRuntime, in set_delay() argument
1143 SetDelay(pRuntime->ToBoolean(vp)); in set_delay()
1147 CJS_Result CJS_Field::get_display(CJS_Runtime* pRuntime) { in get_display() argument
1160 return CJS_Result::Success(pRuntime->NewNumber(1)); in get_display()
1165 return CJS_Result::Success(pRuntime->NewNumber(3)); in get_display()
1166 return CJS_Result::Success(pRuntime->NewNumber(0)); in get_display()
1168 return CJS_Result::Success(pRuntime->NewNumber(2)); in get_display()
1171 CJS_Result CJS_Field::set_display(CJS_Runtime* pRuntime, in set_display() argument
1177 AddDelay_Int(FP_DISPLAY, pRuntime->ToInt32(vp)); in set_display()
1180 pRuntime->ToInt32(vp)); in set_display()
1185 CJS_Result CJS_Field::get_doc(CJS_Runtime* pRuntime) { in get_doc() argument
1189 CJS_Result CJS_Field::set_doc(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_doc() argument
1193 CJS_Result CJS_Field::get_editable(CJS_Runtime* pRuntime) { in get_editable() argument
1201 return CJS_Result::Success(pRuntime->NewBoolean( in get_editable()
1205 CJS_Result CJS_Field::set_editable(CJS_Runtime* pRuntime, in set_editable() argument
1212 CJS_Result CJS_Field::get_export_values(CJS_Runtime* pRuntime) { in get_export_values() argument
1220 v8::Local<v8::Array> ExportValuesArray = pRuntime->NewArray(); in get_export_values()
1224 pRuntime->PutArrayElement( in get_export_values()
1226 pRuntime->NewString(pFormControl->GetExportValue().AsStringView())); in get_export_values()
1237 pRuntime->PutArrayElement( in get_export_values()
1239 pRuntime->NewString(pFormControl->GetExportValue().AsStringView())); in get_export_values()
1244 CJS_Result CJS_Field::set_export_values(CJS_Runtime* pRuntime, in set_export_values() argument
1262 CJS_Result CJS_Field::get_file_select(CJS_Runtime* pRuntime) { in get_file_select() argument
1270 return CJS_Result::Success(pRuntime->NewBoolean( in get_file_select()
1274 CJS_Result CJS_Field::set_file_select(CJS_Runtime* pRuntime, in set_file_select() argument
1289 CJS_Result CJS_Field::get_fill_color(CJS_Runtime* pRuntime) { in get_fill_color() argument
1323 CJS_Color::ConvertPWLColorToArray(pRuntime, color); in get_fill_color()
1325 return CJS_Result::Success(pRuntime->NewArray()); in get_fill_color()
1329 CJS_Result CJS_Field::set_fill_color(CJS_Runtime* pRuntime, in set_fill_color() argument
1341 CJS_Result CJS_Field::get_hidden(CJS_Runtime* pRuntime) { in get_hidden() argument
1353 pRuntime->NewBoolean(pdfium::annotation_flags::kInvisible & dwFlags || in get_hidden()
1357 CJS_Result CJS_Field::set_hidden(CJS_Runtime* pRuntime, in set_hidden() argument
1363 AddDelay_Bool(FP_HIDDEN, pRuntime->ToBoolean(vp)); in set_hidden()
1366 pRuntime->ToBoolean(vp)); in set_hidden()
1371 CJS_Result CJS_Field::get_highlight(CJS_Runtime* pRuntime) { in get_highlight() argument
1388 return CJS_Result::Success(pRuntime->NewString("none")); in get_highlight()
1390 return CJS_Result::Success(pRuntime->NewString("push")); in get_highlight()
1392 return CJS_Result::Success(pRuntime->NewString("invert")); in get_highlight()
1394 return CJS_Result::Success(pRuntime->NewString("outline")); in get_highlight()
1396 return CJS_Result::Success(pRuntime->NewString("toggle")); in get_highlight()
1401 CJS_Result CJS_Field::set_highlight(CJS_Runtime* pRuntime, in set_highlight() argument
1409 CJS_Result CJS_Field::get_line_width(CJS_Runtime* pRuntime) { in get_line_width() argument
1426 return CJS_Result::Success(pRuntime->NewNumber(pWidget->GetBorderWidth())); in get_line_width()
1429 CJS_Result CJS_Field::set_line_width(CJS_Runtime* pRuntime, in set_line_width() argument
1435 AddDelay_Int(FP_LINEWIDTH, pRuntime->ToInt32(vp)); in set_line_width()
1438 pRuntime->ToInt32(vp)); in set_line_width()
1443 CJS_Result CJS_Field::get_multiline(CJS_Runtime* pRuntime) { in get_multiline() argument
1453 return CJS_Result::Success(pRuntime->NewBoolean( in get_multiline()
1457 CJS_Result CJS_Field::set_multiline(CJS_Runtime* pRuntime, in set_multiline() argument
1465 CJS_Result CJS_Field::get_multiple_selection(CJS_Runtime* pRuntime) { in get_multiple_selection() argument
1475 return CJS_Result::Success(pRuntime->NewBoolean( in get_multiple_selection()
1479 CJS_Result CJS_Field::set_multiple_selection(CJS_Runtime* pRuntime, in set_multiple_selection() argument
1487 CJS_Result CJS_Field::get_name(CJS_Runtime* pRuntime) { in get_name() argument
1492 return CJS_Result::Success(pRuntime->NewString(m_FieldName.AsStringView())); in get_name()
1495 CJS_Result CJS_Field::set_name(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_name() argument
1499 CJS_Result CJS_Field::get_num_items(CJS_Runtime* pRuntime) { in get_num_items() argument
1507 return CJS_Result::Success(pRuntime->NewNumber(pFormField->CountOptions())); in get_num_items()
1510 CJS_Result CJS_Field::set_num_items(CJS_Runtime* pRuntime, in set_num_items() argument
1515 CJS_Result CJS_Field::get_page(CJS_Runtime* pRuntime) { in get_page() argument
1523 return CJS_Result::Success(pRuntime->NewNumber(-1)); in get_page()
1525 v8::Local<v8::Array> PageArray = pRuntime->NewArray(); in get_page()
1536 pRuntime->PutArrayElement( in get_page()
1538 pRuntime->NewNumber(static_cast<int32_t>(pPageView->GetPageIndex()))); in get_page()
1544 CJS_Result CJS_Field::set_page(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_page() argument
1548 CJS_Result CJS_Field::get_password(CJS_Runtime* pRuntime) { in get_password() argument
1558 return CJS_Result::Success(pRuntime->NewBoolean( in get_password()
1562 CJS_Result CJS_Field::set_password(CJS_Runtime* pRuntime, in set_password() argument
1570 CJS_Result CJS_Field::get_print(CJS_Runtime* pRuntime) { in get_print() argument
1580 return CJS_Result::Success(pRuntime->NewBoolean( in get_print()
1584 CJS_Result CJS_Field::set_print(CJS_Runtime* pRuntime, in set_print() argument
1601 if (pRuntime->ToBoolean(vp)) in set_print()
1626 if (pRuntime->ToBoolean(vp)) in set_print()
1643 CJS_Result CJS_Field::get_radios_in_unison(CJS_Runtime* pRuntime) { in get_radios_in_unison() argument
1652 return CJS_Result::Success(pRuntime->NewBoolean( in get_radios_in_unison()
1656 CJS_Result CJS_Field::set_radios_in_unison(CJS_Runtime* pRuntime, in set_radios_in_unison() argument
1666 CJS_Result CJS_Field::get_readonly(CJS_Runtime* pRuntime) { in get_readonly() argument
1671 return CJS_Result::Success(pRuntime->NewBoolean( in get_readonly()
1675 CJS_Result CJS_Field::set_readonly(CJS_Runtime* pRuntime, in set_readonly() argument
1685 CJS_Result CJS_Field::get_rect(CJS_Runtime* pRuntime) { in get_rect() argument
1696 v8::Local<v8::Array> rcArray = pRuntime->NewArray(); in get_rect()
1697 pRuntime->PutArrayElement( in get_rect()
1698 rcArray, 0, pRuntime->NewNumber(static_cast<int32_t>(crRect.left))); in get_rect()
1699 pRuntime->PutArrayElement( in get_rect()
1700 rcArray, 1, pRuntime->NewNumber(static_cast<int32_t>(crRect.top))); in get_rect()
1701 pRuntime->PutArrayElement( in get_rect()
1702 rcArray, 2, pRuntime->NewNumber(static_cast<int32_t>(crRect.right))); in get_rect()
1703 pRuntime->PutArrayElement( in get_rect()
1704 rcArray, 3, pRuntime->NewNumber(static_cast<int32_t>(crRect.bottom))); in get_rect()
1709 CJS_Result CJS_Field::set_rect(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_rect() argument
1715 v8::Local<v8::Array> rcArray = pRuntime->ToArray(vp); in set_rect()
1716 if (pRuntime->GetArrayLength(rcArray) < 4) in set_rect()
1721 pRuntime->ToInt32(pRuntime->GetArrayElement(rcArray, 0))); in set_rect()
1723 pRuntime->ToInt32(pRuntime->GetArrayElement(rcArray, 1))); in set_rect()
1725 pRuntime->ToInt32(pRuntime->GetArrayElement(rcArray, 2))); in set_rect()
1727 pRuntime->ToInt32(pRuntime->GetArrayElement(rcArray, 3))); in set_rect()
1738 CJS_Result CJS_Field::get_required(CJS_Runtime* pRuntime) { in get_required() argument
1746 return CJS_Result::Success(pRuntime->NewBoolean( in get_required()
1750 CJS_Result CJS_Field::set_required(CJS_Runtime* pRuntime, in set_required() argument
1760 CJS_Result CJS_Field::get_rich_text(CJS_Runtime* pRuntime) { in get_rich_text() argument
1770 return CJS_Result::Success(pRuntime->NewBoolean( in get_rich_text()
1774 CJS_Result CJS_Field::set_rich_text(CJS_Runtime* pRuntime, in set_rich_text() argument
1782 CJS_Result CJS_Field::get_rich_value(CJS_Runtime* pRuntime) { in get_rich_value() argument
1786 CJS_Result CJS_Field::set_rich_value(CJS_Runtime* pRuntime, in set_rich_value() argument
1791 CJS_Result CJS_Field::get_rotation(CJS_Runtime* pRuntime) { in get_rotation() argument
1802 return CJS_Result::Success(pRuntime->NewNumber(pFormControl->GetRotation())); in get_rotation()
1805 CJS_Result CJS_Field::set_rotation(CJS_Runtime* pRuntime, in set_rotation() argument
1813 CJS_Result CJS_Field::get_source(CJS_Runtime* pRuntime) { in get_source() argument
1817 CJS_Result CJS_Field::set_source(CJS_Runtime* pRuntime, in set_source() argument
1822 CJS_Result CJS_Field::get_stroke_color(CJS_Runtime* pRuntime) { in get_stroke_color() argument
1854 CJS_Color::ConvertPWLColorToArray(pRuntime, color); in get_stroke_color()
1856 return CJS_Result::Success(pRuntime->NewArray()); in get_stroke_color()
1860 CJS_Result CJS_Field::set_stroke_color(CJS_Runtime* pRuntime, in set_stroke_color() argument
1869 CJS_Result CJS_Field::get_style(CJS_Runtime* pRuntime) { in get_style() argument
1907 return CJS_Result::Success(pRuntime->NewString( in get_style()
1911 CJS_Result CJS_Field::set_style(CJS_Runtime* pRuntime, in set_style() argument
1919 CJS_Result CJS_Field::get_submit_name(CJS_Runtime* pRuntime) { in get_submit_name() argument
1923 CJS_Result CJS_Field::set_submit_name(CJS_Runtime* pRuntime, in set_submit_name() argument
1928 CJS_Result CJS_Field::get_text_color(CJS_Runtime* pRuntime) { in get_text_color() argument
1955 CJS_Color::ConvertPWLColorToArray(pRuntime, crRet); in get_text_color()
1957 return CJS_Result::Success(pRuntime->NewArray()); in get_text_color()
1961 CJS_Result CJS_Field::set_text_color(CJS_Runtime* pRuntime, in set_text_color() argument
1970 CJS_Result CJS_Field::get_text_font(CJS_Runtime* pRuntime) { in get_text_font() argument
1994 pRuntime->NewString(wsFontName.value().AsStringView())); in get_text_font()
1997 CJS_Result CJS_Field::set_text_font(CJS_Runtime* pRuntime, in set_text_font() argument
2003 if (pRuntime->ToWideString(vp).ToDefANSI().IsEmpty()) in set_text_font()
2008 CJS_Result CJS_Field::get_text_size(CJS_Runtime* pRuntime) { in get_text_size() argument
2022 return CJS_Result::Success(pRuntime->NewNumber(static_cast<int>(fFontSize))); in get_text_size()
2025 CJS_Result CJS_Field::set_text_size(CJS_Runtime* pRuntime, in set_text_size() argument
2033 CJS_Result CJS_Field::get_type(CJS_Runtime* pRuntime) { in get_type() argument
2040 return CJS_Result::Success(pRuntime->NewString("unknown")); in get_type()
2042 return CJS_Result::Success(pRuntime->NewString("button")); in get_type()
2044 return CJS_Result::Success(pRuntime->NewString("checkbox")); in get_type()
2046 return CJS_Result::Success(pRuntime->NewString("radiobutton")); in get_type()
2048 return CJS_Result::Success(pRuntime->NewString("combobox")); in get_type()
2050 return CJS_Result::Success(pRuntime->NewString("listbox")); in get_type()
2052 return CJS_Result::Success(pRuntime->NewString("text")); in get_type()
2054 return CJS_Result::Success(pRuntime->NewString("signature")); in get_type()
2056 return CJS_Result::Success(pRuntime->NewString("unknown")); in get_type()
2060 CJS_Result CJS_Field::set_type(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) { in set_type() argument
2064 CJS_Result CJS_Field::get_user_name(CJS_Runtime* pRuntime) { in get_user_name() argument
2072 pRuntime->NewString(pFormField->GetAlternateName().AsStringView())); in get_user_name()
2075 CJS_Result CJS_Field::set_user_name(CJS_Runtime* pRuntime, in set_user_name() argument
2083 CJS_Result CJS_Field::get_value(CJS_Runtime* pRuntime) { in get_value() argument
2094 ret = pRuntime->NewString(pFormField->GetValue().AsStringView()); in get_value()
2098 v8::Local<v8::Array> ValueArray = pRuntime->NewArray(); in get_value()
2103 ElementValue = pRuntime->NewString( in get_value()
2105 if (wcslen(pRuntime->ToWideString(ElementValue).c_str()) == 0) { in get_value()
2106 ElementValue = pRuntime->NewString( in get_value()
2109 pRuntime->PutArrayElement(ValueArray, i, ElementValue); in get_value()
2113 ret = pRuntime->NewString(pFormField->GetValue().AsStringView()); in get_value()
2122 ret = pRuntime->NewString( in get_value()
2129 ret = pRuntime->NewString("Off"); in get_value()
2134 ret = pRuntime->NewString(pFormField->GetValue().AsStringView()); in get_value()
2137 return CJS_Result::Success(pRuntime->MaybeCoerceToNumber(ret)); in get_value()
2140 CJS_Result CJS_Field::set_value(CJS_Runtime* pRuntime, in set_value() argument
2147 v8::Local<v8::Array> ValueArray = pRuntime->ToArray(vp); in set_value()
2148 for (size_t i = 0; i < pRuntime->GetArrayLength(ValueArray); i++) { in set_value()
2150 pRuntime->ToWideString(pRuntime->GetArrayElement(ValueArray, i))); in set_value()
2153 strArray.push_back(pRuntime->ToWideString(vp)); in set_value()
2165 CJS_Result CJS_Field::get_value_as_string(CJS_Runtime* pRuntime) { in get_value_as_string() argument
2176 return CJS_Result::Success(pRuntime->NewString( in get_value_as_string()
2185 return CJS_Result::Success(pRuntime->NewString( in get_value_as_string()
2189 return CJS_Result::Success(pRuntime->NewString("Off")); in get_value_as_string()
2194 return CJS_Result::Success(pRuntime->NewString("")); in get_value_as_string()
2197 pRuntime->NewString(pFormField->GetValue().AsStringView())); in get_value_as_string()
2200 CJS_Result CJS_Field::set_value_as_string(CJS_Runtime* pRuntime, in set_value_as_string() argument
2206 CJS_Runtime* pRuntime, in browseForFileToSubmit() argument
2225 CJS_Runtime* pRuntime, in buttonGetCaption() argument
2230 nface = pRuntime->ToInt32(params[0]); in buttonGetCaption()
2245 pRuntime->NewString(pFormControl->GetNormalCaption().AsStringView())); in buttonGetCaption()
2249 pRuntime->NewString(pFormControl->GetDownCaption().AsStringView())); in buttonGetCaption()
2253 pRuntime->NewString(pFormControl->GetRolloverCaption().AsStringView())); in buttonGetCaption()
2259 CJS_Runtime* pRuntime, in buttonGetIcon() argument
2262 int nFace = pRuntime->ToInt32(params[0]); in buttonGetIcon()
2278 v8::Local<v8::Object> pObj = pRuntime->NewFXJSBoundObject( in buttonGetIcon()
2289 CJS_Runtime* pRuntime, in buttonImportIcon() argument
2295 CJS_Runtime* pRuntime, in buttonSetCaption() argument
2301 CJS_Runtime* pRuntime, in buttonSetIcon() argument
2307 CJS_Runtime* pRuntime, in checkThisBox() argument
2316 int nWidget = pRuntime->ToInt32(params[0]); in checkThisBox()
2319 bCheckit = pRuntime->ToBoolean(params[1]); in checkThisBox()
2339 CJS_Runtime* pRuntime, in clearItems() argument
2345 CJS_Runtime* pRuntime, in defaultIsChecked() argument
2358 int nWidget = pRuntime->ToInt32(params[0]); in defaultIsChecked()
2363 pRuntime->NewBoolean(IsCheckBoxOrRadioButton(pFormField))); in defaultIsChecked()
2367 CJS_Runtime* pRuntime, in deleteItemAt() argument
2373 CJS_Runtime* pRuntime, in getArray() argument
2388 v8::Local<v8::Array> FormFieldArray = pRuntime->NewArray(); in getArray()
2391 v8::Local<v8::Object> pObj = pRuntime->NewFXJSBoundObject( in getArray()
2399 pRuntime->PutArrayElement(FormFieldArray, j++, in getArray()
2408 CJS_Runtime* pRuntime, in getItemAt() argument
2413 nIdx = pRuntime->ToInt32(params[0]); in getItemAt()
2417 bExport = pRuntime->ToBoolean(params[1]); in getItemAt()
2430 pRuntime->NewString(pFormField->GetOptionLabel(nIdx).AsStringView())); in getItemAt()
2436 pRuntime->NewString(pFormField->GetOptionLabel(nIdx).AsStringView())); in getItemAt()
2438 return CJS_Result::Success(pRuntime->NewString(strval.AsStringView())); in getItemAt()
2441 CJS_Result CJS_Field::getLock(CJS_Runtime* pRuntime, in getLock() argument
2447 CJS_Runtime* pRuntime, in insertItemAt() argument
2453 CJS_Runtime* pRuntime, in isBoxChecked() argument
2457 nIndex = pRuntime->ToInt32(params[0]); in isBoxChecked()
2467 pRuntime->NewBoolean((IsCheckBoxOrRadioButton(pFormField) && in isBoxChecked()
2472 CJS_Runtime* pRuntime, in isDefaultChecked() argument
2476 nIndex = pRuntime->ToInt32(params[0]); in isDefaultChecked()
2485 return CJS_Result::Success(pRuntime->NewBoolean( in isDefaultChecked()
2491 CJS_Runtime* pRuntime, in setAction() argument
2497 CJS_Runtime* pRuntime, in setFocus() argument
2538 CJS_Runtime* pRuntime, in setItems() argument
2543 CJS_Result CJS_Field::setLock(CJS_Runtime* pRuntime, in setLock() argument
2549 CJS_Runtime* pRuntime, in signatureGetModifications() argument
2555 CJS_Runtime* pRuntime, in signatureGetSeedValue() argument
2561 CJS_Runtime* pRuntime, in signatureInfo() argument
2567 CJS_Runtime* pRuntime, in signatureSetSeedValue() argument
2573 CJS_Runtime* pRuntime, in signatureSign() argument
2579 CJS_Runtime* pRuntime, in signatureValidate() argument