/* Automatically generated from regenerate_C_options_info.pl */

#include <config.h>

#include "option_types.h"
#include "options_data.h"
#include "converters_options.h"

/* for html_fill_button_directions_specification_list */
#include "utils.h"
#include "customization_options.h"
/* external definition of html_fill_options_directions */
#include "html_conversion_api.h"

void
set_common_parser_regular_options_defaults (OPTIONS *options)
{
  option_set_conf (&options->documentlanguage, -2, 0);
  option_set_conf (&options->DEBUG, 0, 0);
  option_set_conf (&options->FORMAT_MENU, -2, "menu");
  option_set_conf (&options->DOC_ENCODING_FOR_INPUT_FILE_NAME, 1, 0);
  option_set_conf (&options->COMMAND_LINE_ENCODING, -2, 0);
  option_set_conf (&options->INPUT_FILE_NAME_ENCODING, -2, 0);
  option_set_conf (&options->LOCALE_ENCODING, -2, 0);
}

void
add_common_parser_regular_options_defaults (OPTIONS_LIST *options_list)
{
  add_option_value (options_list, "documentlanguage", -2, 0);
  add_option_value (options_list, "DEBUG", 0, 0);
  add_option_value (options_list, "FORMAT_MENU", -2, "menu");
  add_option_value (options_list, "DOC_ENCODING_FOR_INPUT_FILE_NAME", 1, 0);
  add_option_value (options_list, "COMMAND_LINE_ENCODING", -2, 0);
  add_option_value (options_list, "INPUT_FILE_NAME_ENCODING", -2, 0);
  add_option_value (options_list, "LOCALE_ENCODING", -2, 0);
}

void
set_converter_common_regular_options_defaults (OPTIONS *options)
{
  option_set_conf (&options->PACKAGE, -2, "texinfo");
  option_set_conf (&options->PACKAGE_NAME, -2, "GNU Texinfo");
  option_set_conf (&options->PACKAGE_AND_VERSION, -2, "texinfo");
  option_set_conf (&options->PACKAGE_VERSION, -2, "");
  option_set_conf (&options->PACKAGE_URL, -2, "https://www.gnu.org/software/texinfo/");
  option_set_conf (&options->PROGRAM, -2, "");
}

void
add_converter_common_regular_options_defaults (OPTIONS_LIST *options_list)
{
  add_option_value (options_list, "PACKAGE", -2, "texinfo");
  add_option_value (options_list, "PACKAGE_NAME", -2, "GNU Texinfo");
  add_option_value (options_list, "PACKAGE_AND_VERSION", -2, "texinfo");
  add_option_value (options_list, "PACKAGE_VERSION", -2, "");
  add_option_value (options_list, "PACKAGE_URL", -2, "https://www.gnu.org/software/texinfo/");
  add_option_value (options_list, "PROGRAM", -2, "");
}

void
set_converter_defaults_regular_options_defaults (OPTIONS *options)
{
}

void
add_converter_defaults_regular_options_defaults (OPTIONS_LIST *options_list)
{
}

