#include "frontends/controllers/ControlMath.h"
+using lyx::docstring;
using lyx::support::compare_ascii_no_case;
using lyx::support::getVectorFromString;
using lyx::support::libFileSearch;
switch (lex.lex()) {
case TO_ADD:
if (lex.next(true)) {
- string const tooltip = lyx::to_utf8(_(lex.getString()));
+ docstring const tooltip = _(lex.getString());
lex.next(true);
string const func_arg = lex.getString();
lyxerr[Debug::PARSER]
void ToolbarBackend::add(Toolbar & tb,
- FuncRequest const & func, string const & tooltip)
+ FuncRequest const & func, docstring const & tooltip)
{
tb.items.push_back(make_pair(func, tooltip));
tb.items.back().first.origin = FuncRequest::UI;
};
/// action, tooltip
- typedef std::pair<FuncRequest, std::string> Item;
+ typedef std::pair<FuncRequest, lyx::docstring> Item;
/// the toolbar items
typedef std::vector<Item> Items;
private:
/// add the given lfun with tooltip if relevant
void add(Toolbar & tb, FuncRequest const &,
- std::string const & tooltip = std::string());
+ lyx::docstring const & tooltip = lyx::docstring());
/// all the toolbars
Toolbars toolbars;
ToolbarBackend::item_iterator it = tbb.items.begin();
ToolbarBackend::item_iterator end = tbb.items.end();
for (; it != end; ++it)
- add(it->first, lyx::from_utf8(it->second));
+ add(it->first, it->second);
toolbar_.set_toolbar_style(Gtk::TOOLBAR_ICONS);
toolbar_.show_all();
ToolbarBackend::item_iterator it = tbb.items.begin();
ToolbarBackend::item_iterator end = tbb.items.end();
for (; it != end; ++it)
- add(it->first, lyx::from_utf8(it->second));
+ add(it->first, it->second);
}
ToolbarBackend::item_iterator it = tbb.items.begin();
ToolbarBackend::item_iterator end = tbb.items.end();
- // FIXME UNICODE: ToolbarBackend!!!
for (; it != end; ++it)
- add(it->first, lyx::from_utf8(it->second));
+ add(it->first, it->second);
}