X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetindex.C;h=486aeb23111eb845002f76c2d95d5f78f60f3c40;hb=4a5b7a5952ad2381fcdf4830511293e184c7c5a1;hp=87b3cfaa19570aa5152d1e862fe2f20e6680dee8;hpb=55bf6460f304a4632af2136a62c8a82fb86053f3;p=lyx.git diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index 87b3cfaa19..486aeb2311 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -10,13 +10,16 @@ #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) {} -string const InsetIndex::getScreenLabel() const +string const InsetIndex::getScreenLabel(Buffer const *) const { return _("Idx"); } @@ -24,7 +27,7 @@ string const InsetIndex::getScreenLabel() const void InsetIndex::edit(BufferView * bv, int, int, unsigned int) { - bv->owner()->getDialogs()->showIndex( this ); + bv->owner()->getDialogs()->showIndex(this); } @@ -34,6 +37,13 @@ void InsetIndex::edit(BufferView * bv, bool) } +int InsetIndex::docbook(Buffer const *, ostream & os) const +{ + os << "" << getContents() << ""; + return 0; +} + + Inset::Code InsetIndex::lyxCode() const { return Inset::INDEX_CODE; @@ -44,7 +54,7 @@ InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p, bool) : InsetCommand(p) {} -string const InsetPrintIndex::getScreenLabel() const +string const InsetPrintIndex::getScreenLabel(Buffer const *) const { return _("Index"); } @@ -52,7 +62,7 @@ string const InsetPrintIndex::getScreenLabel() const void InsetPrintIndex::validate(LaTeXFeatures & features) const { - features.makeidx = true; + features.require("makeidx"); }