void
set_html_converter_regular_options_defaults (OPTIONS *options)
{
  option_set_conf (&options->BIG_RULE, -2, "<hr>");
  option_set_conf (&options->BODY_ELEMENT_ATTRIBUTES, -2, 0);
  option_set_conf (&options->CHAPTER_HEADER_LEVEL, 2, 0);
  option_set_conf (&options->CLOSE_QUOTE_SYMBOL, -2, 0);
  option_set_conf (&options->CONTENTS_OUTPUT_LOCATION, -2, "after_top");
  option_set_conf (&options->CONVERT_TO_LATEX_IN_MATH, -1, 0);
  option_set_conf (&options->INDENTED_BLOCK_COMMANDS_IN_TABLE, 0, 0);
  option_set_conf (&options->CHECK_HTMLXREF, 1, 0);
  option_set_conf (&options->COPIABLE_LINKS, 1, 0);
  option_set_conf (&options->DATE_IN_HEADER, 0, 0);
  option_set_conf (&options->DEFAULT_RULE, -2, "<hr>");
  option_set_conf (&options->DOCTYPE, -2, "<!DOCTYPE html>");
  option_set_conf (&options->DO_ABOUT, 0, 0);
  option_set_conf (&options->OUTPUT_CHARACTERS, 0, 0);
  option_set_conf (&options->EXTENSION, -2, "html");
  option_set_conf (&options->EXTERNAL_CROSSREF_EXTENSION, -2, 0);
  option_set_conf (&options->FOOTNOTE_END_HEADER_LEVEL, 4, 0);
  option_set_conf (&options->FOOTNOTE_SEPARATE_HEADER_LEVEL, 4, 0);
  option_set_conf (&options->FORMAT_MENU, -2, "sectiontoc");
  option_set_conf (&options->HEADERS, 1, 0);
  option_set_conf (&options->INDEX_ENTRY_COLON, -2, "");
  option_set_conf (&options->INLINE_CSS_STYLE, 0, 0);
  option_set_conf (&options->JS_WEBLABELS, -2, "generate");
  option_set_conf (&options->JS_WEBLABELS_FILE, -2, "js_licenses.html");
  option_set_conf (&options->MAX_HEADER_LEVEL, 4, 0);
  option_set_conf (&options->MENU_ENTRY_COLON, -2, ":");
  option_set_conf (&options->MENU_SYMBOL, -2, 0);
  option_set_conf (&options->MONOLITHIC, 1, 0);
  option_set_conf (&options->NO_CUSTOM_HTML_ATTRIBUTE, 0, 0);
  option_set_conf (&options->NO_CSS, 0, 0);
  option_set_conf (&options->NO_NUMBER_FOOTNOTE_SYMBOL, -2, "*");
  option_set_conf (&options->NODE_NAME_IN_MENU, 1, 0);
  option_set_conf (&options->OPEN_QUOTE_SYMBOL, -2, 0);
  option_set_conf (&options->SECTION_NAME_IN_TITLE, 0, 0);
  option_set_conf (&options->SHORT_TOC_LINK_TO_TOC, 1, 0);
  option_set_conf (&options->SHOW_TITLE, -1, 0);
  option_set_conf (&options->SPLIT, -2, "node");
  option_set_conf (&options->TOP_FILE, -2, "index.html");
  option_set_conf (&options->TOP_NODE_FILE_TARGET, -2, "index.html");
  option_set_conf (&options->USE_ACCESSKEY, -1, 0);
  option_set_conf (&options->USE_ISO, 1, 0);
  option_set_conf (&options->USE_LINKS, 1, 0);
  option_set_conf (&options->USE_NODES, 1, 0);
  option_set_conf (&options->USE_NODE_DIRECTIONS, -1, 0);
  option_set_conf (&options->USE_TITLEPAGE_FOR_TITLE, 1, 0);
  option_set_conf (&options->WORDS_IN_PAGE, 200, 0);
  option_set_conf (&options->XREF_USE_NODE_NAME_ARG, -1, 0);
  option_set_conf (&options->XREF_USE_FLOAT_LABEL, 0, 0);
  option_set_conf (&options->xrefautomaticsectiontitle, -2, "on");
}

