diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index ad5d4d791b..42d19f12ea 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,24 @@ +2002-10-23 Angus Leeming + + * checkedwidgets.C (setWidget): Don't set icol2 to alert_col when + the input is invalid. + +2002-10-23 Rob Lahaye + + * FormBibtex.C: remove two redundant header files. + + * FeedbackController (postMessage): s/FL_BLACK/FL_LCOL/ + + * FormDocument.C: disable resizing of the dialog. + Remove redundant counter's bounds/step/precision (is set in + form_document.fd). + + * FormDocument.[Ch] (CheckDocumentInput): removed. Use the + button controller and the checkedGlueLength class to check the validity + of any LyXGlueLengths. + + * forms/form_document.fd: prettify. + 2002-10-23 Rob Lahaye * forms/form_bibtex.fd: diff --git a/src/frontends/xforms/FeedbackController.C b/src/frontends/xforms/FeedbackController.C index 12d44a675c..5712d7b8d2 100644 --- a/src/frontends/xforms/FeedbackController.C +++ b/src/frontends/xforms/FeedbackController.C @@ -140,10 +140,11 @@ void FeedbackController::postMessage(string const & message) else str = message; - str = formatted(str, message_widget_->w - 10, FL_NORMAL_SIZE); + int const width = message_widget_->w - 10; + str = formatted(str, width, FL_NORMAL_SIZE); fl_set_object_label(message_widget_, str.c_str()); - FL_COLOR const label_color = warning_posted_ ? FL_RED : FL_BLACK; + FL_COLOR const label_color = warning_posted_ ? FL_RED : FL_LCOL; fl_set_object_lcol(message_widget_, label_color); if (!message_widget_->visible) diff --git a/src/frontends/xforms/FormBibtex.C b/src/frontends/xforms/FormBibtex.C index 1733a018ce..d7e8004609 100644 --- a/src/frontends/xforms/FormBibtex.C +++ b/src/frontends/xforms/FormBibtex.C @@ -26,8 +26,6 @@ #include "helper_funcs.h" #include "gettext.h" -#include "debug.h" -#include "support/LAssert.h" #include "support/lstrings.h" #include "support/filetools.h" #include "support/lyxalgo.h" diff --git a/src/frontends/xforms/FormDocument.C b/src/frontends/xforms/FormDocument.C index f5ebf9da25..ecba22a440 100644 --- a/src/frontends/xforms/FormDocument.C +++ b/src/frontends/xforms/FormDocument.C @@ -4,6 +4,7 @@ * Licence details can be found in the file COPYING. * * \author Jürgen Vigna + * \author Rob Lahaye * * Full author contact details are available in file CREDITS */ @@ -36,6 +37,7 @@ #include "CutAndPaste.h" #include "bufferview_funcs.h" #include "xforms_helpers.h" +#include "checkedwidgets.h" #include "debug.h" #include "input_validators.h" // fl_unsigned_float_filter #include "helper_funcs.h" @@ -57,11 +59,10 @@ using std::vector; FormDocument::FormDocument(LyXView & lv, Dialogs & d) - : FormBaseBD(lv, d, _("Document Layout")), + : FormBaseBD(lv, d, _("Document Layout"), false), ActCell(0), Confirmed(0), current_bullet_panel(0), current_bullet_depth(0), fbullet(0) -{ -} +{} void FormDocument::redraw() @@ -86,8 +87,6 @@ FL_FORM * FormDocument::form() const void FormDocument::build() { - int n; - // the tabbed folder dialog_.reset(build_document(this)); @@ -99,81 +98,42 @@ void FormDocument::build() bc().setApply(dialog_->button_apply); bc().setCancel(dialog_->button_close); bc().setRestore(dialog_->button_restore); - bc().addReadOnly (dialog_->button_save_defaults); - bc().addReadOnly (dialog_->button_reset_defaults); - - // the document paper form - paper_.reset(build_document_paper(this)); - fl_addto_choice(paper_->choice_papersize, - _(" Default | Custom | US letter | US legal " - "| US executive | A3 | A4 | A5 | B3 | B4 | B5 ")); - fl_addto_choice(paper_->choice_paperpackage, - _(" None " - "| Small Margins " - "| Very small Margins " - "| Very wide Margins ")); - - fl_set_input_return(paper_->input_custom_width, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_custom_height, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_top_margin, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_bottom_margin, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_inner_margin, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_outer_margin, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_head_height, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_head_sep, FL_RETURN_CHANGED); - fl_set_input_return(paper_->input_foot_skip, FL_RETURN_CHANGED); - - setPrehandler(paper_->input_custom_width); - setPrehandler(paper_->input_custom_height); - setPrehandler(paper_->input_top_margin); - setPrehandler(paper_->input_bottom_margin); - setPrehandler(paper_->input_inner_margin); - setPrehandler(paper_->input_outer_margin); - setPrehandler(paper_->input_head_height); - setPrehandler(paper_->input_head_sep); - setPrehandler(paper_->input_foot_skip); - - // Create the contents of the unit choices - // Don't include the "%" terms... - vector units_vec = getLatexUnits(); - vector::iterator ret = - std::remove_if(units_vec.begin(), - units_vec.end(), - bind2nd(contains_functor(), "%")); - units_vec.erase(ret, units_vec.end()); - - string units = getStringFromVector(units_vec, "|"); - - fl_addto_choice(paper_->choice_custom_width_units, units.c_str()); - fl_addto_choice(paper_->choice_custom_height_units, units.c_str()); - fl_addto_choice(paper_->choice_top_margin_units, units.c_str()); - fl_addto_choice(paper_->choice_bottom_margin_units, units.c_str()); - fl_addto_choice(paper_->choice_inner_margin_units, units.c_str()); - fl_addto_choice(paper_->choice_outer_margin_units, units.c_str()); - fl_addto_choice(paper_->choice_head_height_units, units.c_str()); - fl_addto_choice(paper_->choice_head_sep_units, units.c_str()); - fl_addto_choice(paper_->choice_foot_skip_units, units.c_str()); - - bc().addReadOnly (paper_->choice_paperpackage); - bc().addReadOnly (paper_->radio_portrait); - bc().addReadOnly (paper_->radio_landscape); - bc().addReadOnly (paper_->choice_papersize); - bc().addReadOnly (paper_->check_use_geometry); - bc().addReadOnly (paper_->input_custom_width); - bc().addReadOnly (paper_->input_custom_height); - bc().addReadOnly (paper_->input_top_margin); - bc().addReadOnly (paper_->input_bottom_margin); - bc().addReadOnly (paper_->input_inner_margin); - bc().addReadOnly (paper_->input_outer_margin); - bc().addReadOnly (paper_->input_head_height); - bc().addReadOnly (paper_->input_head_sep); - bc().addReadOnly (paper_->input_foot_skip); // the document class form class_.reset(build_document_class(this)); + // disable for read-only documents + bc().addReadOnly(class_->radio_doc_indent); + bc().addReadOnly(class_->radio_doc_skip); + bc().addReadOnly(class_->choice_doc_pagestyle); + bc().addReadOnly(class_->choice_doc_fonts); + bc().addReadOnly(class_->choice_doc_fontsize); + bc().addReadOnly(class_->radio_doc_sides_one); + bc().addReadOnly(class_->radio_doc_sides_two); + bc().addReadOnly(class_->radio_doc_columns_one); + bc().addReadOnly(class_->radio_doc_columns_two); + bc().addReadOnly(class_->input_doc_extra); + bc().addReadOnly(class_->input_doc_skip); + bc().addReadOnly(class_->choice_doc_skip); + bc().addReadOnly(class_->choice_doc_spacing); + bc().addReadOnly(class_->input_doc_spacing); + + // check validity of "length + unit" input + addCheckedGlueLength(bc(), class_->input_doc_skip, + class_->choice_doc_skip); + + // trigger an input event for cut&paste with middle mouse button. + setPrehandler(class_->input_doc_extra); + setPrehandler(class_->input_doc_skip); + setPrehandler(class_->input_doc_spacing); + + fl_set_input_return(class_->input_doc_extra, FL_RETURN_CHANGED); + fl_set_input_return(class_->input_doc_skip, FL_RETURN_CHANGED); + fl_set_input_return(class_->input_doc_spacing, FL_RETURN_CHANGED); + FL_OBJECT * obj; - // The language is a combo-box and has to be inserted manually + + // the class list is a combo-box and has to be inserted manually obj = class_->choice_doc_class; fl_deactivate_object(obj); fl_addto_form(class_->form); @@ -190,44 +150,115 @@ void FormDocument::build() fl_addto_choice(class_->choice_doc_spacing, _(" Single | OneHalf | Double | Custom ")); fl_addto_choice(class_->choice_doc_fontsize, "default|10|11|12"); - for (n=0; tex_fonts[n][0]; ++n) { + for (int n = 0; tex_fonts[n][0]; ++n) { fl_addto_choice(class_->choice_doc_fonts,tex_fonts[n]); } + + // Create the contents of the unit choices; don't include the + // "%" terms... + vector units_vec = getLatexUnits(); + vector::iterator ret = + std::remove_if(units_vec.begin(), + units_vec.end(), + bind2nd(contains_functor(), "%")); + units_vec.erase(ret, units_vec.end()); + + string const units = getStringFromVector(units_vec, "|"); + fl_addto_choice(class_->choice_doc_pagestyle, "default|empty|plain|headings|fancy"); fl_addto_choice(class_->choice_doc_skip, _(" Smallskip | Medskip | Bigskip | Length ")); - fl_addto_choice(class_->choice_default_skip_units, units.c_str()); - fl_set_input_return(class_->input_doc_extra, FL_RETURN_CHANGED); - fl_set_input_return(class_->input_doc_skip, FL_RETURN_CHANGED); - fl_set_input_return(class_->input_doc_spacing, FL_RETURN_CHANGED); - - setPrehandler(class_->input_doc_extra); - setPrehandler(class_->input_doc_skip); - setPrehandler(class_->input_doc_spacing); + fl_addto_choice(class_->choice_doc_skip_units, units.c_str()); // Set input filters on doc spacing to make it accept only // unsigned numbers. - fl_set_input_filter(class_->input_doc_spacing, fl_unsigned_float_filter); + fl_set_input_filter(class_->input_doc_spacing, + fl_unsigned_float_filter); - bc().addReadOnly (class_->radio_doc_indent); - bc().addReadOnly (class_->radio_doc_skip); + // disable for read-only documents + bc().addReadOnly(dialog_->button_save_defaults); + bc().addReadOnly(dialog_->button_reset_defaults); - bc().addReadOnly (class_->choice_doc_pagestyle); - bc().addReadOnly (class_->choice_doc_fonts); - bc().addReadOnly (class_->choice_doc_fontsize); - bc().addReadOnly (class_->radio_doc_sides_one); - bc().addReadOnly (class_->radio_doc_sides_two); - bc().addReadOnly (class_->radio_doc_columns_one); - bc().addReadOnly (class_->radio_doc_columns_two); - bc().addReadOnly (class_->input_doc_extra); - bc().addReadOnly (class_->input_doc_skip); - bc().addReadOnly (class_->choice_doc_skip); - bc().addReadOnly (class_->choice_doc_spacing); - bc().addReadOnly (class_->input_doc_spacing); + // the document paper form + paper_.reset(build_document_paper(this)); + + // disable for read-only documents + bc().addReadOnly(paper_->choice_paperpackage); + bc().addReadOnly(paper_->radio_portrait); + bc().addReadOnly(paper_->radio_landscape); + bc().addReadOnly(paper_->choice_papersize); + bc().addReadOnly(paper_->check_use_geometry); + bc().addReadOnly(paper_->input_custom_width); + bc().addReadOnly(paper_->input_custom_height); + bc().addReadOnly(paper_->input_top_margin); + bc().addReadOnly(paper_->input_bottom_margin); + bc().addReadOnly(paper_->input_inner_margin); + bc().addReadOnly(paper_->input_outer_margin); + bc().addReadOnly(paper_->input_head_height); + bc().addReadOnly(paper_->input_head_sep); + bc().addReadOnly(paper_->input_foot_skip); + + // check validity of "length + unit" input + addCheckedGlueLength(bc(), paper_->input_custom_width); + addCheckedGlueLength(bc(), paper_->input_custom_height); + addCheckedGlueLength(bc(), paper_->input_top_margin); + addCheckedGlueLength(bc(), paper_->input_bottom_margin); + addCheckedGlueLength(bc(), paper_->input_inner_margin); + addCheckedGlueLength(bc(), paper_->input_outer_margin); + addCheckedGlueLength(bc(), paper_->input_head_height); + addCheckedGlueLength(bc(), paper_->input_head_sep); + addCheckedGlueLength(bc(), paper_->input_foot_skip); + + // trigger an input event for cut&paste with middle mouse button. + setPrehandler(paper_->input_custom_width); + setPrehandler(paper_->input_custom_height); + setPrehandler(paper_->input_top_margin); + setPrehandler(paper_->input_bottom_margin); + setPrehandler(paper_->input_inner_margin); + setPrehandler(paper_->input_outer_margin); + setPrehandler(paper_->input_head_height); + setPrehandler(paper_->input_head_sep); + setPrehandler(paper_->input_foot_skip); + + fl_set_input_return(paper_->input_custom_width, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_custom_height, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_top_margin, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_bottom_margin, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_inner_margin, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_outer_margin, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_head_height, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_head_sep, FL_RETURN_CHANGED); + fl_set_input_return(paper_->input_foot_skip, FL_RETURN_CHANGED); + + fl_addto_choice(paper_->choice_papersize, + _(" Default | Custom | US letter | US legal " + "| US executive | A3 | A4 | A5 | B3 | B4 | B5 ")); + fl_addto_choice(paper_->choice_paperpackage, + _(" None " + "| Small Margins " + "| Very small Margins " + "| Very wide Margins ")); + + fl_addto_choice(paper_->choice_custom_width_units, units.c_str()); + fl_addto_choice(paper_->choice_custom_height_units, units.c_str()); + fl_addto_choice(paper_->choice_top_margin_units, units.c_str()); + fl_addto_choice(paper_->choice_bottom_margin_units, units.c_str()); + fl_addto_choice(paper_->choice_inner_margin_units, units.c_str()); + fl_addto_choice(paper_->choice_outer_margin_units, units.c_str()); + fl_addto_choice(paper_->choice_head_height_units, units.c_str()); + fl_addto_choice(paper_->choice_head_sep_units, units.c_str()); + fl_addto_choice(paper_->choice_foot_skip_units, units.c_str()); // the document language form language_.reset(build_document_language(this)); + + // disable for read-only documents + bc().addReadOnly(language_->choice_inputenc); + bc().addReadOnly(language_->choice_quotes_language); + bc().addReadOnly(language_->radio_single); + bc().addReadOnly(language_->radio_double); + fl_addto_choice(language_->choice_inputenc, "default|auto|latin1|latin2|latin3|latin4|latin5|latin9" "|koi8-r|koi8-u|cp866|cp1251|iso88595|pt154"); @@ -257,51 +288,34 @@ void FormDocument::build() _(" ``text'' | ''text'' | ,,text`` | ,,text'' |" " «text» | »text« ")); - bc().addReadOnly (language_->choice_inputenc); - bc().addReadOnly (language_->choice_quotes_language); - bc().addReadOnly (language_->radio_single); - bc().addReadOnly (language_->radio_double); - // the document options form options_.reset(build_document_options(this)); - fl_set_input_return(options_->input_float_placement, FL_RETURN_CHANGED); + + // disable for read-only documents + bc_.addReadOnly(options_->counter_secnumdepth); + bc_.addReadOnly(options_->counter_tocdepth); + bc_.addReadOnly(options_->check_use_amsmath); + bc_.addReadOnly(options_->check_use_natbib); + bc_.addReadOnly(options_->choice_citation_format); + bc_.addReadOnly(options_->input_float_placement); + bc_.addReadOnly(options_->choice_postscript_driver); + + // trigger an input event for cut&paste with middle mouse button. setPrehandler(options_->input_float_placement); - fl_set_counter_bounds(options_->counter_secnumdepth,-2,5); - fl_set_counter_bounds(options_->counter_tocdepth,-1,5); - fl_set_counter_step(options_->counter_secnumdepth,1,1); - fl_set_counter_step(options_->counter_tocdepth,1,1); - fl_set_counter_precision(options_->counter_secnumdepth, 0); - fl_set_counter_precision(options_->counter_tocdepth, 0); - for (n=0; tex_graphics[n][0]; ++n) { + fl_set_input_return(options_->input_float_placement, FL_RETURN_CHANGED); + + for (int n = 0; tex_graphics[n][0]; ++n) { fl_addto_choice(options_->choice_postscript_driver, tex_graphics[n]); } fl_addto_choice(options_->choice_citation_format, _(" Author-year | Numerical ")); - bc_.addReadOnly (options_->counter_secnumdepth); - bc_.addReadOnly (options_->counter_tocdepth); - bc_.addReadOnly (options_->check_use_amsmath); - bc_.addReadOnly (options_->check_use_natbib); - bc_.addReadOnly (options_->choice_citation_format); - bc_.addReadOnly (options_->input_float_placement); - bc_.addReadOnly (options_->choice_postscript_driver); - // the document bullets form bullets_.reset(build_document_bullet(this)); - fl_addto_choice(bullets_->choice_bullet_size, - _(" default | tiny | script | footnote | small |" - " normal | large | Large | LARGE | huge | Huge")); - fl_set_choice(bullets_->choice_bullet_size, 1); - fl_set_input_return(bullets_->input_bullet_latex, FL_RETURN_CHANGED); - setPrehandler(bullets_->input_bullet_latex); - fl_set_input_maxchars(bullets_->input_bullet_latex, 80); - - string const bmtablefile = LibFileSearch("images", "standard", "xpm"); - fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6, - bmtablefile.c_str()); + // disable for read-only documents bc_.addReadOnly(bullets_->radio_bullet_depth_1); bc_.addReadOnly(bullets_->radio_bullet_depth_2); bc_.addReadOnly(bullets_->radio_bullet_depth_3); @@ -312,10 +326,25 @@ void FormDocument::build() bc_.addReadOnly(bullets_->radio_bullet_panel_ding2); bc_.addReadOnly(bullets_->radio_bullet_panel_ding3); bc_.addReadOnly(bullets_->radio_bullet_panel_ding4); + bc().addReadOnly(bullets_->bmtable_bullet_panel); + bc().addReadOnly(bullets_->choice_bullet_size); + bc().addReadOnly(bullets_->input_bullet_latex); - bc().addReadOnly (bullets_->bmtable_bullet_panel); - bc().addReadOnly (bullets_->choice_bullet_size); - bc().addReadOnly (bullets_->input_bullet_latex); + // trigger an input event for cut&paste with middle mouse button. + setPrehandler(bullets_->input_bullet_latex); + + fl_set_input_return(bullets_->input_bullet_latex, FL_RETURN_CHANGED); + + fl_addto_choice(bullets_->choice_bullet_size, + _(" default | tiny | script | footnote | small |" + " normal | large | Large | LARGE | huge | Huge")); + fl_set_choice(bullets_->choice_bullet_size, 1); + + fl_set_input_maxchars(bullets_->input_bullet_latex, 80); + + string const bmtablefile = LibFileSearch("images", "standard", "xpm"); + fl_set_bmtable_pixmap_file(bullets_->bmtable_bullet_panel, 6, 6, + bmtablefile.c_str()); fl_addto_tabfolder(dialog_->tabfolder,_("Document"), class_->form); @@ -424,15 +453,19 @@ bool FormDocument::input(FL_OBJECT * ob, long) { if (ob == class_->choice_doc_class) { CheckChoiceClass(ob, 0); + } else if (ob == bullets_->choice_bullet_size) { ChoiceBulletSize(ob, 0); + } else if (ob == bullets_->input_bullet_latex) { InputBulletLaTeX(ob, 0); + } else if (ob == bullets_->radio_bullet_depth_1 || ob == bullets_->radio_bullet_depth_2 || ob == bullets_->radio_bullet_depth_3 || ob == bullets_->radio_bullet_depth_4) { BulletDepth(ob); + } else if (ob == bullets_->radio_bullet_panel_standard || ob == bullets_->radio_bullet_panel_maths || ob == bullets_->radio_bullet_panel_ding1 || @@ -440,45 +473,42 @@ bool FormDocument::input(FL_OBJECT * ob, long) ob == bullets_->radio_bullet_panel_ding3 || ob == bullets_->radio_bullet_panel_ding4) { BulletPanel(ob); + } else if (ob == bullets_->bmtable_bullet_panel) { BulletBMTable(ob, 0); - } - bool const length_input = fl_get_choice(class_->choice_doc_skip) == 4; - if (ob == class_->choice_doc_skip) { - setEnabled(class_->input_doc_skip, length_input); - setEnabled(class_->choice_default_skip_units, length_input); - } - - if (ob == class_->choice_doc_spacing) + } else if (ob == class_->choice_doc_spacing) { setEnabled(class_->input_doc_spacing, fl_get_choice(class_->choice_doc_spacing) == 4); - bool const skip_used = fl_get_button(class_->radio_doc_skip); - if (ob == class_->radio_doc_skip || - ob == class_->radio_doc_indent) { + } else if (ob == class_->radio_doc_skip || + ob == class_->radio_doc_indent || + ob == class_->choice_doc_skip) { + bool const skip_used = fl_get_button(class_->radio_doc_skip); setEnabled(class_->choice_doc_skip, skip_used); + + bool const length_input = + fl_get_choice(class_->choice_doc_skip) == 4; setEnabled(class_->input_doc_skip, skip_used && length_input); - setEnabled(class_->choice_default_skip_units, + setEnabled(class_->choice_doc_skip_units, skip_used && length_input); + // Default unit choice is cm if metric, inches if US paper. // If papersize is default, check the lyxrc-settings int const paperchoice = fl_get_choice(paper_->choice_papersize); - bool const metric = (paperchoice == 1 && lyxrc.default_papersize > 3) + bool const metric = (paperchoice == 1 && lyxrc.default_papersize > BufferParams::PAPER_EXECUTIVEPAPER) || paperchoice == 2 || paperchoice > 5; - int const default_unit = metric ? 8 : 9; - if (rtrim(fl_get_input(class_->input_doc_skip)).empty()) - fl_set_choice(class_->choice_default_skip_units, - default_unit); - } + string const default_unit = metric ? "cm" : "in"; + if (getString(class_->input_doc_skip).empty()) + fl_set_choice_text(class_->choice_doc_skip_units, + default_unit.c_str()); - if (ob == options_->check_use_natbib) { + } else if (ob == options_->check_use_natbib) { setEnabled(options_->choice_citation_format, fl_get_button(options_->check_use_natbib)); - } - if (ob == dialog_->button_save_defaults) { + } else if (ob == dialog_->button_save_defaults) { BufferParams params; class_apply(params); paper_apply(params); @@ -487,20 +517,18 @@ bool FormDocument::input(FL_OBJECT * ob, long) bullets_apply(params); params.preamble = lv_.buffer()->params.preamble; saveParamsAsDefault(params); - } - if (ob == dialog_->button_reset_defaults) { + } else if (ob == dialog_->button_reset_defaults) { BufferParams params = lv_.buffer()->params; params.textclass = combo_doc_class->get() - 1; params.useClassDefaults(); UpdateLayoutDocument(params); - } - if (ob == paper_->radio_landscape) + } else if (ob == paper_->radio_landscape) { fl_set_choice(paper_->choice_paperpackage, BufferParams::PACKAGE_NONE + 1); - if (ob == paper_->choice_papersize) { + } else if (ob == paper_->choice_papersize) { int const paperchoice = fl_get_choice(paper_->choice_papersize); bool const defsize = paperchoice == 1; bool const custom = paperchoice == 2; @@ -541,75 +569,59 @@ bool FormDocument::input(FL_OBJECT * ob, long) // Default unit choice is cm if metric, inches if US paper. // If papersize is default, use the lyxrc-settings - bool const metric = (defsize && lyxrc.default_papersize > 3) + bool const metric = (defsize && lyxrc.default_papersize > BufferParams::PAPER_EXECUTIVEPAPER) || paperchoice == 2 || paperchoice > 5; - int const default_unit = metric ? 8 : 9; - if (rtrim(fl_get_input(paper_->input_custom_width)).empty()) - fl_set_choice(paper_->choice_custom_width_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_custom_height)).empty()) - fl_set_choice(paper_->choice_custom_height_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_top_margin)).empty()) - fl_set_choice(paper_->choice_top_margin_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_bottom_margin)).empty()) - fl_set_choice(paper_->choice_bottom_margin_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_inner_margin)).empty()) - fl_set_choice(paper_->choice_inner_margin_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_outer_margin)).empty()) - fl_set_choice(paper_->choice_outer_margin_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_head_height)).empty()) - fl_set_choice(paper_->choice_head_height_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_head_sep)).empty()) - fl_set_choice(paper_->choice_head_sep_units, - default_unit); - if (rtrim(fl_get_input(paper_->input_foot_skip)).empty()) - fl_set_choice(paper_->choice_foot_skip_units, - default_unit); - } + string const default_unit = metric ? "cm" : "in"; + if (getString(paper_->input_custom_width).empty()) + fl_set_choice_text(paper_->choice_custom_width_units, + default_unit.c_str()); + if (getString(paper_->input_custom_height).empty()) + fl_set_choice_text(paper_->choice_custom_height_units, + default_unit.c_str()); + if (getString(paper_->input_top_margin).empty()) + fl_set_choice_text(paper_->choice_top_margin_units, + default_unit.c_str()); + if (getString(paper_->input_bottom_margin).empty()) + fl_set_choice_text(paper_->choice_bottom_margin_units, + default_unit.c_str()); + if (getString(paper_->input_inner_margin).empty()) + fl_set_choice_text(paper_->choice_inner_margin_units, + default_unit.c_str()); + if (getString(paper_->input_outer_margin).empty()) + fl_set_choice_text(paper_->choice_outer_margin_units, + default_unit.c_str()); + if (getString(paper_->input_head_height).empty()) + fl_set_choice_text(paper_->choice_head_height_units, + default_unit.c_str()); + if (getString(paper_->input_head_sep).empty()) + fl_set_choice_text(paper_->choice_head_sep_units, + default_unit.c_str()); + if (getString(paper_->input_foot_skip).empty()) + fl_set_choice_text(paper_->choice_foot_skip_units, + default_unit.c_str()); - if (ob == paper_->choice_papersize || - ob == paper_->radio_portrait || - ob == paper_->radio_landscape) { + } else if (ob == paper_->choice_paperpackage && + fl_get_choice(paper_->choice_paperpackage) != 1) { - setEnabled(paper_->choice_paperpackage, - //either default papersize (preferences) - //or document papersize has to be A4 - (fl_get_choice(paper_->choice_papersize) == 7 - || fl_get_choice(paper_->choice_papersize) == 1 - && lyxrc.default_papersize == 5) - && fl_get_button(paper_->radio_portrait)); - } + fl_set_button(paper_->check_use_geometry, 0); + setEnabled(paper_->input_top_margin, false); + setEnabled(paper_->input_bottom_margin, false); + setEnabled(paper_->input_inner_margin, false); + setEnabled(paper_->input_outer_margin, false); + setEnabled(paper_->input_head_height, false); + setEnabled(paper_->input_head_sep, false); + setEnabled(paper_->input_foot_skip, false); + setEnabled(paper_->choice_top_margin_units, false); + setEnabled(paper_->choice_bottom_margin_units, false); + setEnabled(paper_->choice_inner_margin_units, false); + setEnabled(paper_->choice_outer_margin_units, false); + setEnabled(paper_->choice_head_height_units, false); + setEnabled(paper_->choice_head_sep_units, false); + setEnabled(paper_->choice_foot_skip_units, false); - if (ob == paper_->choice_paperpackage) { - if (fl_get_choice(paper_->choice_paperpackage) != 1) { - fl_set_button(paper_->check_use_geometry, 0); - - setEnabled(paper_->input_top_margin, false); - setEnabled(paper_->input_bottom_margin, false); - setEnabled(paper_->input_inner_margin, false); - setEnabled(paper_->input_outer_margin, false); - setEnabled(paper_->input_head_height, false); - setEnabled(paper_->input_head_sep, false); - setEnabled(paper_->input_foot_skip, false); - setEnabled(paper_->choice_top_margin_units, false); - setEnabled(paper_->choice_bottom_margin_units, false); - setEnabled(paper_->choice_inner_margin_units, false); - setEnabled(paper_->choice_outer_margin_units, false); - setEnabled(paper_->choice_head_height_units, false); - setEnabled(paper_->choice_head_sep_units, false); - setEnabled(paper_->choice_foot_skip_units, false); - } - } - - if (ob == paper_->check_use_geometry) { - //don't allow switching geometry off in custom papersize mode - //nor in A3, B3, and B4 + } else if (ob == paper_->check_use_geometry) { + // don't allow switching geometry off in custom papersize + // mode nor in A3, B3, and B4 int const choice = fl_get_choice(paper_->choice_papersize); if (choice == 2 || choice == 6 || choice == 9 || choice == 10) fl_set_button(paper_->check_use_geometry, 1); @@ -634,7 +646,17 @@ bool FormDocument::input(FL_OBJECT * ob, long) setEnabled(paper_->choice_foot_skip_units, use_geom); } - return CheckDocumentInput(ob, 0); + if (ob == paper_->choice_papersize || ob == paper_->radio_portrait + || ob == paper_->radio_landscape) { + // either default papersize (preferences) or document + // papersize has to be A4 + bool const enable = ( fl_get_choice(paper_->choice_papersize) == 1 + && lyxrc.default_papersize == BufferParams::PAPER_A4PAPER ) + || fl_get_choice(paper_->choice_papersize) == 7; + setEnabled(paper_->choice_paperpackage, enable && fl_get_button(paper_->radio_portrait)); + } + + return true; } @@ -643,7 +665,7 @@ void FormDocument::ComboInputCB(int, void * v, Combox * combox) FormDocument * pre = static_cast(v); if (combox == pre->combo_doc_class.get()) pre->CheckChoiceClass(0, 0); - pre->bc().valid(pre->CheckDocumentInput(0,0)); + pre->bc().valid(); } @@ -653,13 +675,13 @@ bool FormDocument::class_apply(BufferParams ¶ms) // If default skip is a "Length" but there's no text in the // input field, reset the kind to "Medskip", which is the default. - if ((fl_get_choice (class_->choice_doc_skip) == 4) && - !*(fl_get_input (class_->input_doc_skip))) { - fl_set_choice (class_->choice_doc_skip, 2); + if (fl_get_choice(class_->choice_doc_skip) == 4 && + getString(class_->input_doc_skip).empty()) { + fl_set_choice(class_->choice_doc_skip, 2); } - params.fonts = fl_get_choice_text(class_->choice_doc_fonts); - params.fontsize = fl_get_choice_text(class_->choice_doc_fontsize); - params.pagestyle = fl_get_choice_text(class_->choice_doc_pagestyle); + params.fonts = getString(class_->choice_doc_fonts); + params.fontsize = getString(class_->choice_doc_fontsize); + params.pagestyle = getString(class_->choice_doc_pagestyle); params.textclass = combo_doc_class->get() - 1; @@ -672,7 +694,7 @@ bool FormDocument::class_apply(BufferParams ¶ms) redo = true; VSpace tmpdefskip = params.getDefSkip(); - switch (fl_get_choice (class_->choice_doc_skip)) { + switch (fl_get_choice(class_->choice_doc_skip)) { case 1: params.setDefSkip(VSpace(VSpace::SMALLSKIP)); break; @@ -686,7 +708,7 @@ bool FormDocument::class_apply(BufferParams ¶ms) { string const length = getLengthFromWidgets(class_->input_doc_skip, - class_->choice_default_skip_units); + class_->choice_doc_skip_units); params.setDefSkip(VSpace(LyXGlueLength(length))); break; @@ -725,13 +747,13 @@ bool FormDocument::class_apply(BufferParams ¶ms) case 4: lyxerr[Debug::INFO] << "Spacing: OTHER\n"; params.spacing.set(Spacing::Other, - fl_get_input(class_->input_doc_spacing)); + getString(class_->input_doc_spacing)); break; } if (tmpSpacing != params.spacing) redo = true; - params.options = fl_get_input(class_->input_doc_extra); + params.options = getString(class_->input_doc_extra); return redo; } @@ -888,7 +910,7 @@ bool FormDocument::language_apply(BufferParams & params) } params.language = new_language; - params.inputenc = fl_get_choice_text(language_->choice_inputenc); + params.inputenc = getString(language_->choice_inputenc); return redo; } @@ -904,8 +926,7 @@ bool FormDocument::options_apply(BufferParams & params) { bool redo = false; - params.graphicsDriver = - fl_get_choice_text(options_->choice_postscript_driver); + params.graphicsDriver = getString(options_->choice_postscript_driver); params.use_amsmath = fl_get_button(options_->check_use_amsmath); params.use_natbib = fl_get_button(options_->check_use_natbib); params.use_numerical_citations = @@ -919,7 +940,7 @@ bool FormDocument::options_apply(BufferParams & params) params.tocdepth = int(fl_get_counter_value(options_->counter_tocdepth)); params.float_placement = - fl_get_input(options_->input_float_placement); + getString(options_->input_float_placement); return redo; } @@ -979,92 +1000,84 @@ void FormDocument::class_update(BufferParams const & params) UpdateClassParams(params); - fl_set_choice_text(class_->choice_doc_fonts, - params.fonts.c_str()); - fl_set_button(class_->radio_doc_indent, 0); - fl_set_button(class_->radio_doc_skip, 0); - if (params.paragraph_separation == BufferParams::PARSEP_INDENT) - fl_set_button(class_->radio_doc_indent, 1); - else - fl_set_button(class_->radio_doc_skip, 1); + fl_set_choice_text(class_->choice_doc_fonts, params.fonts.c_str()); - bool const input_length = fl_get_choice(class_->choice_doc_skip) == 4; - setEnabled(class_->choice_default_skip_units, input_length); - setEnabled(class_->input_doc_skip, input_length); + bool const indent = params.paragraph_separation == BufferParams::PARSEP_INDENT; + fl_set_button(class_->radio_doc_indent, indent); + fl_set_button(class_->radio_doc_skip, !indent); - switch (params.getDefSkip().kind()) { - case VSpace::SMALLSKIP: - fl_set_choice (class_->choice_doc_skip, 1); - break; - case VSpace::MEDSKIP: - fl_set_choice (class_->choice_doc_skip, 2); - break; - case VSpace::BIGSKIP: - fl_set_choice (class_->choice_doc_skip, 3); - break; - case VSpace::LENGTH: - { + int pos; + if (indent) { + pos = 2; // VSpace::MEDSKIP is default + } else { + switch (params.getDefSkip().kind()) { + case VSpace::LENGTH: + pos = 4; + break; + case VSpace::BIGSKIP: + pos = 3; + break; + case VSpace::SMALLSKIP: + pos = 1; + break; + case VSpace::MEDSKIP: + default: + pos = 2; + break; + } + } + fl_set_choice (class_->choice_doc_skip, pos); + + bool const length_input = pos == 4; + if (length_input) { int const paperchoice = fl_get_choice(paper_->choice_papersize); - bool const metric = (paperchoice == 1 && lyxrc.default_papersize > 3) + bool const metric = (paperchoice == 1 && lyxrc.default_papersize > BufferParams::PAPER_EXECUTIVEPAPER) || paperchoice == 2 || paperchoice > 5; string const default_unit = metric ? "cm" : "in"; string const length = params.getDefSkip().asLyXCommand(); updateWidgetsFromLengthString(class_->input_doc_skip, - class_->choice_default_skip_units, + class_->choice_doc_skip_units, length, default_unit); - break; - } - default: - fl_set_choice (class_->choice_doc_skip, 2); - break; - } - fl_set_button(class_->radio_doc_sides_one, 0); - fl_set_button(class_->radio_doc_sides_two, 0); - setEnabled(class_->choice_doc_skip, - fl_get_button(class_->radio_doc_skip)); - if (params.sides == LyXTextClass::TwoSides) - fl_set_button(class_->radio_doc_sides_two, 1); - else - fl_set_button(class_->radio_doc_sides_one, 1); - fl_set_button(class_->radio_doc_columns_one, 0); - fl_set_button(class_->radio_doc_columns_two, 0); - if (params.columns == 2) - fl_set_button(class_->radio_doc_columns_two, 1); - else - fl_set_button(class_->radio_doc_columns_one, 1); + } else { + fl_set_input(class_->input_doc_skip, ""); + } + setEnabled(class_->choice_doc_skip, !indent); + setEnabled(class_->input_doc_skip, length_input); + setEnabled(class_->choice_doc_skip_units, length_input); - fl_set_input(class_->input_doc_spacing, ""); - setEnabled(class_->input_doc_spacing, false); + bool const two_sides = params.sides == LyXTextClass::TwoSides; + fl_set_button(class_->radio_doc_sides_one, !two_sides); + fl_set_button(class_->radio_doc_sides_two, two_sides); + + bool const two_columns = params.columns == 2; + fl_set_button(class_->radio_doc_columns_one, !two_columns); + fl_set_button(class_->radio_doc_columns_two, two_columns); + + fl_set_input(class_->input_doc_extra, params.options.c_str()); switch (params.spacing.getSpace()) { - case Spacing::Default: // nothing bad should happen with this - case Spacing::Single: - // \singlespacing - fl_set_choice(class_->choice_doc_spacing, 1); - break; - case Spacing::Onehalf: - // \onehalfspacing - fl_set_choice(class_->choice_doc_spacing, 2); - break; - case Spacing::Double: - // \doublespacing - fl_set_choice(class_->choice_doc_spacing, 3); - break; case Spacing::Other: - { - fl_set_choice(class_->choice_doc_spacing, 4); - char sval[20]; - sprintf(sval,"%g",params.spacing.getValue()); - fl_set_input(class_->input_doc_spacing, sval); - setEnabled(class_->input_doc_spacing, true); + pos = 4; + break; + case Spacing::Double: // \doublespacing + pos = 3; + break; + case Spacing::Onehalf: // \onehalfspacing + pos = 2; + break; + case Spacing::Single: // \singlespacing + case Spacing::Default: // nothing bad should happen with this + default: + pos = 1; break; } - } - if (!params.options.empty()) - fl_set_input(class_->input_doc_extra, params.options.c_str()); - else - fl_set_input(class_->input_doc_extra, ""); + fl_set_choice(class_->choice_doc_spacing, pos); + + bool const spacing_input = pos == 4; + setEnabled(class_->input_doc_spacing, spacing_input); + string const input = spacing_input ? tostr(params.spacing.getValue()) : string(); + fl_set_input(class_->input_doc_spacing, input.c_str()); } @@ -1135,11 +1148,11 @@ void FormDocument::paper_update(BufferParams const & params) //either default papersize (preferences) //or document papersize has to be A4 (paperchoice == 7 - || paperchoice == 1 && lyxrc.default_papersize == 5) + || paperchoice == 1 && lyxrc.default_papersize == BufferParams::PAPER_A4PAPER) && fl_get_button(paper_->radio_portrait)); // Default unit choice is cm if metric, inches if US paper. - bool const metric = (paperchoice == 1 && lyxrc.default_papersize > 3) + bool const metric = (paperchoice == 1 && lyxrc.default_papersize > BufferParams::PAPER_EXECUTIVEPAPER) || paperchoice == 2 || paperchoice > 5; string const default_unit = metric ? "cm" : "in"; updateWidgetsFromLengthString(paper_->input_custom_width, @@ -1235,73 +1248,6 @@ void FormDocument::checkReadOnly() } -bool FormDocument::CheckDocumentInput(FL_OBJECT * ob, long) -{ - string str; - bool ok = true; - char const * input; - - // this has to be all out of if/elseif because it has to deactivate - // the document buttons and so the whole stuff has to be tested again. - // disable OK/Apply if input is not valid - str = fl_get_input(class_->input_doc_skip); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_custom_width); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_custom_height); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_outer_margin); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_inner_margin); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_top_margin); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_bottom_margin); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_head_height); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_head_sep); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - str = fl_get_input(paper_->input_foot_skip); - ok = ok && (str.empty() || isValidLength(str) || isStrDbl(str)); - - //display warning if input is not valid - if (ob == class_->input_doc_skip - || ob == paper_->input_custom_width - || ob == paper_->input_custom_height - || ob == paper_->input_outer_margin - || ob == paper_->input_inner_margin - || ob == paper_->input_top_margin - || ob == paper_->input_bottom_margin - || ob == paper_->input_head_height - || ob == paper_->input_head_sep - || ob == paper_->input_foot_skip) { - if (!ok) { - postWarning(_("Invalid Length (valid example: 10mm)")); - return false; - } else { - clearMessage(); - return true; - } - } - - // "Synchronize" the choice and the input field, so that it - // is impossible to commit senseless data. - input = fl_get_input (class_->input_doc_skip); - if ((fl_get_choice(class_->choice_doc_skip) == 4) && !*input) - ok = false; - else if (fl_get_choice(class_->choice_doc_skip) != 4) - fl_set_input (class_->input_doc_skip, ""); - - input = fl_get_input(class_->input_doc_spacing); - if ((fl_get_choice(class_->choice_doc_spacing) == 4) && !*input) - ok = false; - else if (fl_get_choice(class_->choice_doc_spacing) != 4) - fl_set_input (class_->input_doc_spacing, ""); - return ok; -} - - void FormDocument::ChoiceBulletSize(FL_OBJECT * ob, long /*data*/) { BufferParams & param = lv_.buffer()->params; @@ -1318,7 +1264,7 @@ void FormDocument::InputBulletLaTeX(FL_OBJECT *, long) BufferParams & param = lv_.buffer()->params; param.temp_bullets[current_bullet_depth]. - setText(fl_get_input(bullets_->input_bullet_latex)); + setText(getString(bullets_->input_bullet_latex)); } diff --git a/src/frontends/xforms/FormDocument.h b/src/frontends/xforms/FormDocument.h index db3fd67dd5..e6109d2e83 100644 --- a/src/frontends/xforms/FormDocument.h +++ b/src/frontends/xforms/FormDocument.h @@ -60,8 +60,6 @@ private: /// virtual FL_FORM * form() const; - /// - bool CheckDocumentInput(FL_OBJECT * ob, long); /// void ChoiceBulletSize(FL_OBJECT * ob, long); /// diff --git a/src/frontends/xforms/checkedwidgets.C b/src/frontends/xforms/checkedwidgets.C index 6de28cdc4b..d351372452 100644 --- a/src/frontends/xforms/checkedwidgets.C +++ b/src/frontends/xforms/checkedwidgets.C @@ -54,11 +54,11 @@ void setWidget(bool valid, FL_OBJECT * input, FL_OBJECT * label) fl_set_object_lcol(input, lcol); } - // set background color of input widget - FL_COLOR const icol1 = valid ? FL_INPUT_COL1 : alert_col; - FL_COLOR const icol2 = valid ? FL_INPUT_COL2 : alert_col; - if (input->col1 != icol1 || input->col2 != icol2) { - fl_set_object_color(input, icol1, icol2); + // Reflect the validity of the data in the background color of the + // input widget only when this widget is not being edited. + FL_COLOR const icol1 = valid ? FL_COL1 : alert_col; + if (input->col1 != icol1) { + fl_set_object_color(input, icol1, FL_MCOL); } } diff --git a/src/frontends/xforms/forms/form_document.fd b/src/frontends/xforms/forms/form_document.fd index 8a2775754a..c2be070d79 100644 --- a/src/frontends/xforms/forms/form_document.fd +++ b/src/frontends/xforms/forms/form_document.fd @@ -9,19 +9,19 @@ SnapGrid: 5 =============== FORM =============== Name: form_document -Width: 465 -Height: 500 +Width: 395 +Height: 430 Number of Objects: 9 -------------------- class: FL_BOX -type: UP_BOX -box: 0 0 465 500 -boxtype: FL_UP_BOX +type: FLAT_BOX +box: 0 0 395 430 +boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: shortcut: @@ -34,12 +34,12 @@ argument: -------------------- class: FL_TABFOLDER type: TOP_TABFOLDER -box: 20 15 435 365 -boxtype: FL_UP_BOX +box: 0 5 395 335 +boxtype: FL_FRAME_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Tabbed folder shortcut: @@ -52,7 +52,7 @@ argument: -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 355 460 100 30 +box: 300 400 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -65,12 +65,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_close callback: C_FormBaseDeprecatedCancelCB -argument: +argument: 0 -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 245 460 100 30 +box: 205 400 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -83,12 +83,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_apply callback: C_FormBaseDeprecatedApplyCB -argument: +argument: 0 -------------------- class: FL_BUTTON type: RETURN_BUTTON -box: 135 460 100 30 +box: 110 400 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -101,17 +101,17 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_ok callback: C_FormBaseDeprecatedOKCB -argument: +argument: 0 -------------------- class: FL_TEXT type: NORMAL_TEXT -box: 15 385 435 30 +box: 0 340 395 25 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: shortcut: @@ -124,7 +124,7 @@ argument: -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 10 460 100 30 +box: 5 400 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -137,17 +137,17 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_restore callback: C_FormBaseDeprecatedRestoreCB -argument: +argument: 0 -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 10 420 195 30 +box: 5 365 190 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Save as Document Defaults|#v shortcut: @@ -155,17 +155,17 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_save_defaults callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 260 420 195 30 +box: 200 365 190 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Use Class Defaults|#C shortcut: @@ -173,18 +173,18 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: button_reset_defaults callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 =============== FORM =============== Name: form_document_paper -Width: 440 -Height: 345 +Width: 395 +Height: 310 Number of Objects: 29 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 440 345 +box: 0 0 395 310 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -202,14 +202,14 @@ argument: -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 10 15 225 120 +box: 5 10 225 110 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK -label: Paper size +label: Dimensions shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity @@ -220,25 +220,25 @@ argument: -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 110 25 115 30 +box: 100 25 115 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT style: FL_NORMAL_STYLE size: FL_NORMAL_SIZE lcol: FL_BLACK -label: Paper size:|#P +label: Size:|#S shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_papersize callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 110 60 55 30 +box: 100 55 65 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -251,12 +251,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_custom_width callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 170 60 55 30 +box: 165 55 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -269,12 +269,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_custom_width_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 110 95 55 30 +box: 100 85 65 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -287,12 +287,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_custom_height callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 170 95 55 30 +box: 165 85 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -305,17 +305,17 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_custom_height_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 245 15 180 120 +box: 230 10 160 110 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Orientation shortcut: @@ -328,7 +328,7 @@ argument: -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -346,7 +346,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 255 40 120 30 +box: 245 35 120 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -359,12 +359,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_portrait callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 255 75 120 30 +box: 245 75 120 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -377,7 +377,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_landscape callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP @@ -400,12 +400,12 @@ argument: -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 10 150 415 185 +box: 5 130 385 175 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Margins shortcut: @@ -418,10 +418,10 @@ argument: -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 20 155 30 30 +box: 15 145 170 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW -alignment: FL_ALIGN_RIGHT +alignment: FL_ALIGN_CENTER style: FL_NORMAL_STYLE size: FL_NORMAL_SIZE lcol: FL_BLACK @@ -431,12 +431,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: check_use_geometry callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 230 180 185 30 +box: 210 175 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_TOP @@ -449,12 +449,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_paperpackage callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 80 190 55 30 +box: 75 180 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -467,12 +467,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_top_margin callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 140 190 55 30 +box: 125 180 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -485,12 +485,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_top_margin_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 80 225 55 30 +box: 75 210 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -503,12 +503,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_bottom_margin callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 140 225 55 30 +box: 125 210 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -521,12 +521,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_bottom_margin_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 80 260 55 30 +box: 75 240 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -539,12 +539,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_inner_margin callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 140 260 55 30 +box: 125 240 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -557,12 +557,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_inner_margin_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 80 295 55 30 +box: 75 270 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -575,12 +575,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_outer_margin callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 140 295 55 30 +box: 125 270 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -593,12 +593,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_outer_margin_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 300 225 55 30 +box: 280 210 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -611,12 +611,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_head_height callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 360 225 55 30 +box: 330 210 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -629,12 +629,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_head_height_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 300 260 55 30 +box: 280 240 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -647,12 +647,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_head_sep callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 360 260 55 30 +box: 330 240 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -665,12 +665,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_head_sep_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 300 295 55 30 +box: 280 270 50 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -683,12 +683,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_foot_skip callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 360 295 55 30 +box: 330 270 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -701,23 +701,23 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_foot_skip_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 =============== FORM =============== Name: form_document_class -Width: 440 -Height: 345 +Width: 395 +Height: 310 Number of Objects: 26 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 440 345 +box: 0 0 395 310 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: shortcut: @@ -730,12 +730,30 @@ argument: -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 20 245 400 85 +box: 280 10 105 65 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE +lcol: FL_BLACK +label: Sides +shortcut: +resize: FL_RESIZE_ALL +gravity: FL_NoGravity FL_NoGravity +name: +callback: +argument: + +-------------------- +class: FL_LABELFRAME +type: ENGRAVED_FRAME +box: 5 225 385 80 +boxtype: FL_NO_BOX +colors: FL_BLACK FL_COL1 +alignment: FL_ALIGN_TOP_LEFT +style: FL_NORMAL_STYLE +size: FL_NORMAL_SIZE lcol: FL_BLACK label: Separation shortcut: @@ -748,32 +766,14 @@ argument: -------------------- class: FL_LABELFRAME type: ENGRAVED_FRAME -box: 300 110 120 75 +box: 280 95 105 65 boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK -label: Page cols -shortcut: -resize: FL_RESIZE_ALL -gravity: FL_NoGravity FL_NoGravity -name: -callback: -argument: - --------------------- -class: FL_LABELFRAME -type: ENGRAVED_FRAME -box: 300 20 120 75 -boxtype: FL_NO_BOX -colors: FL_BLACK FL_COL1 -alignment: FL_ALIGN_TOP_LEFT -style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE -lcol: FL_BLACK -label: Sides +label: Columns shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity @@ -784,7 +784,7 @@ argument: -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 90 160 30 +box: 110 80 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -797,12 +797,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_fonts callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 125 160 30 +box: 110 115 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -815,12 +815,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_fontsize callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 20 160 30 +box: 110 10 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -833,12 +833,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_class callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 55 160 30 +box: 110 45 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -851,12 +851,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_pagestyle callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 200 160 30 +box: 110 185 160 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -869,12 +869,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_spacing callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 120 160 160 30 +box: 110 150 160 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -887,12 +887,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_doc_extra callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 285 290 60 30 +box: 250 270 65 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -905,15 +905,15 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_doc_skip callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 285 255 125 30 +box: 115 270 125 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK -alignment: FL_ALIGN_LEFT +alignment: FL_ALIGN_TOP style: FL_NORMAL_STYLE size: FL_NORMAL_SIZE lcol: FL_BLACK @@ -923,12 +923,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_doc_skip callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -946,7 +946,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 300 30 120 30 +box: 290 20 95 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -959,12 +959,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_sides_one callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 300 60 120 30 +box: 290 45 95 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -977,7 +977,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_sides_two callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP @@ -1000,7 +1000,7 @@ argument: -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1018,7 +1018,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 300 120 110 30 +box: 290 105 95 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1031,12 +1031,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_columns_one callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 300 150 110 30 +box: 290 130 95 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1049,7 +1049,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_columns_two callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP @@ -1072,7 +1072,7 @@ argument: -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1090,7 +1090,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 50 260 110 30 +box: 25 240 100 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1103,12 +1103,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_indent callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 50 290 110 30 +box: 25 270 100 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1121,7 +1121,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_doc_skip callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 value: 1 -------------------- @@ -1145,7 +1145,7 @@ argument: -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 300 200 120 30 +box: 275 185 115 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -1158,12 +1158,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_doc_spacing callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 350 290 60 30 +box: 315 270 50 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -1174,20 +1174,20 @@ label: shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity -name: choice_default_skip_units +name: choice_doc_skip_units callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 =============== FORM =============== Name: form_document_language -Width: 440 -Height: 345 +Width: 395 +Height: 310 Number of Objects: 9 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 440 345 +box: 0 0 395 310 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -1210,9 +1210,9 @@ boxtype: FL_NO_BOX colors: FL_BLACK FL_COL1 alignment: FL_ALIGN_TOP_LEFT style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE +size: FL_NORMAL_SIZE lcol: FL_BLACK -label: Quote Style +label: Quote Style shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity @@ -1223,25 +1223,25 @@ argument: -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 70 190 30 +box: 120 70 190 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT style: FL_NORMAL_STYLE size: FL_NORMAL_SIZE lcol: FL_BLACK -label: Encoding:|#D +label: Encoding:|#E shortcut: resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_inputenc callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 110 140 190 30 +box: 110 140 190 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -1254,12 +1254,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_quotes_language callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1277,7 +1277,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 110 180 90 30 +box: 110 180 95 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1290,12 +1290,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_single callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 210 180 90 30 +box: 210 180 90 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1308,7 +1308,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_double callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP @@ -1331,7 +1331,7 @@ argument: -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 120 35 190 30 +box: 120 35 190 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -1344,18 +1344,18 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_language callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 =============== FORM =============== Name: form_document_options -Width: 440 -Height: 345 +Width: 395 +Height: 310 Number of Objects: 8 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 440 345 +box: 0 0 395 310 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -1373,7 +1373,7 @@ argument: -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 200 35 120 30 +box: 185 20 120 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -1386,12 +1386,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_float_placement callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_COUNTER type: SIMPLE_COUNTER -box: 200 75 80 30 +box: 185 60 80 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_BLUE alignment: FL_ALIGN_LEFT @@ -1404,12 +1404,16 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: counter_secnumdepth callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 + bounds: -2 5 + precision: 0 + value: 1 + sstep: 1 -------------------- class: FL_COUNTER type: SIMPLE_COUNTER -box: 200 115 80 30 +box: 185 100 80 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_BLUE alignment: FL_ALIGN_LEFT @@ -1422,12 +1426,16 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: counter_tocdepth callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 + bounds: -1 5 + precision: 0 + value: 1 + sstep: 1 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 200 155 190 30 +box: 185 140 140 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -1440,12 +1448,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_postscript_driver callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 200 200 35 30 +box: 185 185 25 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_LEFT @@ -1458,12 +1466,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: check_use_amsmath callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHECKBUTTON type: PUSH_BUTTON -box: 200 245 35 30 +box: 185 225 25 25 boxtype: FL_NO_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_LEFT @@ -1476,12 +1484,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: check_use_natbib callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 200 285 190 30 +box: 185 265 140 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_LEFT @@ -1494,18 +1502,18 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_citation_format callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 =============== FORM =============== Name: form_document_bullet -Width: 440 -Height: 345 -Number of Objects: 20 +Width: 395 +Height: 310 +Number of Objects: 19 -------------------- class: FL_BOX type: FLAT_BOX -box: 0 0 440 345 +box: 0 0 395 310 boxtype: FL_FLAT_BOX colors: FL_COL1 FL_COL1 alignment: FL_ALIGN_CENTER @@ -1520,10 +1528,28 @@ name: callback: argument: +-------------------- +class: FL_LABELFRAME +type: ENGRAVED_FRAME +box: 110 15 280 45 +boxtype: FL_NO_BOX +colors: FL_BLACK FL_COL1 +alignment: FL_ALIGN_TOP_LEFT +style: FL_NORMAL_STYLE +size: FL_NORMAL_SIZE +lcol: FL_BLACK +label: Bullet depth +shortcut: +resize: FL_RESIZE_ALL +gravity: FL_NoGravity FL_NoGravity +name: +callback: +argument: + -------------------- class: FL_BUTTON type: NORMAL_BUTTON -box: 135 105 260 180 +box: 120 75 260 180 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_BOTTOM @@ -1538,28 +1564,10 @@ name: bmtable_bullet_panel callback: C_FormBaseDeprecatedInputCB argument: 0 --------------------- -class: FL_FRAME -type: ENGRAVED_FRAME -box: 135 20 260 55 -boxtype: FL_NO_BOX -colors: FL_BLACK FL_COL1 -alignment: FL_ALIGN_CENTER -style: FL_NORMAL_STYLE -size: FL_DEFAULT_SIZE -lcol: FL_BLACK -label: -shortcut: -resize: FL_RESIZE_ALL -gravity: FL_NoGravity FL_NoGravity -name: -callback: -argument: - -------------------- class: FL_CHOICE type: NORMAL_CHOICE -box: 15 45 65 30 +box: 20 30 65 25 boxtype: FL_FRAME_BOX colors: FL_COL1 FL_BLACK alignment: FL_ALIGN_TOP @@ -1572,12 +1580,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: choice_bullet_size callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_INPUT type: NORMAL_INPUT -box: 80 300 275 30 +box: 120 270 260 25 boxtype: FL_DOWN_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_LEFT @@ -1590,12 +1598,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: input_bullet_latex callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1613,7 +1621,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 150 35 55 30 +box: 120 25 50 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1626,13 +1634,13 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_bullet_depth_1 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 value: 1 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 215 35 55 30 +box: 190 25 50 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1645,12 +1653,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_bullet_depth_2 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 275 35 55 30 +box: 260 25 50 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1663,12 +1671,12 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_bullet_depth_3 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 335 35 55 30 +box: 330 25 50 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1681,7 +1689,7 @@ resize: FL_RESIZE_ALL gravity: FL_NoGravity FL_NoGravity name: radio_bullet_depth_4 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP @@ -1701,28 +1709,10 @@ name: callback: argument: --------------------- -class: FL_TEXT -type: NORMAL_TEXT -box: 145 10 85 20 -boxtype: FL_FLAT_BOX -colors: FL_COL1 FL_MCOL -alignment: FL_ALIGN_LEFT|FL_ALIGN_INSIDE -style: FL_NORMAL_STYLE -size: FL_NORMAL_SIZE -lcol: FL_BLACK -label: Bullet Depth -shortcut: -resize: FL_RESIZE_ALL -gravity: FL_NoGravity FL_NoGravity -name: -callback: -argument: - -------------------- class: FL_BEGIN_GROUP type: 0 -box: 0 0 0 0 +box: 0 10 10 0 boxtype: FL_NO_BOX colors: FL_COL1 FL_MCOL alignment: FL_ALIGN_CENTER @@ -1740,7 +1730,7 @@ argument: -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 105 90 30 +box: 15 75 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1753,13 +1743,13 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_standard callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 value: 1 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 135 90 30 +box: 15 105 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1772,12 +1762,12 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_maths callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 165 90 30 +box: 15 135 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1790,12 +1780,12 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_ding1 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 195 90 30 +box: 15 165 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1808,12 +1798,12 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_ding2 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 225 90 30 +box: 15 195 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1826,12 +1816,12 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_ding3 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_ROUND3DBUTTON type: RADIO_BUTTON -box: 15 255 90 30 +box: 15 225 90 25 boxtype: FL_UP_BOX colors: FL_COL1 FL_YELLOW alignment: FL_ALIGN_CENTER @@ -1844,7 +1834,7 @@ resize: FL_RESIZE_NONE gravity: FL_NoGravity FL_NoGravity name: radio_bullet_panel_ding4 callback: C_FormBaseDeprecatedInputCB -argument: +argument: 0 -------------------- class: FL_END_GROUP