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
20 #include "lyxlength.h"
26 string makeFontName(string const & family, string const & foundry);
28 std::pair<string,string> parseFontName(string const & name);
30 /// method to get a LyXLength from widgets
31 string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
33 /// method to set widgets from a LyXLength
34 void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
35 string const & len, LyXLength::UNIT default_unit);
38 * toqstr - convert char * into unicode
40 * Use this whenever there's a user-visible string that is encoded
41 * for the locale (menus, dialogs etc.)
43 QString const toqstr(char const * str);
47 * toqstr - convert string into unicode
49 * Use this whenever there's a user-visible string that is encoded
50 * for the locale (menus, dialogs etc.)
52 QString const toqstr(string const & str);
56 * qt_ - i18nize string and convert to unicode
58 * Use this in qt2/ instead of qt_()
60 QString const qt_(char const * str);
64 * qt_ - i18nize string and convert to unicode
66 * Use this in qt2/ instead of qt_()
68 QString const qt_(string const & str);
72 * fromqstr - convert QString into std::string in locale
74 * Return the QString encoded in the locale
76 string const fromqstr(QString const & str);