#include FORMS_H_LOCATION
#include "insetindex.h"
#include "buffer.h"
-#include "error.h"
+#include "debug.h"
#include "LaTeXFeatures.h"
#include "gettext.h"
#include "LString.h"
FD_index_form *index_form = 0;
-static
-void index_cb(FL_OBJECT *, long data)
+extern "C" void index_cb(FL_OBJECT *, long data)
{
InsetIndex *inset = (InsetIndex*)index_form->vdata;
// - }
case 1: // OK
if(!current_view->currentBuffer()->isReadonly()) {
- LString tmp = fl_get_input(index_form->key);
+ string tmp = fl_get_input(index_form->key);
if(tmp != inset->getContents()) {
inset->setContents(tmp);
fl_hide_form(index_form->index_form);
/*---------------------------------------*/
-InsetIndex::InsetIndex(LString const & key)
+InsetIndex::InsetIndex(string const & key)
: InsetCommand("index", key)
{
}
}
-LString InsetIndex::getScreenLabel() const
+string InsetIndex::getScreenLabel() const
{
return _("Idx");
}
InsetPrintIndex::InsetPrintIndex()
: InsetCommand("printindex")
{
- owner = NULL;
+ owner = 0;
}
}
-LString InsetPrintIndex::getScreenLabel() const
+string InsetPrintIndex::getScreenLabel() const
{
return _("PrintIndex");
}