2000-09-25 15:59:27 +00:00
|
|
|
// File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
|
|
|
|
#include <config.h>
|
|
|
|
#include "lyx_gui_misc.h"
|
|
|
|
#include "gettext.h"
|
|
|
|
|
|
|
|
/* Form definition file generated with fdesign. */
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "form_paragraph.h"
|
|
|
|
#include "FormParagraph.h"
|
|
|
|
|
2001-08-29 12:52:41 +00:00
|
|
|
FD_form_paragraph::~FD_form_paragraph()
|
2000-09-25 15:59:27 +00:00
|
|
|
{
|
2000-11-07 06:41:13 +00:00
|
|
|
if ( form->visible ) fl_hide_form( form );
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_free_form( form );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2001-08-29 12:52:41 +00:00
|
|
|
FD_form_paragraph * FormParagraph::build_paragraph()
|
2000-09-25 15:59:27 +00:00
|
|
|
{
|
|
|
|
FL_OBJECT *obj;
|
2001-08-29 12:52:41 +00:00
|
|
|
FD_form_paragraph *fdui = new FD_form_paragraph;
|
2000-09-25 15:59:27 +00:00
|
|
|
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 500, 395);
|
2000-09-25 15:59:27 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 500, 395, "");
|
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 20, 220, 75, _("Alignment"));
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
|
|
|
|
fdui->group_radio_alignment = fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Right|#R");
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 15, 30, 80, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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_("Left|#f");
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 15, 60, 80, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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_("Block|#c");
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->radio_align_block = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 115, 30, 80, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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");
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 115, 60, 80, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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-09-25 15:59:27 +00:00
|
|
|
fl_end_group();
|
|
|
|
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 240, 20, 120, 75, _("Lines"));
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Above|#b");
|
|
|
|
fdui->check_lines_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 245, 30, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Below|#E");
|
|
|
|
fdui->check_lines_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 245, 60, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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);
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 20, 120, 75, _("Page breaks"));
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Above|#o");
|
|
|
|
fdui->check_pagebreaks_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 30, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Below|#l");
|
|
|
|
fdui->check_pagebreaks_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 60, 120, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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);
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 110, 350, 120, _("Vertical spaces"));
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Above:|#v");
|
|
|
|
fdui->choice_space_above = obj = fl_add_choice(FL_NORMAL_CHOICE, 70, 135, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2000-09-25 15:59:27 +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);
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->input_space_above = obj = fl_add_input(FL_NORMAL_INPUT, 180, 135, 90, 30, "");
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Keep|#K");
|
|
|
|
fdui->check_space_above = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 270, 135, 40, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Below:|#w");
|
|
|
|
fdui->choice_space_below = obj = fl_add_choice(FL_NORMAL_CHOICE, 70, 185, 100, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2000-09-25 15:59:27 +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);
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->input_space_below = obj = fl_add_input(FL_NORMAL_INPUT, 180, 185, 90, 30, "");
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Keep|#p");
|
|
|
|
fdui->check_space_below = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 270, 185, 40, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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);
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 110, 120, 120, _("Line spacing"));
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
|
|
|
fdui->choice_linespacing = obj = fl_add_choice(FL_NORMAL_CHOICE, 380, 135, 100, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->input_linespacing = obj = fl_add_input(FL_NORMAL_INPUT, 380, 185, 100, 30, "");
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2001-09-10 12:25:40 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 245, 350, 45, _("Label Width"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-09-10 12:25:40 +00:00
|
|
|
char const * const dummy = N_("Longest Label:|#g");
|
|
|
|
fdui->input_labelwidth = obj = fl_add_input(FL_NORMAL_INPUT, 125, 255, 230, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_gravity(obj, FL_West, FL_East);
|
|
|
|
fl_set_object_resize(obj, FL_RESIZE_X);
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2001-08-29 12:52:41 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 245, 120, 45, _("Indent"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_lstyle(obj, FL_BOLD_STYLE);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("No Indent|#I");
|
2001-09-10 12:25:40 +00:00
|
|
|
fdui->check_noindent = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 255, 115, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Restore|#R");
|
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 305, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedRestoreCB, 0);
|
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 200, 305, 90, 30, _("OK"));
|
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedOKCB, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Apply|#A");
|
2001-08-29 12:52:41 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 300, 305, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +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, 0);
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
2001-08-29 12:52:41 +00:00
|
|
|
char const * const dummy = N_("Cancel|^[");
|
|
|
|
fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 400, 305, 90, 30, idex(_(dummy)));
|
2000-12-06 22:24:17 +00:00
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_set_object_lsize(obj, FL_NORMAL_SIZE);
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedCancelCB, 0);
|
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 10, 340, 480, 1, "");
|
|
|
|
fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 10, 350, 480, 35, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_NO_BOX);
|
2000-09-26 10:25:49 +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);
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
|
|
|
|