2000-07-28 04:59:45 +00:00
|
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
2000-07-11 15:08:54 +00:00
|
|
|
|
#include <config.h>
|
|
|
|
|
#include "lyx_gui_misc.h"
|
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
|
#include <stdlib.h>
|
2000-07-13 15:03:34 +00:00
|
|
|
|
#include "form_tabular.h"
|
2000-08-14 05:24:35 +00:00
|
|
|
|
#include "FormTabular.h"
|
|
|
|
|
|
|
|
|
|
FD_form_tabular::~FD_form_tabular()
|
|
|
|
|
{
|
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-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
FD_form_tabular * FormTabular::build_tabular()
|
|
|
|
|
{
|
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
|
FD_form_tabular *fdui = new FD_form_tabular;
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 510, 295);
|
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-07 15:21:05 +00:00
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 510, 295, "");
|
|
|
|
|
fdui->tabFolder = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 0, 505, 250, _("Tabbed folder"));
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_ALL);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
2001-02-19 16:01:31 +00:00
|
|
|
|
char const * const dummy = N_("Close|^[");
|
2000-12-06 22:24:17 +00:00
|
|
|
|
fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 415, 260, 90, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-08-07 15:21:05 +00:00
|
|
|
|
fdui->input_tabular_column = obj = fl_add_input(FL_NORMAL_INPUT, 65, 260, 60, 30, "");
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
2000-08-07 15:21:05 +00:00
|
|
|
|
fdui->input_tabular_row = obj = fl_add_input(FL_NORMAL_INPUT, 5, 260, 60, 30, "");
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
2000-08-07 15:21:05 +00:00
|
|
|
|
fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 125, 260, 290, 30, "");
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
fl_end_form();
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->fdui = fdui;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
|
}
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
FD_form_tabular_options::~FD_form_tabular_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-07-11 15:08:54 +00:00
|
|
|
|
FD_form_tabular_options * FormTabular::build_tabular_options()
|
|
|
|
|
{
|
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
|
FD_form_tabular_options *fdui = new FD_form_tabular_options;
|
|
|
|
|
|
2000-10-26 09:36:33 +00:00
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 505, 225);
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->u_vdata = this;
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 505, 225, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Append Column|#A");
|
|
|
|
|
fdui->button_append_column = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 40, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Delete Column|#O");
|
|
|
|
|
fdui->button_delete_column = obj = fl_add_button(FL_NORMAL_BUTTON, 140, 40, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Append Row|#p");
|
|
|
|
|
fdui->button_append_row = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 70, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Delete Row|#w");
|
|
|
|
|
fdui->button_delete_row = obj = fl_add_button(FL_NORMAL_BUTTON, 140, 70, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Set Borders|#S");
|
|
|
|
|
fdui->button_set_borders = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 10, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Unset Borders|#U");
|
|
|
|
|
fdui->button_unset_borders = obj = fl_add_button(FL_NORMAL_BUTTON, 140, 10, 120, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Longtable|#L");
|
|
|
|
|
fdui->radio_longtable = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 280, 30, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Rotate 90<39>|#9");
|
|
|
|
|
fdui->radio_rotate_tabular = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 280, 55, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 280, 20, 120, 75, _("Spec. Table"));
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
fl_end_form();
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->fdui = fdui;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
|
}
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
FD_form_column_options::~FD_form_column_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-07-11 15:08:54 +00:00
|
|
|
|
FD_form_column_options * FormTabular::build_column_options()
|
|
|
|
|
{
|
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
|
FD_form_column_options *fdui = new FD_form_column_options;
|
|
|
|
|
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 505, 225);
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->u_vdata = this;
|
2001-10-23 11:35:48 +00:00
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 505, 225, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Top|#t");
|
|
|
|
|
fdui->radio_border_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 85, 45, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Bottom|#b");
|
|
|
|
|
fdui->radio_border_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 85, 75, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Left|#l");
|
|
|
|
|
fdui->radio_border_left = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 65, 60, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Right|#r");
|
|
|
|
|
fdui->radio_border_right = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 105, 60, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Left|#e");
|
|
|
|
|
fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 30, 110, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Right|#i");
|
|
|
|
|
fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 80, 115, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Center|#c");
|
|
|
|
|
fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 55, 115, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Top|#p");
|
|
|
|
|
fdui->radio_valign_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 30, 125, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-17 14:31:07 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Center|#n");
|
|
|
|
|
fdui->radio_valign_center = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 55, 125, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-17 14:31:07 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Bottom|#o");
|
|
|
|
|
fdui->radio_valign_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 80, 120, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-17 14:31:07 +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, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 20, 170, 105, _("Borders"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 200, 20, 130, 105, _("H. Alignment"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 340, 20, 130, 105, _("V. Alignment"));
|
|
|
|
|
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_("Width|#W");
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->input_column_width = obj = fl_add_input(FL_NORMAL_INPUT, 275, 170, 95, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-10-26 09:36:33 +00:00
|
|
|
|
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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Alignment|#A");
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->input_special_alignment = obj = fl_add_input(FL_NORMAL_INPUT, 40, 170, 215, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-10-26 09:36:33 +00:00
|
|
|
|
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, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 135, 450, 80, _("Special column"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->choice_value_column_width = obj = fl_add_choice(FL_NORMAL_CHOICE, 375, 170, 75, 30, "");
|
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_end_form();
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->fdui = fdui;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
|
}
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
FD_form_cell_options::~FD_form_cell_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-07-11 15:08:54 +00:00
|
|
|
|
FD_form_cell_options * FormTabular::build_cell_options()
|
|
|
|
|
{
|
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
|
FD_form_cell_options *fdui = new FD_form_cell_options;
|
|
|
|
|
|
2000-10-26 09:36:33 +00:00
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 505, 225);
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->u_vdata = this;
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 505, 225, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Top|#t");
|
|
|
|
|
fdui->radio_border_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 85, 45, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_TOP_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Bottom|#b");
|
|
|
|
|
fdui->radio_border_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 85, 75, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_BOTTOM_LEFT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Left|#l");
|
|
|
|
|
fdui->radio_border_left = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 65, 60, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Right|#r");
|
|
|
|
|
fdui->radio_border_right = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 105, 60, 25, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Left|#e");
|
|
|
|
|
fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 30, 110, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Right|#i");
|
|
|
|
|
fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 80, 115, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Center|#c");
|
|
|
|
|
fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 205, 55, 115, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Top|#p");
|
|
|
|
|
fdui->radio_valign_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 30, 125, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Center|#n");
|
|
|
|
|
fdui->radio_valign_center = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 55, 125, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Bottom|#o");
|
|
|
|
|
fdui->radio_valign_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 345, 80, 120, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2000-07-11 15:08:54 +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, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 20, 170, 105, _("Borders"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 200, 20, 130, 105, _("H. Alignment"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 340, 20, 130, 105, _("V. Alignment"));
|
|
|
|
|
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_("Width|#W");
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->input_mcolumn_width = obj = fl_add_input(FL_NORMAL_INPUT, 280, 180, 95, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Alignment|#A");
|
|
|
|
|
fdui->input_special_multialign = obj = fl_add_input(FL_NORMAL_INPUT, 280, 145, 175, 30, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Multicolumn|#M");
|
|
|
|
|
fdui->radio_multicolumn = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 140, 130, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Use Minipage|#s");
|
|
|
|
|
fdui->radio_useminipage = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 165, 130, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Rotate 90<39>|#9");
|
|
|
|
|
fdui->radio_rotate_cell = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 190, 130, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 135, 150, 80, _("Special Cell"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 180, 135, 290, 80, _("Special Multicolumn"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2001-10-23 11:35:48 +00:00
|
|
|
|
fdui->choice_value_mcolumn_width = obj = fl_add_choice(FL_NORMAL_CHOICE, 380, 180, 75, 30, "");
|
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_end_form();
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->fdui = fdui;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
|
}
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
FD_form_longtable_options::~FD_form_longtable_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-07-11 15:08:54 +00:00
|
|
|
|
FD_form_longtable_options * FormTabular::build_longtable_options()
|
|
|
|
|
{
|
|
|
|
|
FL_OBJECT *obj;
|
|
|
|
|
FD_form_longtable_options *fdui = new FD_form_longtable_options;
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 505, 227);
|
|
|
|
|
fdui->form->u_vdata = this;
|
2000-08-29 01:46:59 +00:00
|
|
|
|
obj = fl_add_box(FL_FLAT_BOX, 0, 0, 505, 227, "");
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("1st Head|#1");
|
|
|
|
|
fdui->radio_lt_firsthead = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 55, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Head|#H");
|
|
|
|
|
fdui->radio_lt_head = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 30, 30, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Foot|#F");
|
|
|
|
|
fdui->radio_lt_foot = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 195, 30, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("Last Foot|#L");
|
|
|
|
|
fdui->radio_lt_lastfoot = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 195, 55, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
|
{
|
|
|
|
|
char const * const dummy = N_("New Page|#N");
|
|
|
|
|
fdui->radio_lt_newpage = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 355, 25, 90, 25, idex(_(dummy)));
|
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
|
}
|
2001-03-15 13:37:04 +00:00
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-10-26 09:36:33 +00:00
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 20, 20, 150, 75, _("Header"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 185, 20, 150, 75, _("Footer"));
|
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 345, 20, 150, 75, _("Special"));
|
2000-07-11 15:08:54 +00:00
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
fl_end_form();
|
|
|
|
|
|
2000-08-14 05:24:35 +00:00
|
|
|
|
fdui->form->fdui = fdui;
|
2000-07-11 15:08:54 +00:00
|
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
|
}
|
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|
|