* \author Jürgen Spitzmüller
* \author Rob Lahaye
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-
-#include "xformsBC.h"
-#include "ControlFloat.h"
#include "FormFloat.h"
+#include "ControlFloat.h"
#include "forms/form_float.h"
+
#include "Tooltips.h"
#include "xforms_helpers.h"
+#include "xformsBC.h"
+
#include "insets/insetfloat.h"
+
#include "support/lstrings.h"
-#include FORMS_H_LOCATION
+
+#include "lyx_forms.h"
+
+using lyx::support::contains;
+
+using std::string;
+
namespace {
typedef FormController<ControlFloat, FormView<FD_float> > base_class;
FormFloat::FormFloat(Dialog & parent)
- : base_class(parent, _("Float Options"))
+ : base_class(parent, _("Float Settings"))
{}
string placement(controller().params().placement);
bool const wide = controller().params().wide;
- bool const here_definitely = contains(placement, "H");
+ bool const here_definitely = contains(placement, 'H');
- bool const top = contains(placement, "t");
- bool const bottom = contains(placement, "b");
- bool const page = contains(placement, "p");
- bool const here = contains(placement, "h");
- bool const force = contains(placement, "!");
+ bool const top = contains(placement, 't');
+ bool const bottom = contains(placement, 'b');
+ bool const page = contains(placement, 'p');
+ bool const here = contains(placement, 'h');
+ bool const force = contains(placement, '!');
bool const alternatives = top || bottom || page || (here && !wide);
if (alternatives) {