+using std::string;
+
+namespace lyx {
+
+using support::AbsolutePath;
+using support::FileInfo;
+using support::isStrDbl;
+using support::OnlyPath;
+using support::subst;
+using support::trim;
+
+namespace frontend {
+
+std::string const buildChoiceLengthString()
+{
+ string data;
+ for (int i = 0; i != num_units; ++i) {
+ if (i != 0)
+ data += "|";
+ data += subst(unit_name_gui[i], "%", "%%");
+ }
+ return data;
+}