Lines Matching refs:option

11  * (at your option) any later version.
128 return find_element_named(root, name, "option");
134 return find_element_index(root, idx, "option");
140 return find_element_count(root, "option");
144 stpi_xmlppd_find_choice_named(stp_mxml_node_t *option, const char *name)
146 return find_element_named(option, name, "choice");
150 stpi_xmlppd_find_choice_index(stp_mxml_node_t *option, int idx)
152 return find_element_index(option, idx, "choice");
156 stpi_xmlppd_find_choice_count(stp_mxml_node_t *option)
158 return find_element_count(option, "choice");
197 *option, /* Current option */
209 *keyword, /* Pointer to option keyword */
237 * <option name="..." text="..." default="..." section="..." order="..."
241 * </option>
244 * <option ...>
246 * </option>
271 option = NULL;
398 * Start a new option...
401 option = stp_mxmlNewElement(group ? group : ppd, "option");
402 stp_mxmlElementSetAttr(option, "name", keyword + 1);
403 stp_mxmlElementSetAttr(option, "text", text ? text : keyword + 1);
404 stp_mxmlElementSetAttr(option, "ui", value);
412 stp_mxmlElementSetAttr(option, "groupname", stp_mxmlElementGetAttr(group, "name"));
413 stp_mxmlElementSetAttr(option, "grouptext", stp_mxmlElementGetAttr(group, "text"));
417 else if (option && !strcmp(buffer, stp_option_data_name))
423 stp_mxmlElementSetAttr(option, "stptype", data[0]);
424 stp_mxmlElementSetAttr(option, "stpmandatory", data[1]);
425 stp_mxmlElementSetAttr(option, "stpclass", data[2]);
426 stp_mxmlElementSetAttr(option, "stplevel", data[3]);
427 stp_mxmlElementSetAttr(option, "stpchannel", data[4]);
428 stp_mxmlElementSetAttr(option, "stplower", data[5]);
429 stp_mxmlElementSetAttr(option, "stpupper", data[6]);
430 stp_mxmlElementSetAttr(option, "stpdefault", data[7]);
431 stp_mxmlElementSetAttr(option, "stpname", stp_option_data_name + 7);
434 else if (!strcmp(buffer, "*OrderDependency") && option)
437 * Get order and section for option
446 stp_mxmlElementSetAttr(option, "order", order);
447 stp_mxmlElementSetAttr(option, "section", section);
450 else if (!strncmp(buffer, "*Default", 8) && option &&
452 stp_mxmlElementSetAttr(option, "default", value);
457 stp_mxmlElementSetAttr(option, "num_choices", buf);
458 option = NULL;
461 else if (option && !strcmp(buffer, option_name))
467 choice = stp_mxmlNewElement(option, "choice");
483 else if (!option && !strcmp(buffer, "*ImageableArea"))
487 else if (!option && !strcmp(buffer, "*PaperDimension"))
492 if (option)
496 stp_mxmlElementSetAttr(option, "num_choices", buf);
497 option = NULL;
543 for (option = stp_mxmlFindElement(ppd, ppd, "option", NULL, NULL,
545 option && i < option_count;
546 option = stp_mxmlFindElement(option, ppd, "option", NULL, NULL,
549 if (stp_mxmlElementGetAttr(option, "order"))
551 order_array[i].name = stp_mxmlElementGetAttr(option, "name");
553 order_array[i].order = atoi(stp_mxmlElementGetAttr(option, "order"));