void
add_html_converter_regular_options_defaults (OPTIONS_LIST *options_list)
{
  add_option_value (options_list, "BIG_RULE", -2, "<hr>");
  add_option_value (options_list, "BODY_ELEMENT_ATTRIBUTES", -2, 0);
  add_option_value (options_list, "CHAPTER_HEADER_LEVEL", 2, 0);
  add_option_value (options_list, "CLOSE_QUOTE_SYMBOL", -2, 0);
  add_option_value (options_list, "CONTENTS_OUTPUT_LOCATION", -2, "after_top");
  add_option_value (options_list, "CONVERT_TO_LATEX_IN_MATH", -1, 0);
  add_option_value (options_list, "INDENTED_BLOCK_COMMANDS_IN_TABLE", 0, 0);
  add_option_value (options_list, "CHECK_HTMLXREF", 1, 0);
  add_option_value (options_list, "COPIABLE_LINKS", 1, 0);
  add_option_value (options_list, "DATE_IN_HEADER", 0, 0);
  add_option_value (options_list, "DEFAULT_RULE", -2, "<hr>");
  add_option_value (options_list, "DOCTYPE", -2, "<!DOCTYPE html>");
  add_option_value (options_list, "DO_ABOUT", 0, 0);
  add_option_value (options_list, "OUTPUT_CHARACTERS", 0, 0);
  add_option_value (options_list, "EXTENSION", -2, "html");
  add_option_value (options_list, "EXTERNAL_CROSSREF_EXTENSION", -2, 0);
  add_option_value (options_list, "FOOTNOTE_END_HEADER_LEVEL", 4, 0);
  add_option_value (options_list, "FOOTNOTE_SEPARATE_HEADER_LEVEL", 4, 0);
  add_option_value (options_list, "FORMAT_MENU", -2, "sectiontoc");
  add_option_value (options_list, "HEADERS", 1, 0);
  add_option_value (options_list, "INDEX_ENTRY_COLON", -2, "");
  add_option_value (options_list, "INLINE_CSS_STYLE", 0, 0);
  add_option_value (options_list, "JS_WEBLABELS", -2, "generate");
  add_option_value (options_list, "JS_WEBLABELS_FILE", -2, "js_licenses.html");
  add_option_value (options_list, "MAX_HEADER_LEVEL", 4, 0);
  add_option_value (options_list, "MENU_ENTRY_COLON", -2, ":");
  add_option_value (options_list, "MENU_SYMBOL", -2, 0);
  add_option_value (options_list, "MONOLITHIC", 1, 0);
  add_option_value (options_list, "NO_CUSTOM_HTML_ATTRIBUTE", 0, 0);
  add_option_value (options_list, "NO_CSS", 0, 0);
  add_option_value (options_list, "NO_NUMBER_FOOTNOTE_SYMBOL", -2, "*");
  add_option_value (options_list, "NODE_NAME_IN_MENU", 1, 0);
  add_option_value (options_list, "OPEN_QUOTE_SYMBOL", -2, 0);
  add_option_value (options_list, "SECTION_NAME_IN_TITLE", 0, 0);
  add_option_value (options_list, "SHORT_TOC_LINK_TO_TOC", 1, 0);
  add_option_value (options_list, "SHOW_TITLE", -1, 0);
  add_option_value (options_list, "SPLIT", -2, "node");
  add_option_value (options_list, "TOP_FILE", -2, "index.html");
  add_option_value (options_list, "TOP_NODE_FILE_TARGET", -2, "index.html");
  add_option_value (options_list, "USE_ACCESSKEY", -1, 0);
  add_option_value (options_list, "USE_ISO", 1, 0);
  add_option_value (options_list, "USE_LINKS", 1, 0);
  add_option_value (options_list, "USE_NODES", 1, 0);
  add_option_value (options_list, "USE_NODE_DIRECTIONS", -1, 0);
  add_option_value (options_list, "USE_TITLEPAGE_FOR_TITLE", 1, 0);
  add_option_value (options_list, "WORDS_IN_PAGE", 200, 0);
  add_option_value (options_list, "XREF_USE_NODE_NAME_ARG", -1, 0);
  add_option_value (options_list, "XREF_USE_FLOAT_LABEL", 0, 0);
  add_option_value (options_list, "xrefautomaticsectiontitle", -2, "on");
}

void
set_plaintexinfo_converter_regular_options_defaults (OPTIONS *options)
{
  option_set_conf (&options->EXTENSION, -2, "texi");
  option_set_conf (&options->OUTFILE, -2, "-");
}

void
add_plaintexinfo_converter_regular_options_defaults (OPTIONS_LIST *options_list)
{
  add_option_value (options_list, "EXTENSION", -2, "texi");
  add_option_value (options_list, "OUTFILE", -2, "-");
}

