home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / layout_forms.C < prev    next >
C/C++ Source or Header  |  1998-04-23  |  40KB  |  665 lines

  1. // File modified by fdfix.sh for use by lyx (with xforms 0.81) and gettext
  2. #include <config.h>
  3. #include "lyx_gui_misc.h"
  4. #include "gettext.h"
  5.  
  6. /* Form definition file generated with fdesign. */
  7.  
  8. #include FORMS_H_LOCATION
  9. #include <stdlib.h>
  10. #include "layout_forms.h"
  11.  
  12. FD_form_document *create_form_form_document(void)
  13. {
  14.   FL_OBJECT *obj;
  15.   FD_form_document *fdui = (FD_form_document *) fl_calloc(1, sizeof(*fdui));
  16.  
  17.   fdui->form_document = fl_bgn_form(FL_NO_BOX, 580, 430);
  18.   obj = fl_add_box(FL_UP_BOX,0,0,580,430,"");
  19.   obj = fl_add_frame(FL_ENGRAVED_FRAME,290,110,120,70,"");
  20.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  21.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  22.   obj = fl_add_text(FL_NORMAL_TEXT,300,100,100,20,_("Separation"));
  23.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  24.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  25.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  26.  
  27.   fdui->group_radio_separation = fl_bgn_group();
  28.   fdui->radio_indent = obj = fl_add_checkbutton(FL_RADIO_BUTTON,290,120,110,30,idex(_("Indent|#I")));fl_set_button_shortcut(obj,scex(_("Indent|#I")),1);
  29.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  30.   fdui->radio_skip = obj = fl_add_checkbutton(FL_RADIO_BUTTON,290,150,110,30,idex(_("Skip|#K")));fl_set_button_shortcut(obj,scex(_("Skip|#K")),1);
  31.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  32.   fl_end_group();
  33.  
  34.   fdui->choice_class = obj = fl_add_choice(FL_NORMAL_CHOICE,120,20,160,30,idex(_("Class:|#C")));fl_set_button_shortcut(obj,scex(_("Class:|#C")),1);
  35.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  36.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  37.     fl_set_object_callback(obj,ChoiceClassCB,0);
  38.   fdui->choice_pagestyle = obj = fl_add_choice(FL_NORMAL_CHOICE,120,60,160,30,idex(_("Pagestyle:|#P")));fl_set_button_shortcut(obj,scex(_("Pagestyle:|#P")),1);
  39.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  40.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  41.   fdui->choice_fonts = obj = fl_add_choice(FL_NORMAL_CHOICE,120,110,160,30,idex(_("Fonts:|#F")));fl_set_button_shortcut(obj,scex(_("Fonts:|#F")),1);
  42.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  43.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  44.   fdui->choice_fontsize = obj = fl_add_choice(FL_NORMAL_CHOICE,120,150,160,30,idex(_("Font Size:|#O")));fl_set_button_shortcut(obj,scex(_("Font Size:|#O")),1);
  45.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  46.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  47.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,470,390,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  48.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  49.     fl_set_object_callback(obj,DocumentCancelCB,0);
  50.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,360,390,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  51.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  52.     fl_set_object_callback(obj,DocumentApplyCB,0);
  53.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,250,390,100,30,_("OK"));
  54.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  55.     fl_set_object_callback(obj,DocumentOKCB,0);
  56.   fdui->input_float_placement = obj = fl_add_input(FL_NORMAL_INPUT,450,195,120,30,idex(_("Float Placement:|#L")));fl_set_button_shortcut(obj,scex(_("Float Placement:|#L")),1);
  57.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  58.   fdui->choice_postscript_driver = obj = fl_add_choice(FL_NORMAL_CHOICE,120,230,190,30,idex(_("PS Driver:|#S")));fl_set_button_shortcut(obj,scex(_("PS Driver:|#S")),1);
  59.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  60.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  61.   fdui->choice_inputenc = obj = fl_add_choice(FL_NORMAL_CHOICE,120,270,190,30,idex(_("Encoding:|#D")));fl_set_button_shortcut(obj,scex(_("Encoding:|#D")),1);
  62.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  63.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  64.   obj = fl_add_frame(FL_ENGRAVED_FRAME,290,20,122,70,"");
  65.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  66.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  67.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  68.   obj = fl_add_frame(FL_ENGRAVED_FRAME,432,20,136,70,"");
  69.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  70.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  71.  
  72.   fdui->group_radio_sides = fl_bgn_group();
  73.   fdui->radio_sides_one = obj = fl_add_checkbutton(FL_RADIO_BUTTON,290,30,120,30,idex(_("One|#n")));fl_set_button_shortcut(obj,scex(_("One|#n")),1);
  74.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  75.   fdui->radio_sides_two = obj = fl_add_checkbutton(FL_RADIO_BUTTON,290,60,120,30,idex(_("Two|#T")));fl_set_button_shortcut(obj,scex(_("Two|#T")),1);
  76.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  77.   fl_end_group();
  78.  
  79.   obj = fl_add_text(FL_NORMAL_TEXT,300,10,60,20,_("Sides"));
  80.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  81.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  82.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  83.   obj = fl_add_text(FL_NORMAL_TEXT,440,10,80,20,_("Columns"));
  84.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  85.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  86.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  87.  
  88.   fdui->group_radio_columns = fl_bgn_group();
  89.   fdui->radio_columns_one = obj = fl_add_checkbutton(FL_RADIO_BUTTON,432,30,110,30,idex(_("One|#e")));fl_set_button_shortcut(obj,scex(_("One|#e")),1);
  90.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  91.   fdui->radio_columns_two = obj = fl_add_checkbutton(FL_RADIO_BUTTON,432,60,110,30,idex(_("Two|#w")));fl_set_button_shortcut(obj,scex(_("Two|#w")),1);
  92.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  93.   fl_end_group();
  94.  
  95.   fdui->input_extra = obj = fl_add_input(FL_NORMAL_INPUT,450,235,120,30,idex(_("Extra Options:|#X")));fl_set_button_shortcut(obj,scex(_("Extra Options:|#X")),1);
  96.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  97.   fdui->choice_language = obj = fl_add_box(FL_FRAME_BOX,120,190,190,30,_("Language:"));
  98.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  99.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  100.   fdui->input_default_skip = obj = fl_add_input(FL_NORMAL_INPUT,220,310,90,30,"");
  101.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  102.     fl_set_object_callback(obj,DocumentDefskipCB,0);
  103.   fdui->choice_default_skip = obj = fl_add_choice(FL_NORMAL_CHOICE,120,310,90,30,idex(_("Default Skip:|#u")));fl_set_button_shortcut(obj,scex(_("Default Skip:|#u")),1);
  104.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  105.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  106.     fl_set_object_callback(obj,DocumentDefskipCB,0);
  107.   fdui->slider_secnumdepth = obj = fl_add_counter(FL_SIMPLE_COUNTER,490,275,80,30,_("Section number depth"));
  108.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  109.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  110.   fdui->slider_tocdepth = obj = fl_add_counter(FL_SIMPLE_COUNTER,490,315,80,30,_("Table of contents depth"));
  111.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  112.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  113.   fdui->choice_spacing = obj = fl_add_choice(FL_NORMAL_CHOICE,120,350,120,30,idex(_("Spacing|#g")));fl_set_button_shortcut(obj,scex(_("Spacing|#g")),1);
  114.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  115.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  116.   fdui->button_bullets = obj = fl_add_button(FL_NORMAL_BUTTON,430,110,130,30,idex(_("Bullet Shapes|#B")));fl_set_button_shortcut(obj,scex(_("Bullet Shapes|#B")),1);
  117.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  118.     fl_set_object_callback(obj,DocumentBulletsCB,0);
  119.   fdui->check_use_amsmath = obj = fl_add_checkbutton(FL_PUSH_BUTTON,430,145,120,30,idex(_("Use AMS Math|#M")));fl_set_button_shortcut(obj,scex(_("Use AMS Math|#M")),1);
  120.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  121.   fl_end_form();
  122.  
  123.   fdui->form_document->fdui = fdui;
  124.  
  125.   return fdui;
  126. }
  127. /*---------------------------------------*/
  128.  
  129. FD_form_character *create_form_form_character(void)
  130. {
  131.   FL_OBJECT *obj;
  132.   FD_form_character *fdui = (FD_form_character *) fl_calloc(1, sizeof(*fdui));
  133.  
  134.   fdui->form_character = fl_bgn_form(FL_NO_BOX, 280, 290);
  135.   obj = fl_add_box(FL_UP_BOX,0,0,280,290,"");
  136.   fdui->choice_family = obj = fl_add_choice(FL_NORMAL_CHOICE,80,10,190,30,idex(_("Family:|#F")));fl_set_button_shortcut(obj,scex(_("Family:|#F")),1);
  137.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  138.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  139.   fdui->choice_series = obj = fl_add_choice(FL_NORMAL_CHOICE,80,50,190,30,idex(_("Series:|#S")));fl_set_button_shortcut(obj,scex(_("Series:|#S")),1);
  140.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  141.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  142.   fdui->choice_shape = obj = fl_add_choice(FL_NORMAL_CHOICE,80,90,190,30,idex(_("Shape:|#H")));fl_set_button_shortcut(obj,scex(_("Shape:|#H")),1);
  143.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  144.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  145.   fdui->choice_size = obj = fl_add_choice(FL_NORMAL_CHOICE,80,130,190,30,idex(_("Size:|#Z")));fl_set_button_shortcut(obj,scex(_("Size:|#Z")),1);
  146.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  147.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  148.   fdui->choice_bar = obj = fl_add_choice(FL_NORMAL_CHOICE,80,170,190,30,idex(_("Misc:|#M")));fl_set_button_shortcut(obj,scex(_("Misc:|#M")),1);
  149.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  150.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  151.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,10,250,80,30,_("OK"));
  152.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  153.     fl_set_object_callback(obj,CharacterOKCB,0);
  154.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,100,250,80,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  155.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  156.     fl_set_object_callback(obj,CharacterApplyCB,0);
  157.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,190,250,80,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  158.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  159.     fl_set_object_callback(obj,CharacterCancelCB,0);
  160.   fdui->choice_color = obj = fl_add_choice(FL_NORMAL_CHOICE,80,210,190,30,idex(_("Color:|#C")));fl_set_button_shortcut(obj,scex(_("Color:|#C")),1);
  161.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  162.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  163.   fl_end_form();
  164.  
  165.   fdui->form_character->fdui = fdui;
  166.  
  167.   return fdui;
  168. }
  169. /*---------------------------------------*/
  170.  
  171. FD_form_paragraph *create_form_form_paragraph(void)
  172. {
  173.   FL_OBJECT *obj;
  174.   FD_form_paragraph *fdui = (FD_form_paragraph *) fl_calloc(1, sizeof(*fdui));
  175.  
  176.   fdui->form_paragraph = fl_bgn_form(FL_NO_BOX, 490, 290);
  177.   obj = fl_add_box(FL_UP_BOX,0,0,490,290,"");
  178.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,127,250,100,30,_("OK"));
  179.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  180.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  181.     fl_set_object_callback(obj,ParagraphOKCB,0);
  182.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,244,250,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  183.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  184.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  185.     fl_set_object_callback(obj,ParagraphApplyCB,0);
  186.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,360,250,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  187.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  188.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  189.     fl_set_object_callback(obj,ParagraphCancelCB,0);
  190.   obj = fl_add_frame(FL_ENGRAVED_FRAME,360,110,120,50,"");
  191.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  192.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,110,340,90,"");
  193.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  194.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  195.   obj = fl_add_frame(FL_ENGRAVED_FRAME,360,20,120,70,"");
  196.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  197.   obj = fl_add_frame(FL_ENGRAVED_FRAME,210,20,140,70,"");
  198.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  199.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,20,190,70,"");
  200.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  201.   fdui->input_labelwidth = obj = fl_add_input(FL_NORMAL_INPUT,100,210,360,30,idex(_("Label Width:|#d")));fl_set_button_shortcut(obj,scex(_("Label Width:|#d")),1);
  202.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  203.     fl_set_object_gravity(obj, FL_West, FL_East);
  204.     fl_set_object_resize(obj, FL_RESIZE_X);
  205.   obj = fl_add_text(FL_NORMAL_TEXT,370,100,60,20,_("Indent"));
  206.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  207.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  208.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  209.   fdui->check_lines_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON,230,30,120,30,idex(_("Above|#b")));fl_set_button_shortcut(obj,scex(_("Above|#b")),1);
  210.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  211.   fdui->check_lines_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON,230,60,120,30,idex(_("Below|#E")));fl_set_button_shortcut(obj,scex(_("Below|#E")),1);
  212.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  213.   fdui->check_pagebreaks_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON,360,30,120,30,idex(_("Above|#o")));fl_set_button_shortcut(obj,scex(_("Above|#o")),1);
  214.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  215.   fdui->check_pagebreaks_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON,360,60,120,30,idex(_("Below|#l")));fl_set_button_shortcut(obj,scex(_("Below|#l")),1);
  216.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  217.   fdui->check_noindent = obj = fl_add_checkbutton(FL_PUSH_BUTTON,360,120,120,30,idex(_("No Indent|#I")));fl_set_button_shortcut(obj,scex(_("No Indent|#I")),1);
  218.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  219.  
  220.   fdui->group_radio_alignment = fl_bgn_group();
  221.   fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,30,80,30,idex(_("Right|#R")));fl_set_button_shortcut(obj,scex(_("Right|#R")),1);
  222.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  223.   fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON,10,60,80,30,idex(_("Left|#f")));fl_set_button_shortcut(obj,scex(_("Left|#f")),1);
  224.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  225.   fdui->radio_align_block = obj = fl_add_checkbutton(FL_RADIO_BUTTON,100,30,80,30,idex(_("Block|#c")));fl_set_button_shortcut(obj,scex(_("Block|#c")),1);
  226.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  227.   fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON,100,60,80,30,idex(_("Center|#n")));fl_set_button_shortcut(obj,scex(_("Center|#n")),1);
  228.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  229.   fl_end_group();
  230.  
  231.   fdui->input_space_above = obj = fl_add_input(FL_NORMAL_INPUT,180,120,90,30,"");
  232.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  233.     fl_set_object_callback(obj,ParagraphVSpaceCB,0);
  234.   fdui->input_space_below = obj = fl_add_input(FL_NORMAL_INPUT,180,160,90,30,"");
  235.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  236.     fl_set_object_callback(obj,ParagraphVSpaceCB,0);
  237.   fdui->choice_space_above = obj = fl_add_choice(FL_NORMAL_CHOICE,70,120,100,30,idex(_("Above:|#v")));fl_set_button_shortcut(obj,scex(_("Above:|#v")),1);
  238.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  239.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  240.     fl_set_object_callback(obj,ParagraphVSpaceCB,0);
  241.   fdui->choice_space_below = obj = fl_add_choice(FL_NORMAL_CHOICE,70,160,100,30,idex(_("Below:|#w")));fl_set_button_shortcut(obj,scex(_("Below:|#w")),1);
  242.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  243.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  244.     fl_set_object_callback(obj,ParagraphVSpaceCB,0);
  245.   obj = fl_add_text(FL_NORMAL_TEXT,370,10,100,20,_("Pagebreaks"));
  246.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  247.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  248.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  249.   obj = fl_add_text(FL_NORMAL_TEXT,230,10,50,20,_("Lines"));
  250.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  251.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  252.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  253.   obj = fl_add_text(FL_NORMAL_TEXT,20,10,80,20,_("Alignment"));
  254.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  255.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  256.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  257.   obj = fl_add_text(FL_NORMAL_TEXT,20,100,130,20,_("Vertical Spaces"));
  258.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  259.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  260.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  261.   fdui->button_pextra = obj = fl_add_button(FL_NORMAL_BUTTON,10,250,100,30,idex(_("ExtraOpt|#X")));fl_set_button_shortcut(obj,scex(_("ExtraOpt|#X")),1);
  262.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  263.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  264.     fl_set_object_callback(obj,ParagraphExtraOpen,0);
  265.   fdui->check_space_above = obj = fl_add_checkbutton(FL_PUSH_BUTTON,270,120,40,30,idex(_("Keep|#K")));fl_set_button_shortcut(obj,scex(_("Keep|#K")),1);
  266.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  267.   fdui->check_space_below = obj = fl_add_checkbutton(FL_PUSH_BUTTON,270,160,40,30,idex(_("Keep|#p")));fl_set_button_shortcut(obj,scex(_("Keep|#p")),1);
  268.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  269.   fl_end_form();
  270.  
  271.   fdui->form_paragraph->fdui = fdui;
  272.  
  273.   return fdui;
  274. }
  275. /*---------------------------------------*/
  276.  
  277. FD_form_preamble *create_form_form_preamble(void)
  278. {
  279.   FL_OBJECT *obj;
  280.   FD_form_preamble *fdui = (FD_form_preamble *) fl_calloc(1, sizeof(*fdui));
  281.  
  282.   fdui->form_preamble = fl_bgn_form(FL_NO_BOX, 380, 420);
  283.   obj = fl_add_box(FL_UP_BOX,0,0,380,420,"");
  284.   fdui->button_ok = obj = fl_add_button(FL_NORMAL_BUTTON,50,380,100,30,idex(_("OK|#O")));fl_set_button_shortcut(obj,scex(_("OK|#O")),1);
  285.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  286.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  287.     fl_set_object_callback(obj,PreambleOKCB,0);
  288.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,160,380,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  289.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  290.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  291.     fl_set_object_callback(obj,PreambleApplyCB,0);
  292.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,270,380,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  293.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  294.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  295.     fl_set_object_callback(obj,PreambleCancelCB,0);
  296.   fdui->input_preamble = obj = fl_add_input(FL_MULTILINE_INPUT,10,10,360,360,"");
  297.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  298.     fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
  299.   fl_end_form();
  300.  
  301.   fdui->form_preamble->fdui = fdui;
  302.  
  303.   return fdui;
  304. }
  305. /*---------------------------------------*/
  306.  
  307. FD_form_quotes *create_form_form_quotes(void)
  308. {
  309.   FL_OBJECT *obj;
  310.   FD_form_quotes *fdui = (FD_form_quotes *) fl_calloc(1, sizeof(*fdui));
  311.  
  312.   fdui->form_quotes = fl_bgn_form(FL_NO_BOX, 340, 130);
  313.   obj = fl_add_box(FL_UP_BOX,0,0,340,130,"");
  314.   obj = fl_add_button(FL_RETURN_BUTTON,10,90,100,30,_("OK"));
  315.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  316.     fl_set_object_callback(obj,QuotesOKCB,0);
  317.   obj = fl_add_button(FL_NORMAL_BUTTON,120,90,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  318.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  319.     fl_set_object_callback(obj,QuotesApplyCB,0);
  320.   obj = fl_add_button(FL_NORMAL_BUTTON,230,90,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  321.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  322.     fl_set_object_callback(obj,QuotesCancelCB,0);
  323.   fdui->choice_quotes_language = obj = fl_add_choice(FL_NORMAL_CHOICE,90,10,160,30,idex(_("Type:|#T")));fl_set_button_shortcut(obj,scex(_("Type:|#T")),1);
  324.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  325.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  326.  
  327.   fdui->group_radio_quotes_number = fl_bgn_group();
  328.   fdui->radio_single = obj = fl_add_checkbutton(FL_RADIO_BUTTON,90,50,80,30,idex(_("Single|#S")));fl_set_button_shortcut(obj,scex(_("Single|#S")),1);
  329.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  330.   fdui->radio_double = obj = fl_add_checkbutton(FL_RADIO_BUTTON,170,50,80,30,idex(_("Double|#D")));fl_set_button_shortcut(obj,scex(_("Double|#D")),1);
  331.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  332.   fl_end_group();
  333.  
  334.   obj = fl_add_text(FL_NORMAL_TEXT,290,230,10,10,_("Text"));
  335.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  336.   fl_end_form();
  337.  
  338.   fdui->form_quotes->fdui = fdui;
  339.  
  340.   return fdui;
  341. }
  342. /*---------------------------------------*/
  343.  
  344. FD_form_paper *create_form_form_paper(void)
  345. {
  346.   FL_OBJECT *obj;
  347.   FD_form_paper *fdui = (FD_form_paper *) fl_calloc(1, sizeof(*fdui));
  348.  
  349.   fdui->form_paper = fl_bgn_form(FL_NO_BOX, 440, 430);
  350.   obj = fl_add_box(FL_UP_BOX,0,0,440,430,"");
  351.   obj = fl_add_frame(FL_ENGRAVED_FRAME,230,100,200,100,"");
  352.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  353.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  354.   fdui->choice_paperpackage = obj = fl_add_choice(FL_NORMAL_CHOICE,290,20,140,30,idex(_("Special:|#S")));fl_set_button_shortcut(obj,scex(_("Special:|#S")),1);
  355.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  356.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  357.     fl_set_object_callback(obj,PaperMarginsCB,0);
  358.   obj = fl_add_frame(FL_ENGRAVED_FRAME,230,220,200,130,"");
  359.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  360.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  361.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,180,190,170,"");
  362.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  363.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  364.   obj = fl_add_text(FL_NORMAL_TEXT,20,170,70,20,_("Margins"));
  365.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  366.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  367.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  368.   obj = fl_add_text(FL_NORMAL_TEXT,240,210,160,20,_("Foot/Head Margins"));
  369.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  370.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  371.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  372.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,320,390,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  373.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  374.     fl_set_object_callback(obj,PaperCancelCB,0);
  375.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,210,390,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  376.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  377.     fl_set_object_callback(obj,PaperApplyCB,0);
  378.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,100,390,100,30,_("OK"));
  379.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  380.     fl_set_object_callback(obj,PaperOKCB,0);
  381.   obj = fl_add_frame(FL_ENGRAVED_FRAME,440,360,10,10,"");
  382.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  383.   obj = fl_add_frame(FL_ENGRAVED_FRAME,440,350,10,10,"");
  384.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  385.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,100,190,70,"");
  386.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  387.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  388.   obj = fl_add_text(FL_NORMAL_TEXT,20,90,95,20,_("Orientation"));
  389.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  390.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  391.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  392.  
  393.   fdui->greoup_radio_orientation = fl_bgn_group();
  394.   fdui->radio_portrait = obj = fl_add_checkbutton(FL_RADIO_BUTTON,20,105,120,30,idex(_("Portrait|#o")));fl_set_button_shortcut(obj,scex(_("Portrait|#o")),1);
  395.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  396.   fdui->radio_landscape = obj = fl_add_checkbutton(FL_RADIO_BUTTON,20,135,120,30,idex(_("Landscape|#L")));fl_set_button_shortcut(obj,scex(_("Landscape|#L")),1);
  397.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  398.   fl_end_group();
  399.  
  400.   fdui->choice_papersize2 = obj = fl_add_choice(FL_NORMAL_CHOICE,70,20,160,30,idex(_("Papersize:|#P")));fl_set_button_shortcut(obj,scex(_("Papersize:|#P")),1);
  401.     fl_set_object_boxtype(obj,FL_FRAME_BOX);
  402.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  403.     fl_set_object_callback(obj,PaperMarginsCB,0);
  404.   obj = fl_add_text(FL_NORMAL_TEXT,240,90,150,20,_("Custom Papersize"));
  405.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  406.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  407.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  408.   fdui->push_use_geometry = obj = fl_add_checkbutton(FL_PUSH_BUTTON,20,55,170,30,idex(_("Use Geometry Package|#U")));fl_set_button_shortcut(obj,scex(_("Use Geometry Package|#U")),1);
  409.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  410.   fdui->input_custom_width = obj = fl_add_input(FL_NORMAL_INPUT,330,115,90,30,idex(_("Width:|#W")));fl_set_button_shortcut(obj,scex(_("Width:|#W")),1);
  411.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  412.     fl_set_object_callback(obj,PaperMarginsCB,0);
  413.   fdui->input_custom_height = obj = fl_add_input(FL_NORMAL_INPUT,330,155,90,30,idex(_("Height:|#H")));fl_set_button_shortcut(obj,scex(_("Height:|#H")),1);
  414.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  415.     fl_set_object_callback(obj,PaperMarginsCB,0);
  416.   fdui->input_top_margin = obj = fl_add_input(FL_NORMAL_INPUT,100,190,90,30,idex(_("Top:|#T")));fl_set_button_shortcut(obj,scex(_("Top:|#T")),1);
  417.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  418.     fl_set_object_callback(obj,PaperMarginsCB,0);
  419.   fdui->input_bottom_margin = obj = fl_add_input(FL_NORMAL_INPUT,100,230,90,30,idex(_("Bottom:|#B")));fl_set_button_shortcut(obj,scex(_("Bottom:|#B")),1);
  420.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  421.     fl_set_object_callback(obj,PaperMarginsCB,0);
  422.   fdui->input_left_margin = obj = fl_add_input(FL_NORMAL_INPUT,100,270,90,30,idex(_("Left:|#e")));fl_set_button_shortcut(obj,scex(_("Left:|#e")),1);
  423.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  424.     fl_set_object_callback(obj,PaperMarginsCB,0);
  425.   fdui->input_right_margin = obj = fl_add_input(FL_NORMAL_INPUT,100,310,90,30,idex(_("Right:|#R")));fl_set_button_shortcut(obj,scex(_("Right:|#R")),1);
  426.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  427.     fl_set_object_callback(obj,PaperMarginsCB,0);
  428.   fdui->input_head_height = obj = fl_add_input(FL_NORMAL_INPUT,330,230,90,30,idex(_("Headheight:|#i")));fl_set_button_shortcut(obj,scex(_("Headheight:|#i")),1);
  429.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  430.     fl_set_object_callback(obj,PaperMarginsCB,0);
  431.   fdui->input_head_sep = obj = fl_add_input(FL_NORMAL_INPUT,330,270,90,30,idex(_("Headsep:|#d")));fl_set_button_shortcut(obj,scex(_("Headsep:|#d")),1);
  432.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  433.     fl_set_object_callback(obj,PaperMarginsCB,0);
  434.   fdui->input_foot_skip = obj = fl_add_input(FL_NORMAL_INPUT,330,310,90,30,idex(_("Footskip:|#F")));fl_set_button_shortcut(obj,scex(_("Footskip:|#F")),1);
  435.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  436.     fl_set_object_callback(obj,PaperMarginsCB,0);
  437.   fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT,10,360,420,20,"");
  438.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  439.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  440.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  441.   fl_end_form();
  442.  
  443.   fdui->form_paper->fdui = fdui;
  444.  
  445.   return fdui;
  446. }
  447. /*---------------------------------------*/
  448.  
  449. FD_form_table_options *create_form_form_table_options(void)
  450. {
  451.   FL_OBJECT *obj;
  452.   FD_form_table_options *fdui = (FD_form_table_options *) fl_calloc(1, sizeof(*fdui));
  453.  
  454.   fdui->form_table_options = fl_bgn_form(FL_NO_BOX, 540, 310);
  455.   obj = fl_add_box(FL_UP_BOX,0,0,540,310,"");
  456.   obj = fl_add_frame(FL_ENGRAVED_FRAME,300,120,110,60,"");
  457.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  458.   obj = fl_add_frame(FL_ENGRAVED_FRAME,300,20,110,90,"");
  459.   fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT,20,275,330,30,"");
  460.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  461.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  462.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  463.   fdui->button_close = obj = fl_add_button(FL_RETURN_BUTTON,420,270,100,30,_("Close"));
  464.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  465.     fl_set_object_callback(obj,TableOptCloseCB,0);
  466.   obj = fl_add_frame(FL_ENGRAVED_FRAME,20,20,145,105,"");
  467.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  468.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  469.   obj = fl_add_text(FL_NORMAL_TEXT,30,10,70,20,_("Borders"));
  470.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  471.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  472.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  473.   fdui->radio_border_top = obj = fl_add_checkbutton(FL_PUSH_BUTTON,75,45,25,25,idex(_("Top|#T")));fl_set_button_shortcut(obj,scex(_("Top|#T")),1);
  474.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  475.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  476.     fl_set_object_callback(obj,TableOptionsCB,0);
  477.   fdui->radio_border_bottom = obj = fl_add_checkbutton(FL_PUSH_BUTTON,75,75,25,25,idex(_("Bottom|#B")));fl_set_button_shortcut(obj,scex(_("Bottom|#B")),1);
  478.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  479.     fl_set_object_lalign(obj,FL_ALIGN_BOTTOM_LEFT);
  480.     fl_set_object_callback(obj,TableOptionsCB,0);
  481.   fdui->radio_border_left = obj = fl_add_checkbutton(FL_PUSH_BUTTON,55,60,25,25,idex(_("Left|#L")));fl_set_button_shortcut(obj,scex(_("Left|#L")),1);
  482.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  483.     fl_set_object_lalign(obj,FL_ALIGN_LEFT);
  484.     fl_set_object_callback(obj,TableOptionsCB,0);
  485.   fdui->radio_border_right = obj = fl_add_checkbutton(FL_PUSH_BUTTON,95,60,25,25,idex(_("Right|#R")));fl_set_button_shortcut(obj,scex(_("Right|#R")),1);
  486.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  487.     fl_set_object_lalign(obj,FL_ALIGN_RIGHT);
  488.     fl_set_object_callback(obj,TableOptionsCB,0);
  489.   obj = fl_add_frame(FL_ENGRAVED_FRAME,175,20,110,105,"");
  490.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  491.   obj = fl_add_text(FL_NORMAL_TEXT,180,10,90,20,_("Alignment"));
  492.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  493.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  494.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  495.   obj = fl_add_text(FL_NORMAL_TEXT,300,10,100,20,_("Special Cell"));
  496.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  497.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  498.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  499.   fdui->radio_multicolumn = obj = fl_add_checkbutton(FL_PUSH_BUTTON,300,30,95,25,idex(_("Multicolumn|#M")));fl_set_button_shortcut(obj,scex(_("Multicolumn|#M")),1);
  500.     fl_set_object_callback(obj,TableOptionsCB,0);
  501.   fdui->button_append_column = obj = fl_add_button(FL_NORMAL_BUTTON,10,170,120,30,idex(_("Append Column|#A")));fl_set_button_shortcut(obj,scex(_("Append Column|#A")),1);
  502.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  503.     fl_set_object_callback(obj,TableOptionsCB,0);
  504.   fdui->button_delete_column = obj = fl_add_button(FL_NORMAL_BUTTON,140,170,120,30,idex(_("Delete Column|#O")));fl_set_button_shortcut(obj,scex(_("Delete Column|#O")),1);
  505.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  506.     fl_set_object_callback(obj,TableOptionsCB,0);
  507.   fdui->button_append_row = obj = fl_add_button(FL_NORMAL_BUTTON,10,200,120,30,idex(_("Append Row|#p")));fl_set_button_shortcut(obj,scex(_("Append Row|#p")),1);
  508.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  509.     fl_set_object_callback(obj,TableOptionsCB,0);
  510.   fdui->button_delete_row = obj = fl_add_button(FL_NORMAL_BUTTON,140,200,120,30,idex(_("Delete Row|#w")));fl_set_button_shortcut(obj,scex(_("Delete Row|#w")),1);
  511.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  512.     fl_set_object_callback(obj,TableOptionsCB,0);
  513.   fdui->button_table_delete = obj = fl_add_button(FL_NORMAL_BUTTON,10,240,250,30,idex(_("Delete Table|#D")));fl_set_button_shortcut(obj,scex(_("Delete Table|#D")),1);
  514.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  515.     fl_set_object_callback(obj,TableOptionsCB,0);
  516.   fdui->input_table_column = obj = fl_add_input(FL_NORMAL_INPUT,290,240,60,30,_("Column"));
  517.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  518.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  519.   fdui->input_table_row = obj = fl_add_input(FL_NORMAL_INPUT,360,240,60,30,_("Row"));
  520.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  521.     fl_set_object_lalign(obj,FL_ALIGN_TOP_LEFT);
  522.   fdui->button_set_borders = obj = fl_add_button(FL_NORMAL_BUTTON,10,140,120,30,idex(_("Set Borders|#S")));fl_set_button_shortcut(obj,scex(_("Set Borders|#S")),1);
  523.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  524.     fl_set_object_callback(obj,TableOptionsCB,0);
  525.   fdui->button_unset_borders = obj = fl_add_button(FL_NORMAL_BUTTON,140,140,120,30,idex(_("Unset Borders|#U")));fl_set_button_shortcut(obj,scex(_("Unset Borders|#U")),1);
  526.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  527.     fl_set_object_callback(obj,TableOptionsCB,0);
  528.   fdui->radio_longtable = obj = fl_add_checkbutton(FL_PUSH_BUTTON,300,130,90,25,_("Longtable"));
  529.     fl_set_object_callback(obj,TableOptionsCB,0);
  530.   fdui->input_column_width = obj = fl_add_input(FL_NORMAL_INPUT,330,190,95,30,_("Width"));
  531.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  532.     fl_set_object_callback(obj,SetPWidthCB,0);
  533.  
  534.   fdui->group_alignment = fl_bgn_group();
  535.   fdui->radio_align_left = obj = fl_add_checkbutton(FL_RADIO_BUTTON,175,30,80,25,idex(_("Left|#e")));fl_set_button_shortcut(obj,scex(_("Left|#e")),1);
  536.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  537.     fl_set_object_callback(obj,TableOptionsCB,0);
  538.   fdui->radio_align_right = obj = fl_add_checkbutton(FL_RADIO_BUTTON,175,55,80,25,idex(_("Right|#i")));fl_set_button_shortcut(obj,scex(_("Right|#i")),1);
  539.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  540.     fl_set_object_callback(obj,TableOptionsCB,0);
  541.   fdui->radio_align_center = obj = fl_add_checkbutton(FL_RADIO_BUTTON,175,80,80,25,idex(_("Center|#C")));fl_set_button_shortcut(obj,scex(_("Center|#C")),1);
  542.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  543.     fl_set_object_callback(obj,TableOptionsCB,0);
  544.     fl_set_button(obj, 1);
  545.   fl_end_group();
  546.  
  547.   fdui->radio_rotate_table = obj = fl_add_checkbutton(FL_PUSH_BUTTON,300,155,90,25,idex(_("Rotate 90░|#9")));fl_set_button_shortcut(obj,scex(_("Rotate 90░|#9")),1);
  548.     fl_set_object_callback(obj,TableOptionsCB,0);
  549.   fdui->radio_linebreak_cell = obj = fl_add_checkbutton(FL_PUSH_BUTTON,300,55,95,25,idex(_("Linebreaks|#N")));fl_set_button_shortcut(obj,scex(_("Linebreaks|#N")),1);
  550.     fl_set_object_callback(obj,TableOptionsCB,0);
  551.   obj = fl_add_text(FL_NORMAL_TEXT,300,110,100,20,_("Spec. Table"));
  552.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  553.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  554.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  555.   obj = fl_add_frame(FL_ENGRAVED_FRAME,420,20,100,160,"");
  556.   obj = fl_add_text(FL_NORMAL_TEXT,425,10,85,20,_("Longtable"));
  557.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  558.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  559.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  560.   fdui->radio_lt_firsthead = obj = fl_add_checkbutton(FL_PUSH_BUTTON,420,30,90,25,_("First Head"));
  561.     fl_set_object_callback(obj,TableOptionsCB,0);
  562.   fdui->radio_lt_head = obj = fl_add_checkbutton(FL_PUSH_BUTTON,420,60,90,25,_("Head"));
  563.     fl_set_object_callback(obj,TableOptionsCB,0);
  564.   fdui->radio_lt_foot = obj = fl_add_checkbutton(FL_PUSH_BUTTON,420,90,90,25,_("Foot"));
  565.     fl_set_object_callback(obj,TableOptionsCB,0);
  566.   fdui->radio_lt_lastfoot = obj = fl_add_checkbutton(FL_PUSH_BUTTON,420,120,90,25,_("Last Foot"));
  567.     fl_set_object_callback(obj,TableOptionsCB,0);
  568.   fdui->radio_lt_newpage = obj = fl_add_checkbutton(FL_PUSH_BUTTON,420,150,90,25,_("New Page"));
  569.     fl_set_object_callback(obj,TableOptionsCB,0);
  570.   fdui->radio_rotate_cell = obj = fl_add_checkbutton(FL_PUSH_BUTTON,300,80,95,25,_("Rotate 90░"));
  571.     fl_set_object_callback(obj,TableOptionsCB,0);
  572.   fl_end_form();
  573.  
  574.   fdui->form_table_options->fdui = fdui;
  575.  
  576.   return fdui;
  577. }
  578. /*---------------------------------------*/
  579.  
  580. FD_form_paragraph_extra *create_form_form_paragraph_extra(void)
  581. {
  582.   FL_OBJECT *obj;
  583.   FD_form_paragraph_extra *fdui = (FD_form_paragraph_extra *) fl_calloc(1, sizeof(*fdui));
  584.  
  585.   fdui->form_paragraph_extra = fl_bgn_form(FL_NO_BOX, 460, 250);
  586.   obj = fl_add_box(FL_UP_BOX,0,0,460,250,"");
  587.   obj = fl_add_frame(FL_ENGRAVED_FRAME,10,20,170,100,"");
  588.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  589.   obj = fl_add_frame(FL_ENGRAVED_FRAME,350,20,100,100,"");
  590.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  591.   obj = fl_add_frame(FL_ENGRAVED_FRAME,190,20,150,100,"");
  592.     fl_set_object_color(obj,FL_COL1,FL_COL1);
  593.   obj = fl_add_text(FL_NORMAL_TEXT,20,10,120,20,_("Extra Options"));
  594.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  595.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  596.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  597.   fdui->input_pextra_width = obj = fl_add_input(FL_NORMAL_INPUT,240,30,90,30,idex(_("Length|#L")));fl_set_button_shortcut(obj,scex(_("Length|#L")),1);
  598.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  599.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  600.   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON,130,210,100,30,_("OK"));
  601.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  602.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  603.     fl_set_object_callback(obj,ParagraphExtraOKCB,0);
  604.   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON,240,210,100,30,idex(_("Apply|#A")));fl_set_button_shortcut(obj,scex(_("Apply|#A")),1);
  605.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  606.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  607.     fl_set_object_callback(obj,ParagraphExtraApplyCB,0);
  608.   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON,350,210,100,30,idex(_("Cancel|^[")));fl_set_button_shortcut(obj,scex(_("Cancel|^[")),1);
  609.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  610.     fl_set_object_gravity(obj, FL_SouthEast, FL_SouthEast);
  611.     fl_set_object_callback(obj,ParagraphExtraCancelCB,0);
  612.   fdui->input_pextra_widthp = obj = fl_add_input(FL_INT_INPUT,240,70,90,30,idex(_("or %|#o")));fl_set_button_shortcut(obj,scex(_("or %|#o")),1);
  613.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  614.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  615.   obj = fl_add_text(FL_NORMAL_TEXT,200,10,60,20,_("Width"));
  616.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  617.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  618.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  619.   obj = fl_add_text(FL_NORMAL_TEXT,350,10,90,20,_("Alignment"));
  620.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  621.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  622.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  623.  
  624.   fdui->group_alignment = fl_bgn_group();
  625.   fdui->radio_pextra_top = obj = fl_add_checkbutton(FL_RADIO_BUTTON,360,30,80,30,idex(_("Top|#T")));fl_set_button_shortcut(obj,scex(_("Top|#T")),1);
  626.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  627.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  628.   fdui->radio_pextra_middle = obj = fl_add_checkbutton(FL_RADIO_BUTTON,360,60,80,30,idex(_("Middle|#d")));fl_set_button_shortcut(obj,scex(_("Middle|#d")),1);
  629.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  630.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  631.   fdui->radio_pextra_bottom = obj = fl_add_checkbutton(FL_RADIO_BUTTON,360,90,80,30,idex(_("Bottom|#B")));fl_set_button_shortcut(obj,scex(_("Bottom|#B")),1);
  632.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  633.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  634.   fl_end_group();
  635.  
  636.   fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT,10,170,330,30,"");
  637.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  638.     fl_set_object_lalign(obj,FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
  639.     fl_set_object_lstyle(obj,FL_BOLD_STYLE);
  640.   fdui->radio_pextra_hfill = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,130,300,30,idex(_("HFill between Minipage paragraphs|#H")));fl_set_button_shortcut(obj,scex(_("HFill between Minipage paragraphs|#H")),1);
  641.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  642.   fdui->radio_pextra_startmp = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,160,260,30,idex(_("Start new Minipage|#S")));fl_set_button_shortcut(obj,scex(_("Start new Minipage|#S")),1);
  643.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  644.  
  645.   fdui->group_extraopt = fl_bgn_group();
  646.   fdui->radio_pextra_indent = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,30,160,30,idex(_("Indented Paragraph|#I")));fl_set_button_shortcut(obj,scex(_("Indented Paragraph|#I")),1);
  647.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  648.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  649.   fdui->radio_pextra_minipage = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,60,160,30,idex(_("Minipage|#M")));fl_set_button_shortcut(obj,scex(_("Minipage|#M")),1);
  650.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  651.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  652.   fdui->radio_pextra_floatflt = obj = fl_add_checkbutton(FL_PUSH_BUTTON,10,90,160,30,idex(_("Floatflt|#F")));fl_set_button_shortcut(obj,scex(_("Floatflt|#F")),1);
  653.     fl_set_object_lsize(obj,FL_NORMAL_SIZE);
  654.     fl_set_object_callback(obj,CheckPExtraOptCB,0);
  655.   fl_end_group();
  656.  
  657.   fl_end_form();
  658.  
  659.   fdui->form_paragraph_extra->fdui = fdui;
  660.  
  661.   return fdui;
  662. }
  663. /*---------------------------------------*/
  664.  
  665.