4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
15 #include "lengthcommon.h"
27 // Get a GTK stockID from a lyx function id.
28 // Return Gtk::Stock::MISSING_IMAGE if no suitable stock found
29 Gtk::BuiltinStockID getGTKStockIcon(FuncRequest const & func);
31 std::string const getDefaultUnit();
33 void unitsComboFromLength(Gtk::ComboBox * combo,
34 Gtk::TreeModelColumn<Glib::ustring> const & stringcol,
35 LyXLength const & len,
38 std::vector<std::string> const buildLengthUnitList();
40 /** name is the name of the glade file, without path or extension.
41 * Eg, "aboutlyx", "tableCreate".
43 std::string const findGladeFile(std::string const & name);
46 typename std::vector<A>::size_type
47 findPos(std::vector<A> const & vec, A const & val)
49 typename std::vector<A>::const_iterator it =
50 std::find(vec.begin(), vec.end(), val);
53 return std::distance(vec.begin(), it);
56 } // namespace frontend
59 #endif // NOT GHELPERS_H