-#ifdef USE_OLD_DOCUMENT_LAYOUT
- // the document form
- fd_form_document = create_form_form_document();
- fl_set_form_atclose(fd_form_document->form_document,
- CancelCloseBoxCB, 0);
- fl_addto_choice(fd_form_document->choice_spacing,
- _(" Single | OneHalf | Double | Other "));
-
- fl_set_counter_bounds(fd_form_document->slider_secnumdepth,-2, 5);
- fl_set_counter_bounds(fd_form_document->slider_tocdepth,-1, 5);
- fl_set_counter_step(fd_form_document->slider_secnumdepth, 1, 1);
- fl_set_counter_step(fd_form_document->slider_tocdepth, 1, 1);
- fl_set_counter_precision(fd_form_document->slider_secnumdepth, 0);
- fl_set_counter_precision(fd_form_document->slider_tocdepth, 0);
- fl_addto_form(fd_form_document->form_document);
- combo_language = new Combox(FL_COMBOX_DROPLIST);
- ob = fd_form_document->choice_language;
- combo_language->add(ob->x, ob->y, ob->w, ob->h, 250);
- combo_language->shortcut("#G", 1);
- fl_end_form();
-
- // "default" is not part of the languages array any more.
- combo_language->addto("default");
- for(Languages::const_iterator cit = languages.begin();
- cit != languages.end(); ++cit) {
- combo_language->addto((*cit).second.lang().c_str());
- }
-
- // not really necessary, but we can do it anyway.
- fl_addto_choice(fd_form_document->choice_fontsize, "default|10|11|12");
- int n;
- for (n = 0; tex_fonts[n][0]; ++n) {
- fl_addto_choice(fd_form_document->choice_fonts, tex_fonts[n]);
- }
-
- fl_addto_choice(fd_form_document->choice_inputenc,
- "default|auto|latin1|latin2|latin5"
- "|koi8-r|koi8-u|cp866|cp1251|iso88595");
-
- for (n = 0; tex_graphics[n][0]; ++n) {
- fl_addto_choice(fd_form_document->choice_postscript_driver,
- tex_graphics[n]);
- }
- // not really necessary, but we can do it anyway.
- fl_addto_choice(fd_form_document->choice_pagestyle,
- "default|empty|plain|headings|fancy");
- fl_addto_choice(fd_form_document->choice_default_skip,
- _(" Smallskip | Medskip | Bigskip | Length "));
- fl_set_input_return(fd_form_document->input_default_skip,
- FL_RETURN_ALWAYS);
- fl_set_form_minsize(fd_form_document->form_document,
- fd_form_document->form_document->w,
- fd_form_document->form_document->h);
- lyxerr[Debug::INIT] << "Initializing form_document...done" << endl;
-
- // the paper form
- fd_form_paper = create_form_form_paper();
- fl_set_form_atclose(fd_form_paper->form_paper,
- CancelCloseBoxCB, 0);
- fl_addto_choice(fd_form_paper->choice_papersize2,
- _(" Default | Custom | USletter | USlegal "
- "| USexecutive | A3 | A4 | A5 | B3 | B4 | B5 "));
- fl_addto_choice(fd_form_paper->choice_paperpackage,
- _(" None "
- "| A4 small Margins (only portrait) "
- "| A4 very small Margins (only portrait) "
- "| A4 very wide margins (only portrait) "));
- fl_set_input_return(fd_form_paper->input_custom_width,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_custom_height,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_top_margin,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_bottom_margin,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_left_margin,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_right_margin,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_head_height,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_head_sep,
- FL_RETURN_ALWAYS);
- fl_set_input_return(fd_form_paper->input_foot_skip,
- FL_RETURN_ALWAYS);
- lyxerr[Debug::INIT] << "Initializing form_paper...done" << endl;
-#endif
-
-#ifdef USE_OLD_DOCUMENT_LAYOUT
- // the quotes form
- fd_form_quotes = create_form_form_quotes();
- fl_set_form_atclose(fd_form_quotes->form_quotes,
- CancelCloseBoxCB, 0);
- // Is it wrong of me to use « » instead of << >> ? (Lgb)
- // Maybe if people use a font other than latin1... (JMarc)
- fl_addto_choice(fd_form_quotes->choice_quotes_language,
- _(" ``text'' | ''text'' | ,,text`` | ,,text'' | «text» | »text« "));
-#endif
-