1 // File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
3 #include "lyx_gui_misc.h"
6 /* Form definition file generated with fdesign. */
8 #include FORMS_H_LOCATION
10 #include "form_paragraph.h"
11 #include "FormParagraph.h"
13 FD_form_paragraph::~FD_form_paragraph()
15 if ( form->visible ) fl_hide_form( form );
20 FD_form_paragraph * FormParagraph::build_paragraph()
23 FD_form_paragraph *fdui = new FD_form_paragraph;
25 fdui->form = fl_bgn_form(FL_NO_BOX, 500, 395);
26 fdui->form->u_vdata = this;
27 obj = fl_add_box(FL_UP_BOX, 0, 0, 500, 395, "");
28 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 20, 220, 75, _("Alignment"));
29 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
30 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
32 fdui->group_radio_alignment = fl_bgn_group();
34 char const * const dummy = N_("Right|#R");
35 fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 15, 30, 80, 30, idex(_(dummy)));
36 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
38 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
39 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
41 char const * const dummy = N_("Left|#f");
42 fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 15, 60, 80, 30, idex(_(dummy)));
43 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
45 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
46 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
48 char const * const dummy = N_("Block|#c");
49 fdui->radio_align_block = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 115, 30, 80, 30, idex(_(dummy)));
50 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
52 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
53 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
55 char const * const dummy = N_("Center|#n");
56 fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON, 115, 60, 80, 30, idex(_(dummy)));
57 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
59 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
60 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
63 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 240, 20, 120, 75, _("Lines"));
64 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
65 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
67 char const * const dummy = N_("Above|#b");
68 fdui->check_lines_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 245, 30, 120, 30, idex(_(dummy)));
69 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
71 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
72 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
74 char const * const dummy = N_("Below|#E");
75 fdui->check_lines_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 245, 60, 120, 30, idex(_(dummy)));
76 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
78 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
79 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
80 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 20, 120, 75, _("Page breaks"));
81 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
82 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
84 char const * const dummy = N_("Above|#o");
85 fdui->check_pagebreaks_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 30, 120, 30, idex(_(dummy)));
86 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
88 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
89 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
91 char const * const dummy = N_("Below|#l");
92 fdui->check_pagebreaks_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 60, 120, 30, idex(_(dummy)));
93 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
95 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
96 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
97 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 110, 350, 120, _("Vertical spaces"));
98 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
99 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
101 char const * const dummy = N_("Above:|#v");
102 fdui->choice_space_above = obj = fl_add_choice(FL_NORMAL_CHOICE, 70, 135, 100, 30, idex(_(dummy)));
103 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
105 fl_set_object_boxtype(obj, FL_FRAME_BOX);
106 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
107 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
108 fdui->input_space_above = obj = fl_add_input(FL_NORMAL_INPUT, 180, 135, 90, 30, "");
109 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
110 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
112 char const * const dummy = N_("Keep|#K");
113 fdui->check_space_above = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 270, 135, 40, 30, idex(_(dummy)));
114 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
116 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
117 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
119 char const * const dummy = N_("Below:|#w");
120 fdui->choice_space_below = obj = fl_add_choice(FL_NORMAL_CHOICE, 70, 185, 100, 30, idex(_(dummy)));
121 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
123 fl_set_object_boxtype(obj, FL_FRAME_BOX);
124 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
125 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
126 fdui->input_space_below = obj = fl_add_input(FL_NORMAL_INPUT, 180, 185, 90, 30, "");
127 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
128 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
130 char const * const dummy = N_("Keep|#p");
131 fdui->check_space_below = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 270, 185, 40, 30, idex(_(dummy)));
132 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
134 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
135 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
136 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 110, 120, 120, _("Line spacing"));
137 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
138 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
139 fdui->choice_linespacing = obj = fl_add_choice(FL_NORMAL_CHOICE, 380, 135, 100, 30, "");
140 fl_set_object_boxtype(obj, FL_FRAME_BOX);
141 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
142 fdui->input_linespacing = obj = fl_add_input(FL_NORMAL_INPUT, 380, 185, 100, 30, "");
143 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
144 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 10, 245, 350, 45, _("Label Width"));
145 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
146 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
148 char const * const dummy = N_("Longest Label:|#g");
149 fdui->input_labelwidth = obj = fl_add_input(FL_NORMAL_INPUT, 125, 255, 230, 30, idex(_(dummy)));
150 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
152 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
153 fl_set_object_gravity(obj, FL_West, FL_East);
154 fl_set_object_resize(obj, FL_RESIZE_X);
155 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
156 obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 370, 245, 120, 45, _("Indent"));
157 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
158 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
160 char const * const dummy = N_("No Indent|#I");
161 fdui->check_noindent = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 375, 255, 115, 30, idex(_(dummy)));
162 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
164 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
165 fl_set_object_callback(obj, C_FormBaseDeprecatedInputCB, 0);
167 char const * const dummy = N_("Restore|#R");
168 fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 10, 305, 90, 30, idex(_(dummy)));
169 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
171 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
172 fl_set_object_callback(obj, C_FormBaseDeprecatedRestoreCB, 0);
173 fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 200, 305, 90, 30, _("OK"));
174 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
175 fl_set_object_callback(obj, C_FormBaseDeprecatedOKCB, 0);
177 char const * const dummy = N_("Apply|#A");
178 fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 300, 305, 90, 30, idex(_(dummy)));
179 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
181 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
182 fl_set_object_callback(obj, C_FormBaseDeprecatedApplyCB, 0);
184 char const * const dummy = N_("Cancel|^[");
185 fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 400, 305, 90, 30, idex(_(dummy)));
186 fl_set_button_shortcut(obj, scex(_(dummy)), 1);
188 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
189 fl_set_object_callback(obj, C_FormBaseDeprecatedCancelCB, 0);
190 obj = fl_add_frame(FL_ENGRAVED_FRAME, 10, 340, 480, 1, "");
191 fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 10, 350, 480, 35, "");
192 fl_set_object_boxtype(obj, FL_NO_BOX);
193 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
194 fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
195 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
198 fdui->form->fdui = fdui;
202 /*---------------------------------------*/