Lines Matching refs:Form
30 Evaluate all expressions in a Form.
32 @param FormSet FormSet this Form belongs to.
33 @param Form The Form.
41 IN FORM_BROWSER_FORM *Form
48 Link = GetFirstNode (&Form->ExpressionListHead);
49 while (!IsNull (&Form->ExpressionListHead, Link)) {
51 Link = GetNextNode (&Form->ExpressionListHead, Link);
57 (Expression->Type == EFI_HII_EXPRESSION_READ && Form->FormType != STANDARD_MAP_FORM_TYPE)) {
59 // Postpone Form validation to Question editing or Form submitting or Question Write or Question Read for nonstandard form.
64 Status = EvaluateExpression (FormSet, Form, Expression);
153 GetQuestionValue (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithHiiDriver);
163 ProcessCallBackFunction (gCurrentSelection, gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, EFI_BROWSER_ACTION_RETRIEVE, FALSE);
195 Refresh the questions within this form.
246 Create refresh hook event for form which has refresh event or interval.
248 @param Form The form need to check.
253 IN FORM_BROWSER_FORM *Form
267 Form,
268 &Form->RefreshGuid,
341 GetQuestionDefault (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, 0);
351 // Get the highlight statement for current form.
374 // If the statement in this form has refresh event or refresh interval, browser will create this event for display engine.
389 // else insert to the form it belongs to.
417 Link = GetFirstNode (&gCurrentSelection->Form->StatementListHead);
418 while (!IsNull (&gCurrentSelection->Form->StatementListHead, Link)) {
420 Link = GetNextNode (&gCurrentSelection->Form->StatementListHead, Link);
506 Enum all statement in current form, find all the statement can be display and
507 add to the display form.
529 // Process the statement outside the form, these statements are not recognized
550 // treat formset as statement outside the form,get its opcode.
565 // Process the statement in this form.
567 Link = GetFirstNode (&gCurrentSelection->Form->StatementListHead);
568 while (!IsNull (&gCurrentSelection->Form->StatementListHead, Link)) {
570 Link = GetNextNode (&gCurrentSelection->Form->StatementListHead, Link);
591 // Initialize this statement and add it to the display form.
629 // Create the refresh event process function for Form.
631 if (!CompareGuid (&gCurrentSelection->Form->RefreshGuid, &gZeroGuid)) {
632 CreateRefreshEventForForm (gCurrentSelection->Form);
648 Initialize the SettingChangedFlag variable in the display form.
661 if (IsNvUpdateRequiredForForm (gCurrentSelection->Form)) {
699 Initialize the Display form structure data.
730 Free the kotkey info saved in form data.
755 Update the Display form structure data.
763 gDisplayFormData.FormTitle = gCurrentSelection->Form->FormTitle;
769 gDisplayFormData.Attribute |= gCurrentSelection->Form->ModalForm ? HII_DISPLAY_MODAL : 0;
770 gDisplayFormData.Attribute |= gCurrentSelection->Form->Locked ? HII_DISPLAY_LOCK : 0;
828 Free the Display form structure data.
861 Link = GetFirstNode (&gCurrentSelection->Form->StatementListHead);
862 while (!IsNull (&gCurrentSelection->Form->StatementListHead, Link)) {
869 Link = GetNextNode (&gCurrentSelection->Form->StatementListHead, Link);
876 Update the ValueChanged status for questions in this form.
879 @param Form Form data structure.
885 IN FORM_BROWSER_FORM *Form
891 Link = GetFirstNode (&Form->StatementListHead);
892 while (!IsNull (&Form->StatementListHead, Link)) {
894 Link = GetNextNode (&Form->StatementListHead, Link);
903 IsQuestionValueChanged(FormSet, Form, Question, GetSetValueWithBuffer);
919 FORM_BROWSER_FORM *Form;
923 Form = FORM_BROWSER_FORM_FROM_LINK (Link);
926 UpdateStatementStatusForForm (FormSet, Form);
934 @param Form Form data structure.
941 IN FORM_BROWSER_FORM *Form,
967 UpdateStatementStatusForForm (FormSet, Form);
1003 DiscardForm (gCurrentSelection->FormSet, gCurrentSelection->Form, gBrowserSettingScope);
1007 ExtractDefault (gCurrentSelection->FormSet, gCurrentSelection->Form, DefaultId, gBrowserSettingScope, GetDefaultForAll, NULL, FALSE, FALSE);
1008 UpdateStatementStatus (gCurrentSelection->FormSet, gCurrentSelection->Form, gBrowserSettingScope);
1012 SubmitForm (gCurrentSelection->FormSet, gCurrentSelection->Form, gBrowserSettingScope);
1021 // Form Exit without saving, Similar to ESC Key.
1025 DiscardForm (gCurrentSelection->FormSet, gCurrentSelection->Form, gBrowserSettingScope);
1082 // Get Form package from this HII package List
1095 // Search FormSet in this Form Package
1199 Find HII Handle in the HII database associated with given form set guid.
1249 check how to process the changed data in current form or form set.
1252 about the Selection, form and formset to be displayed.
1256 @param Scope Data save or discard scope, form or formset.
1258 @retval TRUE Success process the changed data, will return to the parent form.
1259 @retval FALSE Reject to process the changed data, will stay at current form.
1273 DiscardForm (Selection->FormSet, Selection->Form, Scope);
1277 Status = SubmitForm (Selection->FormSet, Selection->Form, Scope);
1365 if (Selection->Form->ModalForm) {
1414 if (Selection->Form->ModalForm) {
1444 // Goto another Form, check for uncommitted data
1447 if ((gBrowserSettingScope == FormLevel && IsNvUpdateRequiredForForm(Selection->Form))) {
1458 // Form is suppressed.
1547 // Remove the last highligh question id, this id will update when show next form.
1631 SetQuestionValue (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithHiiDriver);
1652 Display form and wait for user to select one menu option, then return it.
1682 // Back up the form view history data for this form.
1684 UiCopyMenuList(&gCurrentSelection->Form->FormViewListHead, &mPrivateData.FormBrowserEx2.FormViewHistoryHead);
1695 Status = EvaluateFormExpressions (gCurrentSelection->FormSet, gCurrentSelection->Form);
1756 Update the NV flag info for this form set.
1767 FORM_BROWSER_FORM *Form;
1781 Form = FORM_BROWSER_FORM_FROM_LINK (Link);
1783 RetVal = IsNvUpdateRequiredForForm(Form);
1795 Update the NvUpdateRequired flag for a form.
1797 @param Form Form data structure.
1802 IN FORM_BROWSER_FORM *Form
1808 Link = GetFirstNode (&Form->StatementListHead);
1809 while (!IsNull (&Form->StatementListHead, Link)) {
1816 Link = GetNextNode (&Form->StatementListHead, Link);
1826 about the Selection, form and formset to be displayed.
1829 @param SettingLevel Input Settting level, if it is FormLevel, just exit current form.
1832 @retval TRUE Exit current form.
1833 @retval FALSE User press ESC and keep in current form.
1862 // Form Level Check whether the data is changed.
1864 if ((gBrowserSettingScope == FormLevel && IsNvUpdateRequiredForForm (Selection->Form)) ||
1931 about the Selection, form and formset to be displayed.
1935 @param Form The form this question belong to.
1947 IN FORM_BROWSER_FORM *Form,
1982 Link = GetFirstNode (&Form->StatementListHead);
1983 while (!IsNull (&Form->StatementListHead, Link)) {
1985 Link = GetNextNode (&Form->StatementListHead, Link);
1988 // if Question != NULL, only process the question. Else, process all question in this form.
2002 if (EvaluateExpressionList(Statement->Expression, TRUE, FormSet, Form) == ExpressDisable) {
2111 Status = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement);
2117 IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithEditBuffer);
2122 SetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
2131 SetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
2153 Form, Statement);
2159 IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithEditBuffer);
2160 SetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
2170 GetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
2172 ProcessCallBackFunction (Selection, FormSet, Form, Question, EFI_BROWSER_ACTION_RETRIEVE, FALSE);
2177 GetQuestionValue(FormSet, Form, Statement, GetSetValueWithEditBuffer);
2225 SubmitForm (FormSet, Form, SettingLevel);
2229 DiscardForm (FormSet, Form, SettingLevel);
2243 Selection->Form is not ready. For other case, use the ProcessCallBackFunction instead.
2311 about the Selection, form and formset to be displayed.
2333 // Register notify for Form package update
2381 // Initialize Selection->Form
2385 // Zero FormId indicates display the first Form in a FormSet
2389 Selection->Form = FORM_BROWSER_FORM_FROM_LINK (Link);
2390 Selection->FormId = Selection->Form->FormId;
2392 Selection->Form = IdToForm (Selection->FormSet, Selection->FormId);
2395 if (Selection->Form == NULL) {
2397 // No Form to display
2404 // Check Form is suppressed.
2406 if (Selection->Form->SuppressExpression != NULL) {
2407 if (EvaluateExpressionList(Selection->Form->SuppressExpression, TRUE, Selection->FormSet, Selection->Form) == ExpressSuppress) {
2409 // Form is suppressed.
2418 // Before display new form, invoke ConfigAccess.Callback() with EFI_BROWSER_ACTION_FORM_OPEN
2420 // New form may be the first form, or the different form after another form close.
2431 // Keep current form information
2438 Status = ProcessCallBackFunction (Selection, Selection->FormSet, Selection->Form, NULL, EFI_BROWSER_ACTION_FORM_OPEN, FALSE);
2464 // Finish call RETRIEVE callback for this form.
2469 Status = ProcessCallBackFunction (Selection, Selection->FormSet, Selection->Form, NULL, EFI_BROWSER_ACTION_RETRIEVE, FALSE);
2475 // IFR is updated during callback of open form, force to reparse the IFR binary
2486 // Display form
2501 Status = ProcessCallBackFunction(Selection, Selection->FormSet, Selection->Form, Statement, EFI_BROWSER_ACTION_CHANGING, FALSE);
2532 ProcessCallBackFunction(Selection, Selection->FormSet, Selection->Form, Statement, EFI_BROWSER_ACTION_CHANGED, FALSE);
2537 IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithBuffer);
2543 Status = ValueChangedValidation (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement);
2545 SetQuestionValue (gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithEditBuffer);
2549 IsQuestionValueChanged(gCurrentSelection->FormSet, gCurrentSelection->Form, Statement, GetSetValueWithBuffer);
2591 // Before exit the form, invoke ConfigAccess.Callback() with EFI_BROWSER_ACTION_FORM_CLOSE
2600 Status = ProcessCallBackFunction (Selection, Selection->FormSet, Selection->Form, NULL, EFI_BROWSER_ACTION_FORM_CLOSE, FALSE);
2609 // Reset current form information to the initial setting when error happens or form exit.
2618 // Unregister notify for Form package update