]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormBox.C
Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
[lyx.git] / src / frontends / xforms / FormBox.C
index 0c90df376e1bb007918c11664a2352cd4be4d812..e9ef91b0e9949d07176a861da3aae79447cc0c81 100644 (file)
@@ -17,7 +17,7 @@
 #include "controllers/ButtonPolicies.h"
 #include "controllers/helper_funcs.h"
 #include "support/lstrings.h"
-#include "support/tostr.h"
+#include "support/convert.h"
 
 #include "Tooltips.h"
 #include "xforms_helpers.h"
@@ -44,7 +44,7 @@ namespace frontend {
 typedef FormController<ControlBox, FormView<FD_box> > base_class;
 
 FormBox::FormBox(Dialog & parent)
-       : base_class(parent, _("Box"))
+       : base_class(parent, _("Box Settings"))
 {}
 
 
@@ -59,17 +59,17 @@ void FormBox::build()
        }
 
        string str = _("Frameless: No border\n"
-                      "Boxed: Rectangular\n"
-                      "ovalbox: Oval, thin border\n"
-                      "Ovalbox: Oval, thick border\n"
-                      "Shadowbox: Box casting shadow\n"
-                      "Doublebox: Double line border");
+                      "Boxed: Rectangular\n"
+                      "ovalbox: Oval, thin border\n"
+                      "Ovalbox: Oval, thick border\n"
+                      "Shadowbox: Box casting shadow\n"
+                      "Doublebox: Double line border");
        tooltips().init(dialog_->choice_type, str);
 
        bcview().addReadOnly(dialog_->check_inner_box);
 
        str = _("The inner box may be a parbox or a minipage,\n"
-               "with appropriate arguments from this dialog.");
+               "with appropriate arguments from this dialog.");
        tooltips().init(dialog_->check_inner_box, str);
 
        bcview().addReadOnly(dialog_->radio_parbox);
@@ -151,7 +151,7 @@ void FormBox::update()
        setEnabled(dialog_->radio_minipage, controller().params().inner_box);
 
        LyXLength len(controller().params().width);
-       fl_set_input(dialog_->input_width, tostr(len.value()).c_str());
+       fl_set_input(dialog_->input_width, convert<string>(len.value()).c_str());
        fl_set_choice(dialog_->choice_width_unit, len.unit() + 1);
        string special(controller().params().special);
        for (unsigned int i = 0; i < gui_names_spec_.size(); ++i) {
@@ -165,7 +165,7 @@ void FormBox::update()
        setEnabled(dialog_->choice_special, !controller().params().inner_box);
 
        LyXLength ht(controller().params().height);
-       fl_set_input(dialog_->input_height, tostr(ht.value()).c_str());
+       fl_set_input(dialog_->input_height, convert<string>(ht.value()).c_str());
        fl_set_choice(dialog_->choice_height_unit, ht.unit() + 1);
        string const height_special(controller().params().height_special);
        for (unsigned int i = 0; i < gui_names_spec_.size(); ++i) {