4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "lyxlength.h"
16 #include "support/docstring.h"
17 #include "support/qstring_helpers.h"
30 std::string makeFontName(std::string const & family, std::string const & foundry);
32 std::pair<std::string,std::string> parseFontName(std::string const & name);
34 /// method to get a LyXLength from widgets (LengthCombo)
35 std::string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
36 /// method to get a LyXLength from widgets (QComboBox)
37 LyXLength widgetsToLength(QLineEdit const * input, QComboBox const * combo);
39 /// method to set widgets from a LyXLength
40 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
41 std::string const & len, LyXLength::UNIT default_unit);
43 /// format a string to the given width
44 docstring const formatted(docstring const & text, int w = 80);
48 * qt_ - i18nize string and convert to QString
50 * Use this in qt4/ instead of _()
52 QString const qt_(char const * str, const char * comment = 0);
56 * qt_ - i18nize string and convert to QString
58 * Use this in qt4/ instead of _()
60 QString const qt_(std::string const & str);