void
set_texi2html_regular_options_defaults (OPTIONS *options)
{
  option_set_conf (&options->FORMAT_MENU, -2, "menu");
  option_set_conf (&options->USE_SETFILENAME_EXTENSION, 0, 0);
  option_set_conf (&options->footnotestyle, -2, "separate");
  option_set_conf (&options->CONTENTS_OUTPUT_LOCATION, -2, "separate_element");
  option_set_conf (&options->FORCE, 1, 0);
  option_set_conf (&options->USE_ACCESSKEY, 0, 0);
  option_set_conf (&options->NODE_NAME_IN_MENU, 0, 0);
  option_set_conf (&options->SHORT_TOC_LINK_TO_TOC, 0, 0);
  option_set_conf (&options->SHOW_TITLE, 1, 0);
  option_set_conf (&options->USE_LINKS, 0, 0);
  option_set_conf (&options->USE_NODES, 0, 0);
  option_set_conf (&options->SPLIT, -2, "");
  option_set_conf (&options->PROGRAM_NAME_IN_FOOTER, 1, 0);
  option_set_conf (&options->PROGRAM_NAME_IN_ABOUT, 1, 0);
  option_set_conf (&options->HEADER_IN_TABLE, 1, 0);
  option_set_conf (&options->MENU_ENTRY_COLON, -2, "");
  option_set_conf (&options->INDEX_ENTRY_COLON, -2, "");
  option_set_conf (&options->DO_ABOUT, -1, 0);
  option_set_conf (&options->CHAPTER_HEADER_LEVEL, 1, 0);
  option_set_conf (&options->BIG_RULE, -2, "<hr style=\"height: 6px;\">");
  option_set_conf (&options->FOOTNOTE_END_HEADER_LEVEL, 3, 0);
  option_set_conf (&options->FOOTNOTE_SEPARATE_HEADER_LEVEL, 1, 0);
}

void
add_texi2html_regular_options_defaults (OPTIONS_LIST *options_list)
{
  add_option_value (options_list, "FORMAT_MENU", -2, "menu");
  add_option_value (options_list, "USE_SETFILENAME_EXTENSION", 0, 0);
  add_option_value (options_list, "footnotestyle", -2, "separate");
  add_option_value (options_list, "CONTENTS_OUTPUT_LOCATION", -2, "separate_element");
  add_option_value (options_list, "FORCE", 1, 0);
  add_option_value (options_list, "USE_ACCESSKEY", 0, 0);
  add_option_value (options_list, "NODE_NAME_IN_MENU", 0, 0);
  add_option_value (options_list, "SHORT_TOC_LINK_TO_TOC", 0, 0);
  add_option_value (options_list, "SHOW_TITLE", 1, 0);
  add_option_value (options_list, "USE_LINKS", 0, 0);
  add_option_value (options_list, "USE_NODES", 0, 0);
  add_option_value (options_list, "SPLIT", -2, "");
  add_option_value (options_list, "PROGRAM_NAME_IN_FOOTER", 1, 0);
  add_option_value (options_list, "PROGRAM_NAME_IN_ABOUT", 1, 0);
  add_option_value (options_list, "HEADER_IN_TABLE", 1, 0);
  add_option_value (options_list, "MENU_ENTRY_COLON", -2, "");
  add_option_value (options_list, "INDEX_ENTRY_COLON", -2, "");
  add_option_value (options_list, "DO_ABOUT", -1, 0);
  add_option_value (options_list, "CHAPTER_HEADER_LEVEL", 1, 0);
  add_option_value (options_list, "BIG_RULE", -2, "<hr style=\"height: 6px;\">");
  add_option_value (options_list, "FOOTNOTE_END_HEADER_LEVEL", 3, 0);
  add_option_value (options_list, "FOOTNOTE_SEPARATE_HEADER_LEVEL", 1, 0);
}

void
html_fill_options_directions (OPTIONS *options, const CONVERTER *converter)
{
  if (options->LINKS_DIRECTIONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->LINKS_DIRECTIONS.o.buttons);

  if (options->TOP_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->TOP_BUTTONS.o.buttons);

  if (options->TOP_FOOTER_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->TOP_FOOTER_BUTTONS.o.buttons);

  if (options->SECTION_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->SECTION_BUTTONS.o.buttons);

  if (options->CHAPTER_FOOTER_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->CHAPTER_FOOTER_BUTTONS.o.buttons);

  if (options->SECTION_FOOTER_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->SECTION_FOOTER_BUTTONS.o.buttons);

  if (options->NODE_FOOTER_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->NODE_FOOTER_BUTTONS.o.buttons);

  if (options->MISC_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->MISC_BUTTONS.o.buttons);

  if (options->CHAPTER_BUTTONS.o.buttons)
    html_fill_button_directions_specification_list (converter, options->CHAPTER_BUTTONS.o.buttons);

}

