2000-08-11 14:42:20 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
|
|
|
#include <config.h>
|
2001-11-26 10:19:58 +00:00
|
|
|
#include "xforms_helpers.h"
|
2000-08-11 14:42:20 +00:00
|
|
|
#include "gettext.h"
|
2001-03-16 12:08:14 +00:00
|
|
|
#include "bmtable.h"
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_document.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
#include "FormDocument.h"
|
2000-08-11 14:42:20 +00:00
|
|
|
#include "bmtable.h"
|
|
|
|
#include "support/filetools.h"
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_tabbed_document::~FD_form_tabbed_document()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_tabbed_document * FormDocument::build_tabbed_document()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_tabbed_document *fdui = new FD_form_tabbed_document;
|
|
|
|
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 465, 500);
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2001-09-27 12:13:51 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 465, 500, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
fdui->tabbed_folder = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 20, 15, 435, 365, _("Tabbed folder"));
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_ALL);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-02-14 10:30:46 +00:00
|
|
|
char const * const dummy = N_("Cancel|^[");
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 355, 460, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedCancelCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 245, 460, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedApplyCB, INPUT);
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 135, 460, 100, 30, _("OK"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedOKCB, INPUT);
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 15, 385, 435, 30, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Restore|#R");
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 460, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-18 14:36:12 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedRestoreCB, INPUT);
|
2001-09-21 15:20:17 +00:00
|
|
|
{
|
2001-11-12 14:28:12 +00:00
|
|
|
char const * const dummy = N_("Save as Document Defaults|#v");
|
2001-09-27 12:13:51 +00:00
|
|
|
fdui->button_save_defaults = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 420, 195, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Use Class Defaults|#C");
|
|
|
|
fdui->button_reset_defaults = obj = fl_add_button(FL_NORMAL_BUTTON, 260, 420, 195, 30, idex(_(dummy)));
|
2001-09-21 15:20:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_doc_paper::~FD_form_doc_paper()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_doc_paper * FormDocument::build_doc_paper()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_doc_paper *fdui = new FD_form_doc_paper;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 440, 345);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-29 01:46:59 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 440, 345, "");
|
2001-10-09 12:36:36 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 15, 225, 120, _("Papersize"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Papersize:|#P");
|
|
|
|
fdui->choice_papersize = obj = fl_add_choice(FL_NORMAL_CHOICE, 110, 25, 115, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Width:|#W");
|
|
|
|
fdui->input_custom_width = obj = fl_add_input(FL_NORMAL_INPUT, 110, 60, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_custom_width_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 170, 60, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Height:|#H");
|
|
|
|
fdui->input_custom_height = obj = fl_add_input(FL_NORMAL_INPUT, 110, 95, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_custom_height_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 170, 95, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 245, 15, 180, 120, _("Orientation"));
|
2000-08-11 14:42:20 +00:00
|
|
|
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->group_radio_orientation = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Portrait|#o");
|
|
|
|
fdui->radio_portrait = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 255, 40, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Landscape|#L");
|
|
|
|
fdui->radio_landscape = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 255, 75, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 150, 415, 185, _("Margins"));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-11 17:28:28 +00:00
|
|
|
char const * const dummy = N_("Custom sizes|#M");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->check_use_geometry = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 155, 30, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-10-09 12:36:36 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-10-09 12:36:36 +00:00
|
|
|
char const * const dummy = N_("Special (A4 portrait only):|#S");
|
|
|
|
fdui->choice_paperpackage = obj = fl_add_choice(FL_NORMAL_CHOICE, 230, 180, 185, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-10-09 12:36:36 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-10-09 12:36:36 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Top:|#T");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_top_margin = obj = fl_add_input(FL_NORMAL_INPUT, 80, 190, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_top_margin_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 140, 190, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Bottom:|#B");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_bottom_margin = obj = fl_add_input(FL_NORMAL_INPUT, 80, 225, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_bottom_margin_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 140, 225, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Left:|#e");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_left_margin = obj = fl_add_input(FL_NORMAL_INPUT, 80, 260, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_left_margin_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 140, 260, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Right:|#R");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_right_margin = obj = fl_add_input(FL_NORMAL_INPUT, 80, 295, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_right_margin_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 140, 295, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Headheight:|#i");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_head_height = obj = fl_add_input(FL_NORMAL_INPUT, 300, 225, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_head_height_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 360, 225, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Headsep:|#d");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_head_sep = obj = fl_add_input(FL_NORMAL_INPUT, 300, 260, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_head_sep_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 360, 260, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Footskip:|#F");
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->input_foot_skip = obj = fl_add_input(FL_NORMAL_INPUT, 300, 295, 55, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-09 12:36:36 +00:00
|
|
|
fdui->choice_foot_skip_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 360, 295, 55, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_doc_class::~FD_form_doc_class()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_doc_class * FormDocument::build_doc_class()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_doc_class *fdui = new FD_form_doc_class;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 440, 345);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-29 01:46:59 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 440, 345, "");
|
2001-10-23 09:00:12 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 245, 400, 85, _("Separation"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-10-23 11:35:48 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 300, 110, 120, 75, _("Page cols"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-10-23 09:00:12 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 300, 20, 120, 75, _("Sides"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Fonts:|#F");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->choice_doc_fonts = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 90, 160, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Font Size:|#O");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->choice_doc_fontsize = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 125, 160, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-27 12:13:51 +00:00
|
|
|
char const * const dummy = N_("Class:|#l");
|
2000-12-06 22:24:17 +00:00
|
|
|
fdui->choice_doc_class = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 20, 160, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, CHECKCHOICECLASS);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Pagestyle:|#P");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->choice_doc_pagestyle = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 55, 160, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Spacing|#g");
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->choice_doc_spacing = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 200, 160, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Extra Options:|#X");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->input_doc_extra = obj = fl_add_input(FL_NORMAL_INPUT, 120, 160, 160, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->input_doc_skip = obj = fl_add_input(FL_NORMAL_INPUT, 285, 290, 60, 30, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Default Skip:|#u");
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->choice_doc_skip = obj = fl_add_choice(FL_NORMAL_CHOICE, 285, 255, 125, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
fdui->group_doc_sides = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("One|#n");
|
|
|
|
fdui->radio_doc_sides_one = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 300, 30, 120, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Two|#T");
|
|
|
|
fdui->radio_doc_sides_two = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 300, 60, 120, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
|
|
|
|
fdui->group_doc_columns = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("One|#e");
|
|
|
|
fdui->radio_doc_columns_one = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 300, 120, 110, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Two|#w");
|
|
|
|
fdui->radio_doc_columns_two = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 300, 150, 110, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
|
|
|
|
fdui->group_doc_sep = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Indent|#I");
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->radio_doc_indent = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 50, 260, 110, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Skip|#K");
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->radio_doc_skip = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 50, 290, 110, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_button(obj, 1);
|
|
|
|
fl_end_group();
|
|
|
|
|
2001-10-23 11:35:48 +00:00
|
|
|
fdui->input_doc_spacing = obj = fl_add_input(FL_NORMAL_INPUT, 300, 200, 120, 30, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-10-23 09:00:12 +00:00
|
|
|
fdui->choice_default_skip_units = obj = fl_add_choice(FL_NORMAL_CHOICE, 350, 290, 60, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_doc_language::~FD_form_doc_language()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_doc_language * FormDocument::build_doc_language()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_doc_language *fdui = new FD_form_doc_language;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 440, 345);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-29 01:46:59 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 440, 345, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 40, 120, 290, 110, _("Quote Style "));
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Encoding:|#D");
|
|
|
|
fdui->choice_inputenc = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 70, 190, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Type:|#T");
|
|
|
|
fdui->choice_quotes_language = obj = fl_add_choice(FL_NORMAL_CHOICE, 110, 140, 190, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Single|#S");
|
|
|
|
fdui->radio_single = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 110, 180, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Double|#D");
|
|
|
|
fdui->radio_double = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 210, 180, 90, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Language:|#L");
|
|
|
|
fdui->choice_language = obj = fl_add_choice(FL_NORMAL_CHOICE, 120, 35, 190, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_doc_options::~FD_form_doc_options()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_doc_options * FormDocument::build_doc_options()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_doc_options *fdui = new FD_form_doc_options;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 440, 345);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-29 01:46:59 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 440, 345, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Float Placement:|#L");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->input_float_placement = obj = fl_add_input(FL_NORMAL_INPUT, 200, 35, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->slider_secnumdepth = obj = fl_add_counter(FL_SIMPLE_COUNTER, 200, 75, 80, 30, _("Section number depth"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->slider_tocdepth = obj = fl_add_counter(FL_SIMPLE_COUNTER, 200, 115, 80, 30, _("Table of contents depth"));
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-07-19 14:12:37 +00:00
|
|
|
char const * const dummy = N_("PS Driver|#S");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->choice_postscript_driver = obj = fl_add_choice(FL_NORMAL_CHOICE, 200, 155, 190, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Use AMS Math|#M");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->check_use_amsmath = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 200, 200, 35, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-07-19 14:12:37 +00:00
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
|
|
|
{
|
|
|
|
char const * const dummy = N_("Use Natbib|#N");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->check_use_natbib = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 200, 245, 35, 30, idex(_(dummy)));
|
2001-07-19 14:12:37 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUT);
|
2001-07-19 14:12:37 +00:00
|
|
|
{
|
2001-09-27 12:13:51 +00:00
|
|
|
char const * const dummy = N_("Citation style|#i");
|
2001-09-21 10:41:09 +00:00
|
|
|
fdui->choice_citation_format = obj = fl_add_choice(FL_NORMAL_CHOICE, 200, 285, 190, 30, idex(_(dummy)));
|
2001-07-19 14:12:37 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
FD_form_doc_bullet::~FD_form_doc_bullet()
|
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-08-14 05:24:35 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-08-11 14:42:20 +00:00
|
|
|
FD_form_doc_bullet * FormDocument::build_doc_bullet()
|
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
FD_form_doc_bullet *fdui = new FD_form_doc_bullet;
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 440, 345);
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_border_width(-1);
|
2000-08-29 01:46:59 +00:00
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 440, 345, "");
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_border_width(-3);
|
|
|
|
fdui->bmtable_bullet_panel = obj = fl_add_bmtable(1, 90, 105, 265, 180, "");
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETBMTABLE);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lcol(obj, FL_BLUE);
|
|
|
|
fl_set_object_boxtype(obj, FL_UP_BOX);
|
|
|
|
fl_set_bmtable_pixmap_file(obj, 6, 6,
|
2000-08-14 05:24:35 +00:00
|
|
|
LibFileSearch("images",
|
|
|
|
"standard",
|
|
|
|
"xpm").c_str());
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_border_width(-1);
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 95, 20, 255, 70, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Size|#z");
|
|
|
|
fdui->choice_bullet_size = obj = fl_add_choice(FL_NORMAL_CHOICE, 15, 45, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, CHOICEBULLETSIZE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("LaTeX|#L");
|
|
|
|
fdui->input_bullet_latex = obj = fl_add_input(FL_NORMAL_INPUT, 80, 300, 275, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_FIXED_STYLE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, INPUTBULLETLATEX);
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
fdui->radio_bullet_depth = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("1|#1");
|
|
|
|
fdui->radio_bullet_depth_1 = obj = fl_add_button(FL_RADIO_BUTTON, 105, 35, 55, 40, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_LARGE_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETDEPTH1);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("2|#2");
|
|
|
|
fdui->radio_bullet_depth_2 = obj = fl_add_button(FL_RADIO_BUTTON, 165, 35, 55, 40, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_LARGE_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETDEPTH2);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("3|#3");
|
|
|
|
fdui->radio_bullet_depth_3 = obj = fl_add_button(FL_RADIO_BUTTON, 225, 35, 55, 40, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_LARGE_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETDEPTH3);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("4|#4");
|
|
|
|
fdui->radio_bullet_depth_4 = obj = fl_add_button(FL_RADIO_BUTTON, 285, 35, 55, 40, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_LARGE_SIZE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETDEPTH4);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
obj = fl_add_text(FL_NORMAL_TEXT, 105, 10, 85, 20, _("Bullet Depth"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
|
|
|
|
|
|
|
fdui->radio_bullet_panel = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Standard|#S");
|
|
|
|
fdui->radio_bullet_panel_standard = obj = fl_add_button(FL_RADIO_BUTTON, 15, 105, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL1);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_button(obj, 1);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Maths|#M");
|
|
|
|
fdui->radio_bullet_panel_maths = obj = fl_add_button(FL_RADIO_BUTTON, 15, 135, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL2);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Ding 2|#i");
|
|
|
|
fdui->radio_bullet_panel_ding2 = obj = fl_add_button(FL_RADIO_BUTTON, 15, 195, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL3);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Ding 3|#n");
|
|
|
|
fdui->radio_bullet_panel_ding3 = obj = fl_add_button(FL_RADIO_BUTTON, 15, 225, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL4);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Ding 4|#g");
|
|
|
|
fdui->radio_bullet_panel_ding4 = obj = fl_add_button(FL_RADIO_BUTTON, 15, 255, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL5);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Ding 1|#D");
|
|
|
|
fdui->radio_bullet_panel_ding1 = obj = fl_add_button(FL_RADIO_BUTTON, 15, 165, 65, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_NONE);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, BULLETPANEL6);
|
2000-08-11 14:42:20 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
|
|
|
fl_end_form();
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
fdui->form->fdui = fdui;
|
2000-08-11 14:42:20 +00:00
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|