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>
|
2001-11-26 10:19:58 +00:00
|
|
|
#include "xforms_helpers.h"
|
2000-09-25 15:59:27 +00:00
|
|
|
#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-10-23 09:04:46 +00:00
|
|
|
fdui->form = fl_bgn_form(FL_NO_BOX, 500, 450);
|
2000-09-25 15:59:27 +00:00
|
|
|
fdui->form->u_vdata = this;
|
2001-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_box(FL_UP_BOX, 0, 0, 500, 450, "");
|
2001-08-29 12:52:41 +00:00
|
|
|
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);
|
2002-03-12 14:11:15 +00:00
|
|
|
fl_bgn_group();
|
2000-12-06 22:24:17 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Right|#R");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_align_right = obj = fl_add_round3dbutton(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);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
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");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_align_left = obj = fl_add_round3dbutton(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);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
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");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_align_block = obj = fl_add_round3dbutton(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);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
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");
|
2002-01-07 11:28:09 +00:00
|
|
|
fdui->radio_align_center = obj = fl_add_round3dbutton(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);
|
|
|
|
}
|
2002-01-07 11:28:09 +00:00
|
|
|
fl_set_object_color(obj, FL_COL1, FL_YELLOW);
|
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-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 110, 480, 105, _("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");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->choice_space_above = obj = fl_add_choice(FL_NORMAL_CHOICE, 80, 130, 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-10-23 09:04:46 +00:00
|
|
|
fdui->input_space_above = obj = fl_add_input(FL_NORMAL_INPUT, 190, 130, 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");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->check_space_above = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 130, 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");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->choice_space_below = obj = fl_add_choice(FL_NORMAL_CHOICE, 80, 170, 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-10-23 09:04:46 +00:00
|
|
|
fdui->input_space_below = obj = fl_add_input(FL_NORMAL_INPUT, 190, 170, 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");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->check_space_below = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 170, 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-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 230, 345, 55, _("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);
|
2001-10-23 09:04:46 +00:00
|
|
|
{
|
|
|
|
char const * const dummy = N_("Spacing:|#S");
|
|
|
|
fdui->choice_linespacing = obj = fl_add_choice(FL_NORMAL_CHOICE, 80, 245, 100, 30, idex(_(dummy)));
|
|
|
|
fl_set_button_shortcut(obj, scex(_(dummy)), 1);
|
|
|
|
}
|
2001-08-29 12:52:41 +00:00
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
2001-10-23 09:04:46 +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-10-23 09:04:46 +00:00
|
|
|
fdui->input_linespacing = obj = fl_add_input(FL_NORMAL_INPUT, 190, 245, 155, 30, "");
|
2001-03-15 13:37:04 +00:00
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2001-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 300, 480, 50, _("Label Width"));
|
2001-09-10 12:25:40 +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-09-10 12:25:40 +00:00
|
|
|
char const * const dummy = N_("Longest Label:|#g");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->input_labelwidth = obj = fl_add_input(FL_NORMAL_INPUT, 125, 310, 355, 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-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 365, 230, 125, 55, _("Indent"));
|
2001-08-29 12:52:41 +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_("No Indent|#I");
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->check_noindent = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 245, 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");
|
2001-11-21 17:03:13 +00:00
|
|
|
fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 360, 100, 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);
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 200, 360, 90, 30, _("OK"));
|
2001-08-29 12:52:41 +00:00
|
|
|
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-10-23 09:04:46 +00:00
|
|
|
fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 300, 360, 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|^[");
|
2002-03-12 14:11:15 +00:00
|
|
|
fdui->button_close = obj = fl_add_button(FL_NORMAL_BUTTON, 400, 360, 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);
|
2001-10-23 09:04:46 +00:00
|
|
|
obj = fl_add_frame(FL_ENGRAVED_FRAME, 10, 395, 480, 1, "");
|
|
|
|
fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 10, 405, 480, 35, "");
|
2001-08-29 12:52:41 +00:00
|
|
|
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);
|
2001-10-23 09:04:46 +00:00
|
|
|
fdui->choice_value_space_above = obj = fl_add_choice(FL_NORMAL_CHOICE, 290, 130, 65, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
|
|
|
fdui->choice_value_space_below = obj = fl_add_choice(FL_NORMAL_CHOICE, 290, 170, 65, 30, "");
|
|
|
|
fl_set_object_boxtype(obj, FL_FRAME_BOX);
|
|
|
|
fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
|
2000-09-25 15:59:27 +00:00
|
|
|
fl_end_form();
|
|
|
|
|
|
|
|
fdui->form->fdui = fdui;
|
|
|
|
|
|
|
|
return fdui;
|
|
|
|
}
|
|
|
|
/*---------------------------------------*/
|
2002-03-21 21:52:48 +00:00
|
|
|
|