#include <config.h>
-
#include "Tooltips.h"
+
#include "xforms_helpers.h" // formatted
-#include "gettext.h"
+
#include "support/lstrings.h"
-#include "support/LAssert.h"
+
#include "lyx_forms.h"
#include <boost/bind.hpp>
-using namespace lyx::support;
+using lyx::support::trim;
+
+using std::string;
+
bool Tooltips::enabled_ = true;
void Tooltips::init(FL_OBJECT * ob, string const & tip)
{
- Assert(ob && ob->form);
+ BOOST_ASSERT(ob && ob->form);
// Store the tooltip string
string const str = formatted(trim(tip), 400);