]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt2/qt_helpers.h
Replace LString.h with support/std_string.h,
[features.git] / src / frontends / qt2 / qt_helpers.h
index 39e791a3a03869b8ba19432419e709d5b8c5c518..c350cdbb6c5fc2b328cd7c09ed57541061fdec80 100644 (file)
@@ -6,14 +6,14 @@
  *
  * \author Dekel Tsur
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef QTHELPERS_H
 #define QTHELPERS_H
 
 
-#include "LString.h"
+#include "support/std_string.h"
 
 #include <utility>
 
@@ -34,6 +34,9 @@ string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
        string const & len, LyXLength::UNIT default_unit);
 
+/// format a string to the given width
+string const formatted(string const & text, int w = 80);
+
 /**
  * toqstr - convert char * into unicode
  *