#include "insetindex.h"
#include "BufferView.h"
-#include "LyXView.h"
+#include "frontends/LyXView.h"
#include "frontends/Dialogs.h"
#include "LaTeXFeatures.h"
#include "gettext.h"
+#include "support/LOstream.h"
+
+using std::ostream;
InsetIndex::InsetIndex(InsetCommandParams const & p, bool)
: InsetCommand(p)
}
-void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
+void InsetIndex::edit(BufferView * bv, int, int, mouse_button::state)
{
- bv->owner()->getDialogs()->showIndex( this );
+ bv->owner()->getDialogs()->showIndex(this);
}
void InsetIndex::edit(BufferView * bv, bool)
{
- edit(bv, 0, 0, 0);
+ edit(bv, 0, 0, mouse_button::none);
}
int InsetIndex::docbook(Buffer const *, ostream & os) const
{
- os << "<indexterm><primary>" << getContents() << "</primary></indexterm>";
- return 0;
+ os << "<indexterm><primary>" << getContents()
+ << "</primary></indexterm>";
+ return 0;
}
Inset::Code InsetIndex::lyxCode() const
{
- return Inset::INDEX_CODE;
+ return Inset::INDEX_CODE;
}
: InsetCommand(p)
{}
+
string const InsetPrintIndex::getScreenLabel(Buffer const *) const
{
return _("Index");
void InsetPrintIndex::validate(LaTeXFeatures & features) const
{
- features.makeidx = true;
+ features.require("makeidx");
}
Inset::Code InsetPrintIndex::lyxCode() const
{
- return Inset::INDEX_PRINT_CODE;
+ return Inset::INDEX_PRINT_CODE;
}