]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetindex.C
Translate labels for float:algorithm, float:figure and float:table.
[lyx.git] / src / insets / insetindex.C
index 825129f02c533dc949ef4dabb44fd0e1e7cf4a53..7c220fb782ae7d23c407295f7247187ebf396bd4 100644 (file)
@@ -27,7 +27,7 @@ string const InsetIndex::getScreenLabel(Buffer const *) const
 
 void InsetIndex::edit(BufferView * bv, int, int, unsigned int)
 {
-       bv->owner()->getDialogs()->showIndex( this );
+       bv->owner()->getDialogs()->showIndex(this);
 }
 
 
@@ -46,7 +46,7 @@ int InsetIndex::docbook(Buffer const *, ostream & os) const
 
 Inset::Code InsetIndex::lyxCode() const
 {
-       return Inset::INDEX_CODE;
+       return Inset::INDEX_CODE;
 }
 
 
@@ -62,11 +62,11 @@ string const InsetPrintIndex::getScreenLabel(Buffer const *) const
 
 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;
 }