* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Juergen Spitzmueller
+ * \author Jürgen Spitzmüller
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
-#include "debug.h"
-#include "qt_helpers.h"
-#include "support/lstrings.h"
-#include "LyXView.h"
-#include "ControlWrap.h"
-
#include "QWrap.h"
#include "QWrapDialog.h"
#include "Qt2BC.h"
+
#include "lengthcombo.h"
+#include "qt_helpers.h"
+
+#include "controllers/ControlWrap.h"
#include "insets/insetwrap.h"
-#include <qpushbutton.h>
-#include <qcombobox.h>
+#include "support/convert.h"
+#include "support/lstrings.h"
+
#include <qlineedit.h>
+#include <qpushbutton.h>
-typedef QController<ControlWrap, QView<QWrapDialog> > base_class;
+using std::string;
+namespace lyx {
+namespace frontend {
+
+typedef QController<ControlWrap, QView<QWrapDialog> > base_class;
QWrap::QWrap(Dialog & parent)
- : base_class(parent, qt_("LyX: Text Wrap Settings"))
+ : base_class(parent, _("LyX: Text Wrap Settings"))
{
}
void QWrap::apply()
{
- double const value = strToDbl(fromqstr(dialog_->widthED->text()));
+ double const value = convert<double>(fromqstr(dialog_->widthED->text()));
LyXLength::UNIT unit = dialog_->unitsLC->currentLengthItem();
if (dialog_->widthED->text().isEmpty())
unit = LyXLength::UNIT_NONE;
namespace {
string const numtostr(double val) {
- string a(tostr(val));
+ string a(convert<string>(val));
+#ifdef WITH_WARNINGS
+#warning Will this test ever trigger? (Lgb)
+#endif
if (a == "0")
a.erase();
return a;
dialog_->valignCO->setCurrentItem(item);
}
+
+} // namespace frontend
+} // namespace lyx